Geogram Version 1.9.7
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEOCSG::Value Struct Reference

A parsed value in a .csg file. More...

#include <geogram/mesh/mesh_CSG_utils.h>

Public Types

enum  Type {
  NONE , NUMBER , BOOLEAN , ARRAY1D ,
  ARRAY2D , STRING , PATH
}
 

Public Member Functions

 Value (double x)
 
 Value (int x)
 
 Value (bool x)
 
 Value (const std::string &x)
 
 Value (const std::filesystem::path &x)
 
std::string to_string () const
 

Public Attributes

Type type
 
bool boolean_val
 
double number_val
 
vector< vector< double > > array_val
 
std::string string_val
 

Detailed Description

A parsed value in a .csg file.

Can be a number, a boolean, a 1d array or a 2d array

Definition at line 61 of file mesh_CSG_utils.h.

Member Enumeration Documentation

◆ Type

enum GEOCSG::Value::Type

Definition at line 62 of file mesh_CSG_utils.h.

Member Data Documentation

◆ array_val

vector<vector<double> > GEOCSG::Value::array_val

Definition at line 75 of file mesh_CSG_utils.h.

◆ boolean_val

bool GEOCSG::Value::boolean_val

Definition at line 73 of file mesh_CSG_utils.h.

◆ number_val

double GEOCSG::Value::number_val

Definition at line 74 of file mesh_CSG_utils.h.

◆ string_val

std::string GEOCSG::Value::string_val

Definition at line 76 of file mesh_CSG_utils.h.

◆ type

Type GEOCSG::Value::type

Definition at line 72 of file mesh_CSG_utils.h.


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