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, MeshCore::FacetIndex &FaceIndex) |
void | GetSampledCurves (const TopoDS_Edge &aEdge, std::vector< Base::Vector3f > &rclPoints, unsigned long ulNbOfPoints=30) |
helper to discredicice a Edge... More... | |
void | projectCurve (const TopoDS_Edge &aEdge, const std::vector< Base::Vector3f > &rclPoints, std::vector< FaceSplitEdge > &vSplitEdges) |
virtual | ~CurveProjectorSimple () |
Public Member Functions inherited from MeshPart::CurveProjector | |
CurveProjector (const TopoDS_Shape &aShape, const MeshKernel &pMesh) | |
result_type & | result (void) |
void | writeIntersectionPointsToFile (const char *name="export_pts.asc") |
virtual | ~CurveProjector () |
Protected Member Functions | |
virtual void | Do () |
virtual void | Do ()=0 |
Additional Inherited Members | |
Public Types inherited from MeshPart::CurveProjector | |
typedef std::map< TopoDS_Edge, std::vector< FaceSplitEdge >, TopoDSLess< TopoDS_Edge > > | result_type |
Protected Attributes inherited from MeshPart::CurveProjector | |
result_type | mvEdgeSplitPoints |
Project by projecting a sampled curve to the mesh.
CurveProjectorSimple::CurveProjectorSimple | ( | const TopoDS_Shape & | aShape, |
const MeshKernel & | pMesh | ||
) |
References Do().
|
virtual |
|
protectedvirtual |
Implements MeshPart::CurveProjector.
References MeshPart::CurveProjector::mvEdgeSplitPoints, and projectCurve().
Referenced by CurveProjectorSimple().
bool CurveProjectorSimple::findStartPoint | ( | const MeshKernel & | MeshK, |
const Base::Vector3f & | Pnt, | ||
Base::Vector3f & | Rslt, | ||
MeshCore::FacetIndex & | FaceIndex | ||
) |
void CurveProjectorSimple::GetSampledCurves | ( | const TopoDS_Edge & | aEdge, |
std::vector< Base::Vector3f > & | rclPoints, | ||
unsigned long | ulNbOfPoints = 30 |
||
) |
helper to discredicice a Edge...
void CurveProjectorSimple::projectCurve | ( | const TopoDS_Edge & | aEdge, |
const std::vector< Base::Vector3f > & | rclPoints, | ||
std::vector< FaceSplitEdge > & | vSplitEdges | ||
) |
References Base::Console(), MeshCore::MeshGeomFacet::GetNormal(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshGeomFacet::IntersectWithLine(), Base::ConsoleSingleton::Log(), 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().