Trim the the facets in 3D with a plane. More...
#include <TrimByPlane.h>
Public Member Functions | |
void | CheckFacets (const MeshFacetGrid &rclGrid, const Base::Vector3f &base, const Base::Vector3f &normal, std::vector< FacetIndex > &trimFacets, std::vector< FacetIndex > &removeFacets) const |
Checks all facets for intersection with the plane and writes all touched facets into the vector. More... | |
MeshTrimByPlane (MeshKernel &mesh) | |
void | TrimFacets (const std::vector< FacetIndex > &trimFacets, const Base::Vector3f &base, const Base::Vector3f &normal, std::vector< MeshGeomFacet > &trimmedFacets) |
The facets from trimFacets will be trimmed or deleted and trimmedFacets holds the newly generated facets. More... | |
~MeshTrimByPlane () | |
Trim the the facets in 3D with a plane.
MeshTrimByPlane::MeshTrimByPlane | ( | MeshKernel & | mesh | ) |
MeshTrimByPlane::~MeshTrimByPlane | ( | ) |
void MeshTrimByPlane::CheckFacets | ( | const MeshFacetGrid & | rclGrid, |
const Base::Vector3f & | base, | ||
const Base::Vector3f & | normal, | ||
std::vector< FacetIndex > & | trimFacets, | ||
std::vector< FacetIndex > & | removeFacets | ||
) | const |
Checks all facets for intersection with the plane and writes all touched facets into the vector.
References Base::BoundBox3< _Precision >::CalcPoint(), MeshCore::MeshGridIterator::GetBoundBox(), MeshCore::MeshGridIterator::GetElements(), MeshCore::MeshKernel::GetFacet(), MeshCore::MeshGridIterator::Init(), MeshCore::MeshGeomFacet::IntersectWithPlane(), Base::BoundBox3< _Precision >::IsCutPlane(), MeshCore::MeshGridIterator::More(), and MeshCore::MeshGridIterator::Next().
void MeshTrimByPlane::TrimFacets | ( | const std::vector< FacetIndex > & | trimFacets, |
const Base::Vector3f & | base, | ||
const Base::Vector3f & | normal, | ||
std::vector< MeshGeomFacet > & | trimmedFacets | ||
) |
The facets from trimFacets will be trimmed or deleted and trimmedFacets holds the newly generated facets.
References MeshCore::MeshKernel::GetFacet().