QtSculptor  v1.0.0
Voxel Struct Reference

Struct Voxel (volume element) used to store properties of the elements that will constitute the created sculpture by the sculptor class. It is defined as a struct and contains the necessary properties and information for construction and use of voxels: their color and transparency and whether or not they should be included in the digital model which represents the sculpture generated in the Sculptor class. More...

#include <Voxel.h>

Public Attributes

float r
 
float g
 
float b
 
float a
 
bool isOn = false
 

Detailed Description

Struct Voxel (volume element) used to store properties of the elements that will constitute the created sculpture by the sculptor class. It is defined as a struct and contains the necessary properties and information for construction and use of voxels: their color and transparency and whether or not they should be included in the digital model which represents the sculpture generated in the Sculptor class.

Member Data Documentation

◆ a

float Voxel::a

Color component A (Alpha - Transparency) in RGBA format in a floating point range from 0.0 to 1.0;

◆ b

float Voxel::b

Color component B (Blue) in RGBA format in a floating point range from 0.0 to 1.0;

◆ g

float Voxel::g

Color component G (Green) in RGBA format in a floating point range from 0.0 to 1.0;

◆ isOn

bool Voxel::isOn = false

Boolean information that will inform whoever accesses the element whether or not it should be included in the digital model of the sculpture. Default: False.

◆ r

float Voxel::r

R (Red) color component in RGBA format in a floating point range from 0.0 to 1.0;


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