[brlcad-commits] SF.net SVN: brlcad:[34578] brlcad/trunk/src/librt/primitives/brep/brep.cpp
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2009-05-21 19:00:21
|
Revision: 34578 http://brlcad.svn.sourceforge.net/brlcad/?rev=34578&view=rev Author: starseeker Date: 2009-05-21 19:00:08 +0000 (Thu, 21 May 2009) Log Message: ----------- Add code to dump text summary of trimming curves - useful if there is interest in the exact nature of a particular trimming curve. Modified Paths: -------------- brlcad/trunk/src/librt/primitives/brep/brep.cpp Modified: brlcad/trunk/src/librt/primitives/brep/brep.cpp =================================================================== --- brlcad/trunk/src/librt/primitives/brep/brep.cpp 2009-05-21 17:26:56 UTC (rev 34577) +++ brlcad/trunk/src/librt/primitives/brep/brep.cpp 2009-05-21 19:00:08 UTC (rev 34578) @@ -775,6 +775,9 @@ static bool curveApproximated[MAX_CURVES]; static ON_3dPoint curveApproximations[MAX_CURVES][MAX_NUMBEROFPOINTS]; + ON_wString curveinfo; + ON_TextLog log(curveinfo); + if (!approximationsInit) { approximationsInit = true; for (int i = 0; i < MAX_CURVES; i++) { @@ -810,6 +813,14 @@ continue; } + // Uncomment the following to get a look at the summary report + // of a given trimming curve + /* trimCurve->Dump(log); + ON_String cinfo = ON_String(curveinfo); + const char *info = cinfo.Array(); + bu_log("%s\n", info); + */ + double closestT; bool gotClosest = trimCurve->GetClosestPoint(hitPoint, &closestT); if (!gotClosest) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |