.. role:: blue :class: blue Surface Reconstruction on a Segment =================================== .. _Surface_reconstruction_on_a_segment_: .. kernel version: 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 .. code-block:: cpp 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 .. code-block:: cpp 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.