Revision: 56380
http://sourceforge.net/p/brlcad/code/56380
Author: phoenixyjll
Date: 2013-07-31 05:15:45 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
Use sub_curve() instead of repeating that routine.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/intersect.cpp
Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 05:04:57 UTC (rev
56379)
+++ brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 05:15:45 UTC (rev
56380)
@@ -2143,23 +2143,7 @@
}
// The params of the nurbscurve is between [0, 2*pi]
- ON_Curve *left = NULL, *right = NULL;
- if (!ON_NearZero(t_min)) {
- nurbscurve.Split(t_min, left, right);
- delete left;
- left = NULL;
- }
- else
- right = nurbscurve.Duplicate();
- if (right && !ON_NearZero(t_max - 2*ON_PI)) {
- right->Split(t_max, left, right);
- }
- else
- left = right->Duplicate();
- left->ChangeDimension(in->Dimension());
- if (delete_curve) delete in;
- delete right;
- return left;
+ return sub_curve(&nurbscurve, t_min, t_max);
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits