Revision: 57249
http://sourceforge.net/p/brlcad/code/57249
Author: phoenixyjll
Date: 2013-08-29 04:11:42 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
Plot the normal with a scale computed from the size of the surface.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
Modified: brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-08-29
01:46:37 UTC (rev 57248)
+++ brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-08-29
04:11:42 UTC (rev 57249)
@@ -634,7 +634,7 @@
ON_3dVector n =
surf.NormalAt(udom.ParameterAt((double)u/(double)gridres),
vdom.ParameterAt((double)(v-1)/(double)gridres));
n.Unitize();
VMOVE(pt1, p);
- VSCALE(pt2, n, 1.5);
+ VSCALE(pt2, n, surf.BoundingBox().Diagonal().Length()*0.1);
VADD2(pt2, pt1, pt2);
RT_ADD_VLIST(vhead, pt1, BN_VLIST_LINE_MOVE);
RT_ADD_VLIST(vhead, pt2, BN_VLIST_LINE_DRAW);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits