iMSTK
Interactive Medical Simulation Toolkit
imstkImplicitGeometry.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkGeometry.h"
10 
11 namespace imstk
12 {
19 class ImplicitGeometry : public Geometry
20 {
21 public:
22  ~ImplicitGeometry() override = default;
23 
27  virtual double getFunctionValue(const Vec3d& pos) const = 0;
28 };
29 } // namespace imstk
Compound Geometry.
virtual double getFunctionValue(const Vec3d &pos) const =0
Returns function value given position.
Base class for any geometrical representation.
Definition: imstkGeometry.h:22
Class that can represent the geometry of multiple implicit geometries as boolean functions One may su...