Revision: 54420
http://brlcad.svn.sourceforge.net/brlcad/?rev=54420&view=rev
Author: brlcad
Date: 2013-02-15 14:17:39 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
document where the rflag is encoded as a negative, clean up formatting
Modified Paths:
--------------
brlcad/trunk/src/libged/edpipe.c
Modified: brlcad/trunk/src/libged/edpipe.c
===================================================================
--- brlcad/trunk/src/libged/edpipe.c 2013-02-15 14:09:50 UTC (rev 54419)
+++ brlcad/trunk/src/libged/edpipe.c 2013-02-15 14:17:39 UTC (rev 54420)
@@ -102,6 +102,7 @@
return (d * scale);
}
+
void
pipe_scale_od(struct rt_pipe_internal *pipeip, fastf_t scale)
{
@@ -382,9 +383,11 @@
newpp->pp_bendradius = last->pp_bendradius;
VMOVE(newpp->pp_coord, new_pt);
- if (pp) { /* append after current point */
+ if (pp) {
+ /* append after current point */
BU_LIST_APPEND(&pp->l, &newpp->l);
- } else { /* add to end of pipe solid */
+ } else {
+ /* add to end of pipe solid */
BU_LIST_INSERT(&pipeip->pipe_segs_head, &newpp->l);
}
@@ -434,9 +437,11 @@
newpp->pp_bendradius = first->pp_bendradius;
VMOVE(newpp->pp_coord, new_pt);
- if (pp) { /* insert before current point */
+ if (pp) {
+ /* insert before current point */
BU_LIST_INSERT(&pp->l, &newpp->l);
- } else { /* add to start of pipe */
+ } else {
+ /* add to start of pipe */
BU_LIST_APPEND(&pipeip->pipe_segs_head, &newpp->l);
}
@@ -485,14 +490,15 @@
#if 0
Tcl_AppendResult(INTERP, "Cannot delete this point, it will result in
an illegal pipe\n", (char *)NULL);
#endif
- if (next)
- BU_LIST_INSERT(&next->l, &ps->l)
- else if (prev)
- BU_LIST_APPEND(&prev->l, &ps->l)
- else
- BU_LIST_INSERT(&head->l, &ps->l)
+ if (next) {
+ BU_LIST_INSERT(&next->l, &ps->l);
+ } else if (prev) {
+ BU_LIST_APPEND(&prev->l, &ps->l);
+ } else {
+ BU_LIST_INSERT(&head->l, &ps->l);
+ }
- return ps;
+ return ps;
} else
bu_free((genptr_t)ps, "_ged_delete_pipept: ps");
@@ -535,8 +541,9 @@
RT_PIPE_CK_MAGIC(pipeip);
+ /* encode rflag as a negative scale so we don't have to pass it */
if (!rflag && sf > 0)
- sf *= -1.0;
+ sf = -sf;
switch (attribute[0]) {
case 'b':
@@ -696,6 +703,7 @@
return _ged_append_pipept_common(gedp, argc, argv, _ged_add_pipept);
}
+
int
ged_delete_pipept(struct ged *gedp, int argc, const char *argv[])
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits