3.4.0
tigl::CTiglConcatSurfaces Class Reference

#include <CTiglConcatSurfaces.h>

Data Structures

struct  SegmentsSize
 

Public Member Functions

TIGL_EXPORT CTiglConcatSurfaces (const std::vector< Handle(Geom_BSplineSurface)> &surfaces, const std::vector< double > &surfaceParams, ConcatDir dir)
 Concatenes multiple surfaces along the given directions. More...
 
TIGL_EXPORT Handle (Geom_BSplineSurface) Surface() const
 Returns the final surface. More...
 
TIGL_EXPORT void SetMakeKnotsUniformEnabled (unsigned int nUSeg, unsigned int nVSeg)
 This allows the algorithm to make the knot sequence of each input surface uniform. More...
 

Private Attributes

boost::optional< SegmentsSizem_approxSegments
 
ConcatDir m_dir
 
std::vector< double > m_params
 
std::vector< Handle(Geom_BSplineSurface)> m_surfaces
 

Constructor & Destructor Documentation

◆ CTiglConcatSurfaces()

TIGL_EXPORT tigl::CTiglConcatSurfaces::CTiglConcatSurfaces ( const std::vector< Handle(Geom_BSplineSurface)> &  surfaces,
const std::vector< double > &  surfaceParams,
ConcatDir  dir 
)

Concatenes multiple surfaces along the given directions.

Note: The surfaces must follow in the correct order in the specified direction

Parameters
surfacesThe surfaces to concatenate
surfaceParamsA vector of parameters that define the parameters at the final surface, at which the input surfaces are stitched.
dirDirection to concatenate

Member Function Documentation

◆ Handle()

TIGL_EXPORT tigl::CTiglConcatSurfaces::Handle ( Geom_BSplineSurface  ) const

Returns the final surface.

◆ SetMakeKnotsUniformEnabled()

TIGL_EXPORT void tigl::CTiglConcatSurfaces::SetMakeKnotsUniformEnabled ( unsigned int  nUSeg,
unsigned int  nVSeg 
)

This allows the algorithm to make the knot sequence of each input surface uniform.

This might be useful, if the input surfaces have very different knot distributions leaving a resulting in a bad balanced knot vector of the final surfaces. This approximation comes however with an error.

Parameters
nUSegNumber of knot segments in u dir to approximate
nVSegNumber of knot segments in v dir to approximate

Field Documentation

◆ m_approxSegments

boost::optional<SegmentsSize> tigl::CTiglConcatSurfaces::m_approxSegments
private

◆ m_dir

ConcatDir tigl::CTiglConcatSurfaces::m_dir
private

◆ m_params

std::vector<double> tigl::CTiglConcatSurfaces::m_params
private

◆ m_surfaces

std::vector<Handle(Geom_BSplineSurface)> tigl::CTiglConcatSurfaces::m_surfaces
private

The documentation for this class was generated from the following file: