[brlcad-commits] SF.net SVN: brlcad:[50003] brlcad/trunk/src/librt/shoot.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <eri...@us...> - 2012-04-13 18:42:11
|
Revision: 50003 http://brlcad.svn.sourceforge.net/brlcad/?rev=50003&view=rev Author: erikgreenwald Date: 2012-04-13 18:42:04 +0000 (Fri, 13 Apr 2012) Log Message: ----------- add some more copy bits to the shootray_simple hit func Modified Paths: -------------- brlcad/trunk/src/librt/shoot.c Modified: brlcad/trunk/src/librt/shoot.c =================================================================== --- brlcad/trunk/src/librt/shoot.c 2012-04-13 18:32:10 UTC (rev 50002) +++ brlcad/trunk/src/librt/shoot.c 2012-04-13 18:42:04 UTC (rev 50003) @@ -1909,9 +1909,22 @@ c->pt_forw = NULL; c->pt_back = NULL; } - /* - c->pt_magic = PARTITION_MAGIC; - */ + /* partial deep copy of the partition */ + c->pt_magic = pp->pt_magic; + c->pt_inseg = NULL; + c->pt_inhit = bu_malloc(sizeof(struct hit), "shootray simple inhit"); + c->pt_inhit->hit_magic = pp->pt_inhit->hit_magic; + c->pt_inhit->hit_dist = pp->pt_inhit->hit_dist; + c->pt_inhit->hit_surfno = pp->pt_inhit->hit_surfno; + c->pt_outseg = NULL; + c->pt_outhit = bu_malloc(sizeof(struct hit), "shootray simple inhit"); + c->pt_outhit->hit_magic = pp->pt_outhit->hit_magic; + c->pt_outhit->hit_dist = pp->pt_outhit->hit_dist; + c->pt_outhit->hit_surfno = pp->pt_outhit->hit_surfno; + c->pt_regionp = pp->pt_regionp; + c->pt_inflip = pp->pt_inflip; + c->pt_outflip = pp->pt_outflip; + c->pt_overlap_reg = NULL; } a->a_uptr = p; return 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |