|
From: <kin...@us...> - 2023-07-22 04:12:34
|
Revision: 7137
http://sourceforge.net/p/teem/code/7137
Author: kindlmann
Date: 2023-07-22 04:00:04 +0000 (Sat, 22 Jul 2023)
Log Message:
-----------
API CHANGE: (oops didn't commit all files last time) adding another field to seekContext, to record the average (world-space) gradient magnitude, over the vertices in an isosurface (when there isn't a gageContext), with the hope that it is useful for some signed distance field computations. Also noting that Thomas Schultz commited some work to this file (other files in seek have a similar copyright attribution)
Modified Paths:
--------------
teem/trunk/src/seek/methodsSeek.c
teem/trunk/src/seek/seek.h
Modified: teem/trunk/src/seek/methodsSeek.c
===================================================================
--- teem/trunk/src/seek/methodsSeek.c 2023-07-22 03:55:59 UTC (rev 7136)
+++ teem/trunk/src/seek/methodsSeek.c 2023-07-22 04:00:04 UTC (rev 7137)
@@ -122,6 +122,7 @@
sctx->faceNum = 0;
sctx->strengthSeenMax = AIR_NAN;
sctx->time = AIR_NAN;
+ sctx->gradMagAvg = AIR_NAN;
}
return sctx;
}
Modified: teem/trunk/src/seek/seek.h
===================================================================
--- teem/trunk/src/seek/seek.h 2023-07-22 03:55:59 UTC (rev 7136)
+++ teem/trunk/src/seek/seek.h 2023-07-22 04:00:04 UTC (rev 7137)
@@ -184,6 +184,10 @@
double strengthSeenMax; /* in case strength was used, the maximum
vertex strength seen (from probing slabs) */
double time; /* time for extraction */
+ double gradMagAvg; /* in case per-vertex gradients were computed (such as:
+ isocontouring without a gageContext), then the average gradient
+ magnitude over all the verts (useful for some computations
+ involving signed distance functions) */
} seekContext;
/* enumsSeek.c */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|