mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0026664: Triangulating a very small polygon fails
Parameter for adaptive computation of minimal 2D meshing precision added in BRepMesh_IncrementalMesh API. Corresponding option -adaptive added in DRAW command All meshing parameters are collected in structure, BRepMesh_FastDiscret::Parameters, which is now used to define and manipulate parameters of the algorithm.
This commit is contained in:
@@ -837,7 +837,11 @@ void DBRep_DrawableShape::DisplayHiddenLines(Draw_Display& dis)
|
||||
if (!strcmp(dout.GetType(id),"PERS")) focal = dout.Focal(id);
|
||||
Standard_Real Ang,Def;
|
||||
HLRBRep::PolyHLRAngleAndDeflection(myAng,Ang,Def);
|
||||
BRepMesh_IncrementalMesh MESH(myShape, Def, Standard_True, Ang);
|
||||
BRepMesh_FastDiscret::Parameters aMeshParams;
|
||||
aMeshParams.Relative = Standard_True;
|
||||
aMeshParams.Deflection = Def;
|
||||
aMeshParams.Angle = Ang;
|
||||
BRepMesh_IncrementalMesh MESH(myShape, aMeshParams);
|
||||
Standard_Boolean recompute = Standard_True;
|
||||
// find if the view must be recomputed
|
||||
DBRep_ListIteratorOfListOfHideData it(myHidData);
|
||||
|
Reference in New Issue
Block a user