for help,CAE mesh!

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's picture

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

wyiya's picture

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!

Patrik Mueller's picture

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

wyiya's picture

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.