#include <asiAlgo_SampleFace.h>
Public Types | |
enum | PmcAlgo { PmcAlgo_Precise, PmcAlgo_Haines, PmcAlgo_Discrete } |
PMC algorithm to use. More... | |
Public Member Functions | |
asiAlgo_EXPORT | asiAlgo_SampleFace (const TopoDS_Face &face, ActAPI_ProgressEntry progress=nullptr, ActAPI_PlotterEntry plotter=nullptr) |
asiAlgo_EXPORT void | SetSquare (const bool square) |
asiAlgo_EXPORT void | SetPmcAlgo (const PmcAlgo algo) |
asiAlgo_EXPORT bool | Perform (const int numBins) |
const asiAlgo_EXPORT Handle_asiAlgo_UniformGrid< float > & | GetResult () const |
asiAlgo_EXPORT Handle_asiAlgo_BaseCloud< double > | GetResult3d () const |
const asiAlgo_EXPORT Handle_asiAlgo::discr::Model & | GetDiscrModel () const |
Public Member Functions inherited from ActAPI_IAlgorithm | |
ActAPI_ProgressEntry & | GetProgress () const |
ActAPI_PlotterEntry & | GetPlotter () const |
void | SetStatusFlags (const Standard_Integer status) |
Standard_Integer | GetStatusFlags () const |
void | AddStatusFlag (const Standard_Integer statBit) |
Standard_Boolean | HasStatusFlag (const Standard_Integer statBit) const |
Static Public Member Functions | |
static asiAlgo_EXPORT bool | Wire2Polygon (const TopoDS_Wire &wire, const TopoDS_Face &face, std::vector< gp_XY > &polygon) |
Converts the passed wire of the given face to a polygon. | |
Protected Member Functions | |
asiAlgo_Membership | classify (const gp_Pnt2d &PonS) |
Protected Member Functions inherited from ActAPI_IAlgorithm | |
ActData_EXPORT | ActAPI_IAlgorithm (ActAPI_ProgressEntry progress, ActAPI_PlotterEntry plotter) |
Protected Attributes | |
bool | m_bSquare |
Indicates whether the uniform grid we construct should be a square. | |
PmcAlgo | m_algo |
Classification algorithm. | |
TopoDS_Face | m_face |
Face to sample. | |
double | m_fUmin |
Parametric bounds of the sampled face. | |
double | m_fUmax |
double | m_fVmin |
double | m_fVmax |
IntTools_FClass2d | m_class |
Precise classifier. | |
Handle_asiAlgo::discr::Classifier2d | m_discrClass |
Discrete classifier. | |
Handle_asiAlgo_UniformGrid< float > | m_grid |
Uniform grid which is the result of the uniform sampling. | |
std::vector< gp_XY > | m_polygon |
Discretized polygon. | |
Handle_asiAlgo::discr::Model | m_discrModel |
Discrete model. | |
Protected Attributes inherited from ActAPI_IAlgorithm | |
ActAPI_ProgressEntry | m_progress |
Progress Notifier. | |
ActAPI_PlotterEntry | m_plotter |
Imperative Plotter. | |
Standard_Integer | m_iStatusFlags |
Samples the UV domain of a face by overlaying a uniform grid.
asiAlgo_EXPORT asiAlgo_SampleFace::asiAlgo_SampleFace | ( | const TopoDS_Face & | face, |
ActAPI_ProgressEntry | progress = nullptr , |
||
ActAPI_PlotterEntry | plotter = nullptr |
||
) |
Ctor.
[in] | face | the face in question. |
[in] | progress | the progress notifier. |
[in] | plotter | the imperative plotter. |
|
protected |
Performs point-face classification.
[in] | PonS | the point to classify. |
const asiAlgo_EXPORT Handle_asiAlgo::discr::Model& asiAlgo_SampleFace::GetDiscrModel | ( | ) | const |
const asiAlgo_EXPORT Handle_asiAlgo_UniformGrid<float>& asiAlgo_SampleFace::GetResult | ( | ) | const |
asiAlgo_EXPORT Handle_asiAlgo_BaseCloud<double> asiAlgo_SampleFace::GetResult3d | ( | ) | const |
asiAlgo_EXPORT bool asiAlgo_SampleFace::Perform | ( | const int | numBins | ) |
Performs face sampling.
[in] | numBins | the number of discretization steps. |
asiAlgo_EXPORT void asiAlgo_SampleFace::SetPmcAlgo | ( | const PmcAlgo | algo | ) |
Sets the PMC algorithm to use.
[in] | algo | the algorithm to set. |
asiAlgo_EXPORT void asiAlgo_SampleFace::SetSquare | ( | const bool | square | ) |
Sets a Boolean flag indicating whether the planar decomposition we are constructing should be a square.
[in] | square | the Boolean value to set. |