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

Method ObjectPoints

source/MRMesh/MRObjectPoints.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15MR_ADD_CLASS_FACTORY( ObjectPoints )
16
17ObjectPoints::ObjectPoints( const ObjectMesh& objMesh, bool saveNormals/*=true*/ )
18{
19 if ( !objMesh.mesh() )
20 return;
21
22 const auto verts = getInnerVerts( objMesh.mesh()->topology, objMesh.getSelectedFaces() );
23 setPointCloud( std::make_shared<PointCloud>( meshToPointCloud( *objMesh.mesh(), saveNormals, verts.any() ? &verts : nullptr) ) );
24 setName( objMesh.name() + " Points" );
25 setVertsColorMap( objMesh.getVertsColorMap() );
26 setFrontColor( objMesh.getFrontColor( true ), true );
27 setFrontColor( objMesh.getFrontColor( false ), false );
28 setBackColor( objMesh.getBackColor() );
29 setColoringType( objMesh.getColoringType() );
30}
31
32std::vector<std::string> ObjectPoints::getInfoLines() const
33{

Callers

nothing calls this directly

Calls 7

getInnerVertsFunction · 0.85
setPointCloudFunction · 0.85
meshToPointCloudFunction · 0.85
setNameFunction · 0.70
setVertsColorMapFunction · 0.70
anyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected