mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025378: Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
New parameter MinSize has been introduced to BRepMesh and GCPnts_TangentialDeflection; Check length of remaining part of curve for min size parameter instead of distance between two points to avoid large gaps in case highly distorted BSpline surfaces; Produce fine mesh for sphere and fix other surface; Test cases for issue CR25378 Correction of test cases for issue CR25378
This commit is contained in:
@@ -103,6 +103,18 @@ public: //! @name accessing to parameters.
|
||||
return myInParallel;
|
||||
}
|
||||
|
||||
//! Sets min size parameter.
|
||||
inline void SetMinSize(const Standard_Real theMinSize)
|
||||
{
|
||||
myMinSize = Max(theMinSize, Precision::Confusion());
|
||||
}
|
||||
|
||||
//! Returns min size parameter.
|
||||
inline Standard_Real GetMinSize() const
|
||||
{
|
||||
return myMinSize;
|
||||
}
|
||||
|
||||
//! Enables/disables internal vertices mode.
|
||||
inline void SetInternalVerticesMode(const Standard_Boolean isEnabled)
|
||||
{
|
||||
@@ -205,6 +217,7 @@ protected:
|
||||
Standard_Real myMaxShapeSize;
|
||||
Standard_Integer myStatus;
|
||||
NCollection_Vector<TopoDS_Face> myFaces;
|
||||
Standard_Real myMinSize;
|
||||
Standard_Boolean myInternalVerticesMode;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user