
Thu, 03/18/2010 - 12:40
Hello.
Does somebody knows about Poly_CoherentTriangulation Class added at OCC 6.3
I can add nodes by AddNode member but I can't add triangles by AddTriangle.
like this
Handle(Poly_CoherentTriangulation) myTri=new Poly_CoherentTriangulation();
for(int i=0;i
myTri->SetNode(pt,-1);
}
for(int i=0;i
}
which x_arr,y_arr,z_arr means vertex array.and idx1,idx2,idx3 means index of vertex of each polygon.
all indexs are greater than 0 and smaller than npts .
First call of AddTriangle raise exception.
I confirm MaxNode() is same to npts. and NNodes() is 0.
Does anyone knows why I can't add triangles.
Thank you in advance.
Thu, 03/18/2010 - 13:41
I can fix this problem by myself like this.
Handle(NCollection_IncAllocator) alloc=new NCollection_IncAllocator();
Handle(Poly_CoherentTriangulation) myTri=new Poly_CoherentTriangulation(alloc);
but I don't understand what is NCollection_IncAllocator.
Thu, 03/18/2010 - 13:59
Does somebody knows about how to use Poly_CoherentTriangulation to mesh decimation,which introduced OCC 6.3 release notes.
Thank you in advance.