Surface Reconstruction on a Segment

When using the C3D B-Shaper, developers can reconstruct a surface of a certain type on a segment. The following methods are used to control surface recognition.

The method

void FitSurfaceToSegment( size_t idxSegment );

recognizes the surface by a mesh segment with a given index and fits it into the segmentation. A recognized surface can be obtained by calling the GetSegmentSurface() method. The input parameter idxSegment passes the index of the polygon mesh segment.

The method with surface type

void FitSurfaceToSegment( size_t      idxSegment,
                          MbeSpaceType surfaceType );

performs the construction of a surface of a given type approximating a mesh segment with a given index. A recognized surface can be obtained by calling the GetSegmentSurface() method. The input parameter idxSegment passes the index of the polygon mesh segment.