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
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / Curvature comb of curve

Curvature comb of curve

Curvature comb of curve
Cauchy Ding 2012/08/31 16:25
Hi All,

I am trying to design curvature comb of curve. Attachment has two figures. One is the curvature comb from Creo. Another is from mine. When I use the same scale length, I find they are different at the end region. I am using OCC6.5.3. My persudocode of calculating curvature comb lists as follows:
               for(i=0; i<n; ++i)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hCur->D2(u, pnt, vec1, vec2);
                    double radius = vec2.Magnitude();
                    vec = vec1.Crossed(vec2);
//                    double radius = vec.Magnitude();
                    vec2 = vec.Crossed(vec1);
                    pnt2 = pnt.XYZ()+vec2.XYZ()*(scale*radius);
                    AddLine(pnt.X(), pnt.Y(), pnt.Z(), pnt2.X(), pnt2.Y(), pnt2.Z());
If you think my method is wrong, please kindly figure it out. Thanks in advance.


You have to be logged in to download the attached file
Cauchy Ding 2012/09/04 06:42
API GeomLProp_CLProps can do it well.
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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