mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
refinement of stl geometries
This commit is contained in:
parent
b0ea9537b1
commit
cf713efd2d
@ -41,6 +41,7 @@ void STLMeshing (STLGeometry & geom,
|
|||||||
lineendpoints(), spiralpoints(), selectedmultiedge()
|
lineendpoints(), spiralpoints(), selectedmultiedge()
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
ref = NULL;
|
||||||
edgedata = new STLEdgeDataList(*this);
|
edgedata = new STLEdgeDataList(*this);
|
||||||
externaledges.SetSize(0);
|
externaledges.SetSize(0);
|
||||||
Clear();
|
Clear();
|
||||||
@ -57,10 +58,11 @@ void STLMeshing (STLGeometry & geom,
|
|||||||
smoothedges = NULL;
|
smoothedges = NULL;
|
||||||
area = -1;
|
area = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
STLGeometry :: ~STLGeometry()
|
STLGeometry :: ~STLGeometry()
|
||||||
{
|
{
|
||||||
delete edgedata;
|
delete edgedata;
|
||||||
|
delete ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
void STLGeometry :: Save (string filename) const
|
void STLGeometry :: Save (string filename) const
|
||||||
@ -98,7 +100,11 @@ int STLGeometry :: GenerateMesh (Mesh*& mesh, MeshingParameters & mparam,
|
|||||||
|
|
||||||
const Refinement & STLGeometry :: GetRefinement () const
|
const Refinement & STLGeometry :: GetRefinement () const
|
||||||
{
|
{
|
||||||
return RefinementSTLGeometry (*this);
|
// return RefinementSTLGeometry (*this);
|
||||||
|
delete ref;
|
||||||
|
ref = new RefinementSTLGeometry(*this);
|
||||||
|
// ref -> Set2dOptimizer(new MeshOptimizeSTLSurface(*this)); ??? copied from CSG
|
||||||
|
return *ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,7 +159,8 @@ namespace netgen
|
|||||||
Vec<3> meshtrignv;
|
Vec<3> meshtrignv;
|
||||||
Vec<3> ex, ey, ez;
|
Vec<3> ex, ey, ez;
|
||||||
Point<3> p1;
|
Point<3> p1;
|
||||||
|
mutable class RefinementSTLGeometry * ref;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int edgesfound;
|
int edgesfound;
|
||||||
int surfacemeshed;
|
int surfacemeshed;
|
||||||
|
Loading…
Reference in New Issue
Block a user