Hi!
Some functions that I found in src/librt/opennurbs_ext.cpp may be useful to
you.
In function 'CurveTree::CurveTree(ON_BrepFace* face) ',it seems to
subdivide NURBS curve rescurively until the subcurve
is near linear.Some functions below is called that is very important.
CurveTree::getVerticalTangent(const ON_Curve *curve, fastf_t min, fastf_t
max)
CurveTree::getHorizontalTangent(const ON_Curve *curve, fastf_t min,
fastf_t max)
CurveTree::getHVTangents(const ON_Curve* curve, ON_Interval& t,
std::list<fastf_t>& list)
Three functions above is used to subdivide curve into monotone piecewise.
CurveTree::subdivideCurve(const ON_Curve* curve, int adj_face_index,
double min, double max, bool innerTrim, int divDepth)
The function above is used to subdivide curve rescurively.
Expect to be useful to you!
Cheers
Laijiren
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel