Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

BRepOffset_Offset and degenerate edges

BRepOffset_Offset and degenerate edges
Mauro Mariotti 2013/01/03 20:36
The following method

void BRepOffset_Offset::Init(const TopoDS_Face& Face,
const Standard_Real Offset,
const TopTools_DataMapOfShapeShape& Created,
const Standard_Boolean OffsetOutside,
const GeomAbs_JoinType JoinType)

manages the cases when the surface has a degenerate edge with V = VMin or V = VMax,
but not the similare cases for U!
I have a case when the degenerate edge is at U = Umin, which is wrongly treated as V = VMax; then an exception is raised because GeomAPI_ProjectPointOnCurve fails.

I cannot believe it.
Does it expect a parameter exchange before, to simplify the coding?

This is the call stack:
>     TKOffset.dll!BRepOffset_Offset::Init(const TopoDS_Face & Face={...}, const double Offset=-10.000000000000000, const TopTools_DataMapOfShapeShape & Created={...}, const unsigned int OffsetOutside=0, GeomAbs_JoinType JoinType=GeomAbs_Arc) Line 567     C++
     TKOffset.dll!BRepOffset_Offset::BRepOffset_Offset(const TopoDS_Face & Face={...}, const double Offset=-10.000000000000000, const TopTools_DataMapOfShapeShape & Created={...}, const unsigned int OffsetOutside=0, GeomAbs_JoinType JoinType=GeomAbs_Arc) Line 417 + 0x2a bytes     C++
     TKOffset.dll!BRepOffset_MakeOffset::BuildOffsetByArc() Line 1397 + 0x3d bytes     C++
     TKOffset.dll!BRepOffset_MakeOffset::MakeOffsetShape() Line 707 + 0xd bytes     C++
     TKOffset.dll!BRepOffsetAPI_MakeOffsetShape::Build() Line 78     C++
     TKOffset.dll!BRepOffsetAPI_MakeOffsetShape::BRepOffsetAPI_MakeOffsetShape(const TopoDS_Shape & S={...}, const double Offset=-10.000000000000000, const double Tol=0.0010000000000000000, BRepOffset_Mode Mode=BRepOffset_Skin, const unsigned int Intersection=0, const unsigned int SelfInter=0, GeomAbs_JoinType Join=GeomAbs_Arc) Line 55 + 0xa bytes     C++

Regards.
Mauro
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map