mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 10:10:34 +05:00
rnc: Added a control in order to prevent the Shape driver from building invalid edges (edges without C1 continuity)
This commit is contained in:
parent
35239cd2c8
commit
6243f56466
@ -789,7 +789,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
||||
|
||||
concatcurve->SetValue(concatcurve->Lower(), Concat.BSplineCurve());
|
||||
}
|
||||
|
||||
// rnc : prevents the driver from building an edge without C1 continuity
|
||||
if (concatcurve->Value(concatcurve->Lower())->Continuity()==GeomAbs_C0){
|
||||
Standard_ConstructionError::Raise("Construction aborted : The given Wire has sharp bends between some Edges, no valid Edge can be built");
|
||||
}
|
||||
ResEdge = BRepLib_MakeEdge(concatcurve->Value(concatcurve->Lower()),
|
||||
FirstVertex, LastVertex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user