HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Trace.h
Go to the documentation of this file.
1 
2 #ifndef __GU_Trace_h__
3 #define __GU_Trace_h__
4 
5 #include "GU_API.h"
6 class IMG_Raster;
7 #include <UT/UT_VoxelArray.h>
8 
10 {
11 public:
12  const IMG_Raster *raster = nullptr; // image to be traced
13  const UT_VoxelArrayF *volume = nullptr; // 2d volume to be traced
14  int channel = 0; // rgba as 0123
15  float thresh = 128; // image cut-off value
16 
17  bool doResample = false; // resample points
18  float stepsize = 1; // used in resampling
19 
20  bool doSmooth = false; // smooth object
21  float cornerDelta = 1; // used in finding corners
22 
23  bool removeBorder = false; // del image boundaries edges
24  int borderWidth = 2; // how far border extends
25 
26  /// Use pixel (0,0) as a boundary value
27  /// NOTE: The true default is just for HDK backward compatibility.
28  /// You probably want to set this to false and set boundaryValue to 0 or 255.
29  bool firstPixelValueBoundary = true;
30  float boundaryValue = 0; // If !firstPixelValueBoundary, use this as a boundary value.
31 };
32 
33 #endif
34 
HUSD_API const char * raster()
#define GU_API
Definition: GU_API.h:14