HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_GeometryToSDF.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_GeometryToSDF.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_GeometryToSDF__
12 #define __GAS_GeometryToSDF__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
19 class SIM_RawField;
20 
22 {
23 public:
24  GET_DATA_FUNC_S(GAS_NAME_SURFACE, SurfaceName);
25  GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
26 
34  GETSET_DATA_FUNCS_I("numneighbour", NumNeighbour);
35  GETSET_DATA_FUNCS_I("sweepcount", SweepCount);
36  GETSET_DATA_FUNCS_F("sweepalpha", SweepThreshold);
37 
38 protected:
39  explicit GAS_GeometryToSDF(const SIM_DataFactory *factory);
40  ~GAS_GeometryToSDF() override;
41 
42  /// Constructs a signed distance field by skinning the set
43  /// of particles.
44  bool solveGasSubclass(SIM_Engine &engine,
45  SIM_Object *obj,
46  SIM_Time time,
47  SIM_Time timestep) override;
48 
49  void geometryToSDF(SIM_Object *obj,
50  SIM_RawField *destfield,
51  const GU_Detail *geo,
52  const UT_DMatrix4 &xform);
53 
54 private:
55  static const SIM_DopDescription *getDopDescription();
56 
60  "Gas Geometry To SDF",
61  getDopDescription());
62 };
63 
64 #endif
65 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
#define SIM_NAME_TOLERANCE
Definition: SIM_Names.h:202
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:30
#define SIM_NAME_MODE
Definition: SIM_Names.h:151
#define GETSET_DATA_FUNCS_B(DataName, FuncName)
GT_API const UT_StringHolder time
#define GAS_API
Definition: GAS_API.h:10
#define SIM_NAME_LASERSCAN
Definition: SIM_Names.h:140
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define GETSET_DATA_FUNCS_F(DataName, FuncName)
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
#define SIM_NAME_INVERT
Definition: SIM_Names.h:139
#define GETSET_DATA_FUNCS_I(DataName, FuncName)
#define SIM_NAME_FORCEBOUNDS
Definition: SIM_Names.h:121
#define SIM_NAME_FIXSIGNS
Definition: SIM_Names.h:117
#define SIM_NAME_OFFSET
Definition: SIM_Names.h:157
#define GAS_NAME_SURFACE
Definition: GAS_Utils.h:38
#define GET_DATA_FUNC_S(DataName, FuncName)