Revision: 41812
http://brlcad.svn.sourceforge.net/brlcad/?rev=41812&view=rev
Author: brlcad
Date: 2010-12-28 18:25:29 +0000 (Tue, 28 Dec 2010)
Log Message:
-----------
RT_HIT_NORM() macro was deprecated long before 7.0, so finally make it
obsolete. new code should be calling RT_HIT_NORMAL().
Modified Paths:
--------------
brlcad/trunk/doc/deprecation.txt
brlcad/trunk/include/raytrace.h
Modified: brlcad/trunk/doc/deprecation.txt
===================================================================
--- brlcad/trunk/doc/deprecation.txt 2010-12-28 15:24:58 UTC (rev 41811)
+++ brlcad/trunk/doc/deprecation.txt 2010-12-28 18:25:29 UTC (rev 41812)
@@ -176,7 +176,6 @@
pre 7.0
-------
include/raytrace.h
- RT_HIT_NORM -> RT_HIT_NORMAL [deprecated pre-7.0]
struct hit.hit_point -> RT_HIT_POINT [deprecated pre-7.0]
struct hit.hit_normal -> RT_HIT_NORMAL [deprecated pre-7.0]
@@ -185,6 +184,10 @@
* OBSOLETE *
************
+7.18.2
+------
+ RT_HIT_NORM -> RT_HIT_NORMAL [deprecated pre-7.0]
+
7.18.0
------
include/raytrace.h
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2010-12-28 15:24:58 UTC (rev 41811)
+++ brlcad/trunk/include/raytrace.h 2010-12-28 18:25:29 UTC (rev 41812)
@@ -289,27 +289,10 @@
#define RT_CK_HIT(_p) BU_CKMAG(_p, RT_HIT_MAGIC, "struct hit")
/**
- * Old macro: DEPRECATED, use RT_HIT_NORMAL
+ * Compute normal into (_hitp)->hit_normal. Set flip-flag accordingly
+ * depending on boolean logic, as one hit may be shared between
+ * multiple partitions with different flip status.
*
- * Only the hit_dist field of pt_inhit and pt_outhit are valid when
- * a_hit() is called; to compute both hit_point and hit_normal, use
- * RT_HIT_NORMAL() macro; to compute just hit_point, use
- * VJOIN1(hitp->hit_point, rp->r_pt, hitp->hit_dist, rp->r_dir);
- */
-#define RT_HIT_NORM(_hitp, _stp, _unused) { \
- RT_CK_HIT(_hitp); \
- RT_CK_SOLTAB(_stp); \
- RT_CK_FUNCTAB((_stp)->st_meth); \
- if ((_stp)->st_meth->ft_norm) { \
- (_stp)->st_meth->ft_norm(_hitp, _stp, (_hitp)->hit_rayp); \
- } \
-}
-
-/**
- * New macro: Compute normal into (_hitp)->hit_normal, but leave it
- * un-flipped, as one hit may be shared between multiple partitions
- * with different flip status.
- *
* Example: box.r = box.s - sph.s; sph.r = sph.s
*
* Return the post-boolean normal into caller-provided _normal vector.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits