Archived issue #0014376

Shading triangulation of face is not computed

Open CASCADEOCCT:Meshclosed0 public notes

Search issues

Description

It is impossible to visualize the attached Face_8.brep in shading mode using
standard OCC visualization mechanizms.
Simpler way to reproducte this bug is to launch the next sequence of commands:

BRep_Builder aBuilder;
TopoDS_Shape aShape;
BRepTools::Read(aShape, "Face_8.brep", aBuilder);
BRepMesh_IncrementalMesh aIMesh(aSh, 0.45110277533, Standard_False, PI/9.);
TopLoc_Location aLocation;
Handle(Poly_Triangulation) aTriang =
BRep_Tool::Triangulation(TopoDS::Face(aShape), aLocation);

Result trianguilation is null. Note that incremental mesh parameters for this
face are calculated by standard visualization tools.

Note: this bug is from NPAL 11172.

Additional information

Documentation remark, added by Author 2007-01-24 08:23:32:

Changes:
If triangulation algo is failed, try it again with better precision. It is
slower, but this case is very rare. Performance in most cases must stay the same.
Modified entities:
BRepMesh_FastDiscret.cdl
BRepMesh_FastDiscret.cxx
Triangle.hxx
triangle.c

Public activity

No public notes

Participants are labeled by their role within this record.