Project by projecting a sampled curve to the mesh. More...
#include <CurveProjector.h>
Public Member Functions | |
CurveProjectorSimple (const TopoDS_Shape &aShape, const MeshKernel &pMesh) | |
bool | findStartPoint (const MeshKernel &MeshK, const Base::Vector3f &Pnt, Base::Vector3f &Rslt, unsigned long &FaceIndex) |
void | GetSampledCurves (const TopoDS_Edge &aEdge, std::vector< Base::Vector3f > &rclPoints, unsigned long ulNbOfPoints=30) |
helper to discredicice a Edge... | |
void | projectCurve (const TopoDS_Edge &aEdge, const std::vector< Base::Vector3f > &rclPoints, std::vector< FaceSplitEdge > &vSplitEdges) |
virtual | ~CurveProjectorSimple () |
Protected Member Functions | |
virtual void | Do () |
Project by projecting a sampled curve to the mesh.
Definition at line 114 of file CurveProjector.h.
CurveProjectorSimple::CurveProjectorSimple | ( | const TopoDS_Shape & | aShape, | |
const MeshKernel & | pMesh | |||
) |
Definition at line 250 of file CurveProjector.cpp.
References Do().
virtual MeshPart::CurveProjectorSimple::~CurveProjectorSimple | ( | ) | [inline, virtual] |
Definition at line 118 of file CurveProjector.h.
void CurveProjectorSimple::Do | ( | void | ) | [protected, virtual] |
Implements MeshPart::CurveProjector.
Definition at line 257 of file CurveProjector.cpp.
References MeshPart::CurveProjector::_Shape, MeshPart::CurveProjector::mvEdgeSplitPoints, and projectCurve().
Referenced by CurveProjectorSimple().
bool CurveProjectorSimple::findStartPoint | ( | const MeshKernel & | MeshK, | |
const Base::Vector3f & | Pnt, | |||
Base::Vector3f & | Rslt, | |||
unsigned long & | FaceIndex | |||
) |
Definition at line 530 of file CurveProjector.cpp.
References FLOAT_MAX, MeshCore::MeshFacetIterator::Init(), Base::Length, MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), and MeshCore::MeshFacetIterator::Position().
void CurveProjectorSimple::GetSampledCurves | ( | const TopoDS_Edge & | aEdge, | |
std::vector< Base::Vector3f > & | rclPoints, | |||
unsigned long | ulNbOfPoints = 30 | |||
) |
helper to discredicice a Edge...
Definition at line 277 of file CurveProjector.cpp.
References Handle().
void CurveProjectorSimple::projectCurve | ( | const TopoDS_Edge & | aEdge, | |
const std::vector< Base::Vector3f > & | rclPoints, | |||
std::vector< FaceSplitEdge > & | vSplitEdges | |||
) |
Definition at line 298 of file CurveProjector.cpp.
References MeshPart::CurveProjector::_Mesh, Base::Console(), Handle(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), Base::SequencerLauncher::next(), MeshCore::MeshFacetIterator::Position(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Do().