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

Method initClippingPlaneObject_

source/MRViewer/MRViewer.cpp:2188–2197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188void Viewer::initClippingPlaneObject_()
2189{
2190 std::shared_ptr<Mesh> plane = std::make_shared<Mesh>( makePlane() );
2191 clippingPlaneObject = std::make_shared<ObjectMesh>();
2192 clippingPlaneObject->setMesh( plane );
2193 clippingPlaneObject->setName( "Clipping plane obj" );
2194 clippingPlaneObject->setVisible( false );
2195 clippingPlaneObject->setFrontColor( Color( Vector4f::diagonal( 0.2f ) ), false );
2196 clippingPlaneObject->setBackColor( Color( Vector4f::diagonal( 0.2f ) ) );
2197}
2198
2199void Viewer::initRotationCenterObject_()
2200{

Callers

nothing calls this directly

Calls 7

makePlaneFunction · 0.85
ColorClass · 0.85
diagonalFunction · 0.85
setMeshMethod · 0.80
setBackColorMethod · 0.80
setVisibleMethod · 0.45
setFrontColorMethod · 0.45

Tested by

no test coverage detected