Mesh segmentation
This commit is contained in:
parent
d81094cd78
commit
8c3b83a451
|
@ -31,7 +31,7 @@
|
|||
|
||||
using namespace MeshCore;
|
||||
|
||||
void MeshSurfaceSegment::PrepareFacet(unsigned long)
|
||||
void MeshSurfaceSegment::Initialize(unsigned long)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ MeshDistancePlanarSegment::~MeshDistancePlanarSegment()
|
|||
delete fitter;
|
||||
}
|
||||
|
||||
void MeshDistancePlanarSegment::PrepareFacet(unsigned long index)
|
||||
void MeshDistancePlanarSegment::Initialize(unsigned long index)
|
||||
{
|
||||
fitter->Clear();
|
||||
|
||||
|
@ -204,7 +204,7 @@ void MeshSegmentAlgorithm::FindSegments(std::vector<MeshSurfaceSegment*>& segm)
|
|||
// collect all facets of the same geometry
|
||||
std::vector<unsigned long> indices;
|
||||
indices.push_back(startFacet);
|
||||
(*it)->PrepareFacet(startFacet);
|
||||
(*it)->Initialize(startFacet);
|
||||
MeshSurfaceVisitor pv(**it, indices);
|
||||
myKernel.VisitNeighbourFacets(pv, startFacet);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
: minFacets(minFacets) {}
|
||||
virtual ~MeshSurfaceSegment() {}
|
||||
virtual bool TestFacet (const MeshFacet &rclFacet) const = 0;
|
||||
virtual void PrepareFacet(unsigned long);
|
||||
virtual void Initialize(unsigned long);
|
||||
void AddSegment(const std::vector<unsigned long>&);
|
||||
const std::vector<MeshSegment> GetSegments() const { return segments; }
|
||||
|
||||
|
@ -69,7 +69,7 @@ public:
|
|||
MeshDistancePlanarSegment(const MeshKernel& mesh, unsigned long minFacets, float tol);
|
||||
virtual ~MeshDistancePlanarSegment();
|
||||
bool TestFacet (const MeshFacet &rclFacet) const;
|
||||
void PrepareFacet(unsigned long);
|
||||
void Initialize(unsigned long);
|
||||
|
||||
protected:
|
||||
Base::Vector3f basepoint;
|
||||
|
|
Loading…
Reference in New Issue
Block a user