Re: [brlcad-devel] Debugging g-nff and Friends
Open Source Solid Modeling CAD
Brought to you by:
brlcad
|
From: Tom B. <tom...@gm...> - 2012-04-16 11:29:40
|
On Mon, Apr 16, 2012 at 06:24, Tom Browder <tom...@gm...> wrote:
...
> add the test I mentioned in question 2 above and the bomb problems
> went away (except for g-iges which now has another problem but with
> another bad tree magic number [maybe other "special" flags floating
> around?]).
I grepped for 'tp->magic' and found only these:
tp->magic = (uint32_t)-3; /* special bad flag */
./src/librt/db_tree.c
for (ftp = rt_functab; ftp->magic != 0; ftp++) {
./src/librt/primitives/table.c
(histp && (histp->magic == 0 || histp->magic == (unsigned int)-1))))
histp->magic = (unsigned int)-1; /* sanity */
histp->magic = BU_HIST_MAGIC;
./src/libbu/hist.c
Best,
-Tom
|