Revision: 42421
http://brlcad.svn.sourceforge.net/brlcad/?rev=42421&view=rev
Author: brlcad
Date: 2011-01-18 21:39:54 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
not entirely clear what the compiler is complaining about here with the two
(const point_t *) parameters to rt_metaball_find_intersection(). the problem
has something to do with point_t being an array typedef. instead of getting
the address during the call, get the point_t address beforehand with an
explicit cast to keep things quiet. (gcc 4.2.1)
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/metaball/metaball.c
Modified: brlcad/trunk/src/librt/primitives/metaball/metaball.c
===================================================================
--- brlcad/trunk/src/librt/primitives/metaball/metaball.c 2011-01-18
21:16:02 UTC (rev 42420)
+++ brlcad/trunk/src/librt/primitives/metaball/metaball.c 2011-01-18
21:39:54 UTC (rev 42421)
@@ -452,7 +452,9 @@
if (mb_stat == 1) {
if (rt_metaball_point_value((const point_t *)&p, mb) <
mb->threshold) {
point_t intersect, delta;
- rt_metaball_find_intersection(&intersect, mb, (const
point_t *)&lastpoint, (const point_t *)&p, step, mb->finalstep);
+ const point_t *pA = (const point_t *)&lastpoint;
+ const point_t *pB = (const point_t *)&p;
+ rt_metaball_find_intersection(&intersect, mb, pA, pB, step,
mb->finalstep);
VMOVE(segp->seg_out.hit_point, intersect);
--segsleft;
++retval;
@@ -466,7 +468,9 @@
} else {
if (rt_metaball_point_value((const point_t *)&p, mb) >
mb->threshold) {
point_t intersect, delta;
- rt_metaball_find_intersection(&intersect, mb, (const
point_t *)lastpoint, (const point_t *)&p, step, mb->finalstep);
+ const point_t *pA = (const point_t *)&lastpoint;
+ const point_t *pB = (const point_t *)&p;
+ rt_metaball_find_intersection(&intersect, mb, pA, pB, step,
mb->finalstep);
RT_GET_SEG(segp, ap->a_resource);
segp->seg_stp = stp;
--segsleft;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits