| 20 | using namespace MR; |
| 21 | |
| 22 | int 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 | |
| 45 | VertBitSet getVertsForRefineFeature( const Mesh& mesh, const FeatureObject& feature, float distanceEps, float normalEps ) |
| 46 | { |
no outgoing calls
no test coverage detected