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

Function getPointsMinimalCount

source/MRMesh/MRFeatureRefine.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace MR;
21
22int getPointsMinimalCount( FeaturesObjectKind objectKind )
23{
24 switch ( objectKind )
25 {
26 case FeaturesObjectKind::Point:
27 return 1;
28 case FeaturesObjectKind::Line:
29 return 2;
30 case FeaturesObjectKind::Plane:
31 case FeaturesObjectKind::Circle:
32 return 3;
33 case FeaturesObjectKind::Sphere:
34 return 4;
35 case FeaturesObjectKind::Cylinder:
36 return 6;
37 case FeaturesObjectKind::Cone:
38 return 7;
39 case FeaturesObjectKind::_count:
40 MR_UNREACHABLE_NO_RETURN
41 }
42 MR_UNREACHABLE
43}
44
45VertBitSet getVertsForRefineFeature( const Mesh& mesh, const FeatureObject& feature, float distanceEps, float normalEps )
46{

Callers 2

getRefinedXfFunction · 0.85
refineFeatureObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected