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

Search the Forums
See All Topics

trimming a cylinder from PI to 3*PI (Geom_RectangularTrimmedSurface)

trimming a cylinder from PI to 3*PI (Geom_RectangularTrimmedSurface)
Mauro Mariotti 2012/06/28 15:54
It seems to me there is an inconsistency in the Geom_RectangularTrimmedSurface class.

It allows to trim the basis surface along both U and V parameters, or just along one of them.

Suppose I want to trim a Geom_CylindricalSurface with these parameters:
PI, 3*PI, 0, 100.
It is a closed cylinder, trimmed just along V from 0 to 100, but the U interval starts from PI instead of 0.
Which constructor should I use?
If I trim along both U and V, the internal flag isutrimmed is set to true.
Then the method IsUClosed returns Standard_False!
If I trim along V only, isutrimmed is set to false.
Then the method VIso creates a Geom_Circle which goes from 0 to 2*PI, not from PI to 3*PI

In my opinion the first option is correct (otherwise no information is kept about PI and
3*PI), but Geom_RectangularTrimmedSurface::IsUClosed, when isutrimmed is true, should
check if utrim1 and utrim2 are coincident and return Standard_True.
I wonder if this could give troubles to some OCC algorithms.

Latest news
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android
  • Open CASCADE JT Assistant Sources

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