MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / enable

Method enable

source/MRViewer/MRMeshBoundarySelectionWidget.cpp:26–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{
25
26void BoundarySelectionWidget::enable( bool isEnabled )
27{
28 isSelectorActive_ = isEnabled;
29 if ( !isSelectorActive_ )
30 {
31 onMeshChangedSignals_.clear();
32 holes_.clear();
33 holeLines_.clear();
34 selectedHoleObject_ = nullptr;
35 selectedHoleIndex_ = -1;
36 hoveredHoleIndex_ = -1;
37 hoveredHoleObject_ = nullptr;
38 }
39 else
40 {
41 calculateHoles_();
42 selectedHoleObject_ = nullptr;
43 selectedHoleIndex_ = -1;
44 hoveredHoleIndex_ = -1;
45 hoveredHoleObject_ = nullptr;
46 }
47}
48
49std::shared_ptr<MR::Polyline3> BoundarySelectionWidget::getHoleBorder_( const std::shared_ptr<ObjectMeshHolder> obj, EdgeId initEdge )
50{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected