| 15 | MR_ADD_CLASS_FACTORY( ObjectPoints ) |
| 16 | |
| 17 | ObjectPoints::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 | |
| 32 | std::vector<std::string> ObjectPoints::getInfoLines() const |
| 33 | { |
nothing calls this directly
no test coverage detected