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