Revision: 45831
http://brlcad.svn.sourceforge.net/brlcad/?rev=45831&view=rev
Author: brlcad
Date: 2011-08-08 22:25:56 +0000 (Mon, 08 Aug 2011)
Log Message:
-----------
reduce some more and document the vars
Modified Paths:
--------------
brlcad/trunk/src/proc-db/sketch.c
Modified: brlcad/trunk/src/proc-db/sketch.c
===================================================================
--- brlcad/trunk/src/proc-db/sketch.c 2011-08-08 22:21:12 UTC (rev 45830)
+++ brlcad/trunk/src/proc-db/sketch.c 2011-08-08 22:25:56 UTC (rev 45831)
@@ -42,11 +42,19 @@
main(int argc, char **argv)
{
struct rt_sketch_internal skt;
+
+ /* examples of the different segment types */
struct bezier_seg bsg;
struct line_seg lsg[4];
struct carc_seg csg;
- point_t V;
- vect_t u_vec, v_vec;
+
+ /* position of the sketch */
+ point_t V = {10.0, 20.0, 30.0};
+
+ /* define the parameter space */
+ vect_t u_vec = {1.0, 0.0, 0.0}, v_vec = {0.0, 1.0, 0.0};
+
+ /* vertices used by this sketch */
point2d_t verts[] = {
{ 250, 0 }, /* 0 */
{ 500, 0 }, /* 1 */
@@ -59,10 +67,14 @@
{ 125, 0 }, /* 8 */
{ 200, 200 } /* 9 */
};
- int reverse[] = {0, 0, 0, 0, 0, 0};
- genptr_t segments[] = {NULL, NULL, NULL, NULL, NULL, NULL};
- int ctrl_points[] = {0, 0, 0, 0, 0};
+ /* overall segments */
+ int reverse[6] = {0, 0, 0, 0, 0, 0};
+ genptr_t segments[6] = {NULL, NULL, NULL, NULL, NULL, NULL};
+
+ /* bezier */
+ int ctrl_points[5] = {0, 0, 0, 0, 0};
+
if (argc > 1)
bu_log("Usage: %s\nWarning - ignored unsupported argument \"%s\"\n",
argv[0], argv[1]);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits