Revision: 55273
http://sourceforge.net/p/brlcad/code/55273
Author: n_reed
Date: 2013-04-30 20:53:41 +0000 (Tue, 30 Apr 2013)
Log Message:
-----------
implement LoadONBrep for intersection curves
Modified Paths:
--------------
brlcad/trunk/src/conv/step/IntersectionCurve.cpp
Modified: brlcad/trunk/src/conv/step/IntersectionCurve.cpp
===================================================================
--- brlcad/trunk/src/conv/step/IntersectionCurve.cpp 2013-04-30 18:14:48 UTC
(rev 55272)
+++ brlcad/trunk/src/conv/step/IntersectionCurve.cpp 2013-04-30 20:53:41 UTC
(rev 55273)
@@ -90,8 +90,19 @@
bool
IntersectionCurve::LoadONBrep(ON_Brep *brep)
{
- std::cerr << "Error: ::LoadONBrep(ON_Brep *brep<" << std::hex << brep <<
std::dec << ">) not implemented for " << entityname << std::endl;
- return false;
+ bool status;
+
+ if (!brep) {
+ return false;
+ }
+
+ curve_3d->Start(start);
+ curve_3d->End(end);
+
+ status = curve_3d->LoadONBrep(brep);
+ ON_id = curve_3d->GetONId();
+
+ return status;
}
// Local Variables:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits