NDEVR
API Documentation
GeometryBooleanParameters

Stores a groups of options for performing GeometryBoolean operations. More...

Inheritance diagram for GeometryBooleanParameters:
[legend]
Collaboration diagram for GeometryBooleanParameters:
[legend]

Public Member Functions

 GeometryBooleanParameters ()
 Constructs default GeometryBooleanParameters with empty buffers and null lock.
Public Member Functions inherited from GenericOptionGroup
 GenericOptionGroup ()=default
 Default constructor.
 GenericOptionGroup (const TranslatedString &group_name, const StringView &group_id=StringView())
 Constructs an option group with the given name and optional identifier.
virtual ~GenericOptionGroup ()
 Virtual destructor.
void addOption (const GenericOption &option)
 Adds a fully configured GenericOption to this group.
template<class t_type>
void addOption (const TranslatedString &name, const t_type &value, bool is_editable=true)
 Adds a new option to this group with the given name and typed value.
void addOptionsToINI (INIFactory &factory)
 Adds all options in this group to an existing INIFactory for serialization.
void clear ()
 Removes all options from this group.
virtual void fromJSONNode (const JSONNode &node)
 Deserializes this option group from a JSON node.
GenericOptiongetOption (const TranslatedString &n)
 Retrieves a mutable reference to the option with the given translated name.
const GenericOptiongetOption (const TranslatedString &n) const
 Retrieves a const reference to the option with the given translated name.
template<class t_type>
t_type getValue (const StringView &name) const
 Retrieves the value of an option converted to the requested type, looked up by string identifier.
template<class t_type>
t_type getValue (const StringView &name, const t_type &value_if_not_exist) const
 Retrieves the value of an option by string identifier, returning a fallback if the option does not exist.
template<class t_type>
t_type getValue (const TranslatedString &name) const
 Retrieves the value of an option converted to the requested type, looked up by translated name.
template<class t_type>
t_type getValue (const TranslatedString &name, const t_type &value_if_not_exist) const
 Retrieves the value of an option by translated name, returning a fallback if the option does not exist.
bool hasOption (const StringView &option_name) const
 Checks whether an option with the given string identifier exists in this group.
bool hasOption (const TranslatedString &option_name) const
 Checks whether an option with the given translated name exists in this group.
INIFactory ini ()
 Creates an INIFactory for serializing this option group to INI format.
bool operator!= (const GenericOptionGroup &option_group) const
 Checks inequality between two option groups.
bool operator== (const GenericOptionGroup &option_group) const
 Checks equality between two option groups by comparing all option values.
void setOption (const GenericOption &option)
 Replaces an existing option with the given GenericOption, matched by its identifier.
template<class t_type>
void setValue (const StringView &name, const t_type &value)
 Sets the value of an existing option identified by its string name.
template<class t_type>
void setValue (const TranslatedString &name, const t_type &value)
 Sets the value of an existing option identified by its translated name.
virtual JSONNode toJSONNode (bool only_value=true) const
 Serializes this option group to a JSON node.
Public Member Functions inherited from GeometryVertices
 ~GeometryVertices ()
 Destructor.
void clearTree ()
 Clears and deletes the spatial index tree, sorted positions, and marks the tree as invalid.
void ensureTreeValid (LogPtr log)
 Rebuilds the spatial index tree from the current positions if it is not already valid.

Public Attributes

const void * lock = nullptr
 Optional mutex or lock pointer used to synchronize access during the boolean operation.
LogPtr log
 Logger for reporting progress and errors during the boolean operation.
Buffer< RGBColorsurface_colors
 Buffer of per-vertex colors for the resulting surface.
Buffer< Ray< 3, fltp04 > > surface_normals
 Buffer of 3D surface normals for the resulting surface.
Buffer< Buffer< uint04 > > surface_polygons
 Buffer of polygon index lists for non-triangulated surface faces.
Buffer< Vertex< 3, fltp04 > > surface_positions
 Buffer of 3D vertex positions for the resulting surface.
Buffer< Vector< 3, uint04 > > surface_triangles
 Buffer of triangle index triplets defining the resulting surface mesh.
Public Attributes inherited from GenericOptionGroup
String id
 The unique identifier for this option group.
TranslatedString name
 The user-facing display name of this option group.
Dictionary< String, GenericOptionoptions
 The dictionary mapping option identifiers to their GenericOption instances.
Buffer< Stringordered_options
 The insertion-ordered list of option identifiers for preserving display order.
Public Attributes inherited from GeometryVertices
Bounds< 3, fltp04bounds = Constant<Bounds<3, fltp04>>::Min
 The axis-aligned bounding box enclosing all positions.
Buffer< RGBColorcolors
 Per-vertex RGB colors.
bool is_tree_valid = false
 Whether the spatial index tree is currently up-to-date with the positions.
Buffer< Ray< 3, fltp04 > > normals
 Per-vertex normals stored as 3D rays.
Vertex< 3, fltp08offset = Constant<Vertex<3, fltp08>>::Invalid
 A world-space offset applied to positions for double-precision accuracy.
Buffer< Vertex< 3, fltp04 > > positions
 The 3D vertex positions.
Buffer< fltp08times
 Per-vertex timestamps (e.g., acquisition time).
RTree< 3, fltp04 > * tree = nullptr
 Spatial index tree for accelerated spatial queries. Owned by this struct.
Buffer< Vertex< 3, fltp04 > > tree_sorted_positions
 Positions reordered to match the spatial index tree's internal ordering.

Detailed Description

Stores a groups of options for performing GeometryBoolean operations.


Definition at line 36 of file GeometryBoolean.h.

Constructor & Destructor Documentation

◆ GeometryBooleanParameters()

GeometryBooleanParameters::GeometryBooleanParameters ( )

Constructs default GeometryBooleanParameters with empty buffers and null lock.



The documentation for this struct was generated from the following file: