DiscussionsIssue archiveOther usage issues

Archived discussion

for help,CAE mesh!

Other usage issuesTue, 05/24/2005 - 06:314 replies

Browse this forum
QuestionAuthor

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!!!

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

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,

Commenter-1

02Commenter-2

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!

03Commenter-1

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,

Commenter-1

04Commenter-2

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.