Revision: 50650
http://brlcad.svn.sourceforge.net/brlcad/?rev=50650&view=rev
Author: phoenixyjll
Date: 2012-05-24 03:39:26 +0000 (Thu, 24 May 2012)
Log Message:
-----------
The old version creates a circle just on the xy plane. Now it's created on the
sketch plane.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp
brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp
Modified: brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp 2012-05-24
03:15:33 UTC (rev 50649)
+++ brlcad/trunk/src/librt/primitives/revolve/revolve_brep.cpp 2012-05-24
03:39:26 UTC (rev 50650)
@@ -197,7 +197,8 @@
if (csg->radius < 0) { {
ON_3dPoint cntrpt = (*b)->m_V[csg->end].Point();
ON_3dPoint edgept = (*b)->m_V[csg->start].Point();
- ON_Circle* c3dcirc = new ON_Circle(cntrpt,
cntrpt.DistanceTo(edgept));
+ ON_Plane* cplane = new ON_Plane(cntrpt, plane_x_dir,
plane_y_dir);
+ ON_Circle* c3dcirc = new ON_Circle(*cplane,
cntrpt.DistanceTo(edgept));
ON_Curve* c3d = new ON_ArcCurve((const ON_Circle)*c3dcirc);
c3d->SetDomain(0.0, 1.0);
(*b)->m_C3.Append(c3d);
Modified: brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp 2012-05-24
03:15:33 UTC (rev 50649)
+++ brlcad/trunk/src/librt/primitives/sketch/sketch_brep.cpp 2012-05-24
03:39:26 UTC (rev 50650)
@@ -186,7 +186,8 @@
if (csg->radius < 0) {
ON_3dPoint cntrpt = (*b)->m_V[csg->end].Point();
ON_3dPoint edgept = (*b)->m_V[csg->start].Point();
- ON_Circle* c3dcirc = new ON_Circle(cntrpt,
cntrpt.DistanceTo(edgept));
+ ON_Plane* cplane = new ON_Plane(cntrpt, plane_x_dir,
plane_y_dir);
+ ON_Circle* c3dcirc = new ON_Circle(*cplane,
cntrpt.DistanceTo(edgept));
ON_Curve* c3d = new ON_ArcCurve((const ON_Circle)*c3dcirc);
c3d->SetDomain(0.0, 1.0);
(*b)->m_C3.Append(c3d);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
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 Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits