Hi!
I'v upload the patch to implement the adaptive bezier subdivision and
triangle mesh display,next I'll build a kt or qt tree to represent the division
in parameter region which seems like the SurfaceTree::subdivideSurface(...) in
opennurbs_ext.cpp,but the recursive termination condition is different.
So,Where to implement the kt/qt tree, in brep.cpp or opennurbs_ext.cpp?
the patch's link is :
https://sourceforge.net/tracker/index.php?func=detail&aid=3534876&group_id=105292&atid=640804#
Another question about Nurbs! In opennurbs, the operator for ON_4dPoint
has something special.
below is the operator +=
const double sw1 = (w>0.0) ? sqrt(w) : -sqrt(-w);
const double sw2 = (p.w>0.0) ? sqrt(p.w) : -sqrt(-p.w);
const double s1 = sw2/sw1;
const double s2 = sw1/sw2;
x = x*s1 + p.x*s2;
y = y*s1 + p.y*s2;
z = z*s1 + p.z*s2;
w = sw1*sw2;
So,why to implement the operator in this way?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel