I have a solid now.i want to mesh it's surface.first, i want to gain all the faces,then wires,edges etc. how should i do? thanks!!!
Patrik Mueller Tue, 05/24/2005 - 08:06
Hi,
for exploring the faces and so on take a look at TopExp_Explorer. For triangulation check 02_TopologySamples\02_7_TopologyTriangulation from the samples.
hi , i can't understand the use of functions. can you show me some codes about the function of exploring the faces and gain the information of the face. thanks!
hi,thanks for your replies! but ...
my aim: want to activate a solid and gain the information about faces ,edges ,vertexes automatically, then ,meshing all surfaces on these information by my Triangulation arithmetic.
so i want to some advice or more samples, i think the mentioned samples 02_7_TopologyTriangulation is not very useful for me.
Tue, 05/24/2005 - 08:06
Hi,
for exploring the faces and so on take a look at TopExp_Explorer. For triangulation check 02_TopologySamples\02_7_TopologyTriangulation from the samples.
HTH,
Patrik
Tue, 05/24/2005 - 08:41
hi , i can't understand the use of functions. can you show me some codes about the function of exploring the faces and gain the information of the face. thanks!
Tue, 05/24/2005 - 08:50
Hi,
This is from the mentioned samples:
for (TopExp_Explorer ex(ShapeFused,TopAbs_FACE) ; ex.More(); ex.Next()) {
TopoDS_Face F =TopoDS::Face(ex.Current());
TopLoc_Location L;
Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);
result = result + facing->NbTriangles();
}
Greets,
Patrik
Tue, 05/24/2005 - 11:09
hi,thanks for your replies! but ...
my aim: want to activate a solid and gain the information about faces ,edges ,vertexes automatically, then ,meshing all surfaces on these information by my Triangulation arithmetic.
so i want to some advice or more samples, i think the mentioned samples 02_7_TopologyTriangulation is not very useful for me.