The mesh algorithems container class. More...
#include <MeshAlgos.h>
Static Public Member Functions | |
static MeshCore::MeshKernel * | boolean (MeshCore::MeshKernel *Mesh1, MeshCore::MeshKernel *Mesh2, MeshCore::MeshKernel *pResult, int Type=0) |
makes a boolean add The int Type stears the boolean oberation: 0=add;1=intersection;2=diff | |
static void | coarsen (MeshCore::MeshKernel *Mesh, float f) |
Coarsen the mesh. | |
static void | cutByCurve (MeshCore::MeshKernel *pMesh, const std::vector< CurveProjector::FaceSplitEdge > &vSplitEdges) |
static void | cutByShape (const TopoDS_Shape &aShape, const MeshCore::MeshKernel *pMesh, MeshCore::MeshKernel *pToolMesh) |
static void | GetSampledCurves (const TopoDS_Edge &aEdge, std::vector< Base::Vector3f > &rclPoints, unsigned long ulNbOfPoints=30) |
helper to discredicice a Edge... | |
static void | LoftOnCurve (MeshCore::MeshKernel &ResultMesh, const TopoDS_Shape &Shape, const std::vector< Base::Vector3f > &poly, const Base::Vector3f &up=Base::Vector3f(0, 0, 1), float MaxSize=0.1) |
creates a mesh loft on base of a curve and an up vector | |
static void | offset (MeshCore::MeshKernel *Mesh, float fSize) |
Calculate per Vertex normales and adds the Normal property bag. | |
static void | offsetSpecial (MeshCore::MeshKernel *Mesh, float fSize, float zmax, float zmin) |
static void | offsetSpecial2 (MeshCore::MeshKernel *Mesh, float fSize) |
The mesh algorithems container class.
Definition at line 52 of file MeshAlgos.h.
MeshCore::MeshKernel * MeshAlgos::boolean | ( | MeshCore::MeshKernel * | Mesh1, | |
MeshCore::MeshKernel * | Mesh2, | |||
MeshCore::MeshKernel * | pResult, | |||
int | Type = 0 | |||
) | [static] |
makes a boolean add The int Type stears the boolean oberation: 0=add;1=intersection;2=diff
Definition at line 169 of file MeshAlgos.cpp.
void MeshAlgos::coarsen | ( | MeshCore::MeshKernel * | Mesh, | |
float | f | |||
) | [static] |
Coarsen the mesh.
Definition at line 144 of file MeshAlgos.cpp.
References MeshCore::MeshKernel::Clear().
void MeshAlgos::cutByCurve | ( | MeshCore::MeshKernel * | pMesh, | |
const std::vector< CurveProjector::FaceSplitEdge > & | vSplitEdges | |||
) | [static] |
Definition at line 446 of file MeshAlgos.cpp.
References MeshCore::MeshTopoAlgorithm::SplitFacet().
void MeshAlgos::cutByShape | ( | const TopoDS_Shape & | aShape, | |
const MeshCore::MeshKernel * | pMesh, | |||
MeshCore::MeshKernel * | pToolMesh | |||
) | [static] |
Definition at line 420 of file MeshAlgos.cpp.
static void MeshPart::MeshAlgos::GetSampledCurves | ( | const TopoDS_Edge & | aEdge, | |
std::vector< Base::Vector3f > & | rclPoints, | |||
unsigned long | ulNbOfPoints = 30 | |||
) | [static] |
helper to discredicice a Edge...
void MeshAlgos::LoftOnCurve | ( | MeshCore::MeshKernel & | ResultMesh, | |
const TopoDS_Shape & | Shape, | |||
const std::vector< Base::Vector3f > & | poly, | |||
const Base::Vector3f & | up = Base::Vector3f(0,0,1) , |
|||
float | MaxSize = 0.1 | |||
) | [static] |
creates a mesh loft on base of a curve and an up vector
Definition at line 484 of file MeshAlgos.cpp.
References MeshCore::MeshKernel::AddFacets(), Py::int, RobotExample::l, Sketcher::Tangent, and Base::Vector3< _Precision >::x.
Referenced by loftOnCurve().
void MeshAlgos::offset | ( | MeshCore::MeshKernel * | Mesh, | |
float | fSize | |||
) | [static] |
Calculate per Vertex normales and adds the Normal property bag.
Definition at line 51 of file MeshAlgos.cpp.
References MeshCore::MeshKernel::CalcVertexNormals(), MeshCore::MeshKernel::MovePoint(), and MeshCore::MeshKernel::RecalcBoundBox().
void MeshAlgos::offsetSpecial | ( | MeshCore::MeshKernel * | Mesh, | |
float | fSize, | |||
float | zmax, | |||
float | zmin | |||
) | [static] |
Definition at line 123 of file MeshAlgos.cpp.
References MeshCore::MeshKernel::CalcVertexNormals(), MeshCore::MeshKernel::GetPoint(), MeshCore::MeshKernel::MovePoint(), Base::Vector3< _Precision >::Normalize(), and Base::Vector3< _Precision >::z.
void MeshAlgos::offsetSpecial2 | ( | MeshCore::MeshKernel * | Mesh, | |
float | fSize | |||
) | [static] |
Definition at line 65 of file MeshAlgos.cpp.
References KDL::acos(), Base::Builder3D::addSingleLine(), Base::Builder3D::addSinglePoint(), draftlibs::fcvec::angle(), MeshCore::MeshKernel::CalcVertexNormals(), MeshCore::MeshTopoAlgorithm::Cleanup(), MeshCore::MeshTopoAlgorithm::CollapseFacet(), Mesh2Shape::faces, MeshCore::MeshEvalSelfIntersection::GetIntersections(), MeshCore::MeshKernel::GetPoint(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::IsFlag(), RobotExample::l, MeshCore::MeshFacetIterator::More(), MeshCore::MeshKernel::MovePoint(), MeshCore::MeshFacetIterator::Next(), Base::Vector3< _Precision >::Normalize(), MeshCore::MeshFacetIterator::Position(), MeshCore::MeshKernel::RecalcBoundBox(), and Base::Builder3D::saveToLog().