I'v read some code in src/librt/opennurbs_ext.h and opennurbs_ext.cpp,I found that BBNode and BRNode is used to represent the subsurface and subcurve. So,based on the struct of BBNode and BRNode, I'v implement the function of doTrimming() to calculate the intersections between BBNode's edge in uv and trimcurve, and also get the untrimmed region which is represented as TrimLoop.The working is a little like function of drawBBNode(..) in brep_debug.cpp,but drawBBNode seems only available for displaying.
the link is here:https://sourceforge.net/tracker/?func=detail&aid=3539211&group_id=105292&atid=640804
It comes out some warnings for inline fails when compiling, I'v tried to move the TrimLoop::findPos() to opennurbs_ext.cpp to avoid incline,but it don't work,I'm confused about it.
I'v make some debug for doTrimming(...),but there still may be some bugs,so I'll work on it continually.
Get latest updates about Open Source Projects, Conferences and News.