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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / trimming a cylinder from PI to 3*PI (Geom_RectangularTrimmedSurface)

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.

Regards.
Mauro
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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