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

Search the Forums
See All Topics

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
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

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