1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027384: BRepMesh_IncrementalMesh does not take angular deflection into account for spun/elementary surfaces

Check deviation of normals at vertices of triangles for complex surface types different from Bezier and BSpline.
Modified test cased according to changes in BRepMesh.
Do not remove more intermediate parameters than N - 3 in order to have at least one parameter related to surface internals.
Check angle for angular deflection before removement of intermediate parameters.
Unify computation of internal vertices for complex surfaces.
Discretization points of edges are taken into account during computation of step of mesh grid.
Remove parameters only if they fit the constrains along the whole surface.
Do not add random internal parameters in case if their number is just 2.
Force freezing parameters both for U and V in case of significant control point.

Modified test cases

Warnings elimination in vc14.
This commit is contained in:
oan
2016-04-26 15:38:42 +03:00
committed by bugmaster
parent 3a507ddb47
commit 7856b126b0
37 changed files with 241 additions and 195 deletions

View File

@@ -921,8 +921,8 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS
else if (!style->ItemAP242().Representation().IsNull()){
//special case for AP242: item can be Reprsentation
Handle(StepRepr_Representation) aRepr = style->ItemAP242().Representation();
for (Standard_Integer i = 1; i <= aRepr->Items()->Length(); i++)
anItems.Append(aRepr->Items()->Value(i));
for (Standard_Integer j = 1; j <= aRepr->Items()->Length(); j++)
anItems.Append(aRepr->Items()->Value(j));
}
for (Standard_Integer itemIt = 0; itemIt < anItems.Length(); itemIt++) {
TopoDS_Shape S = STEPConstruct::FindShape ( Styles.TransientProcess(),