libslic3r
Library for generating gcode from 3d models
Public Member Functions | Public Attributes | Friends | List of all members
Slic3r::ModelVolume Class Reference

#include <Model.hpp>

Public Member Functions

ModelObjectget_object () const
 
t_model_material_id material_id () const
 
void material_id (t_model_material_id material_id)
 
ModelMaterialmaterial () const
 
void set_material (t_model_material_id material_id, const ModelMaterial &material)
 
ModelMaterialassign_unique_material ()
 

Public Attributes

std::string name
 Name of this ModelVolume object. More...
 
TriangleMesh mesh
 The triangular model. More...
 
DynamicPrintConfig config
 
std::string input_file
 Input file path needed for reloading the volume from disk. More...
 
int input_file_obj_idx
 Input file object index. More...
 
int input_file_vol_idx
 Input file volume index. More...
 
bool modifier
 Is it an object to be printed, or a modifier volume? More...
 

Friends

class ModelObject
 

Detailed Description

An object STL, or a modifier volume, over which a different set of parameters shall be applied. ModelVolume instances are owned by a ModelObject.

Member Function Documentation

◆ assign_unique_material()

ModelMaterial * Slic3r::ModelVolume::assign_unique_material ( )

Add a unique ModelMaterial to the current ModelVolume

Returns
ModelMaterial* pointer to the new ModelMaterial

◆ get_object()

ModelObject* Slic3r::ModelVolume::get_object ( ) const
inline

Get the parent object owning this modifier volume.

Returns
ModelObject* pointer to the owner ModelObject

◆ material()

ModelMaterial * Slic3r::ModelVolume::material ( ) const

Get the current ModelMaterial in this ModelVolume object

Returns
ModelMaterial* a pointer to the ModelMaterial

◆ material_id() [1/2]

t_model_material_id Slic3r::ModelVolume::material_id ( ) const

Get the material id of this ModelVolume object

Returns
t_model_material_id the material id string

◆ material_id() [2/2]

void Slic3r::ModelVolume::material_id ( t_model_material_id  material_id)

Set the material id to this ModelVolume object

Parameters
material_idt_model_material_id the id of the material

◆ set_material()

void Slic3r::ModelVolume::set_material ( t_model_material_id  material_id,
const ModelMaterial material 
)

Add a new ModelMaterial to this ModelVolume

Parameters
material_idt_model_material_id the id of the material to be added
materialModelMaterial the material to be coppied

Friends And Related Function Documentation

◆ ModelObject

friend class ModelObject
friend

Member Data Documentation

◆ config

DynamicPrintConfig Slic3r::ModelVolume::config

Configuration parameters specific to an object model geometry or a modifier volume, overriding the global Slic3r settings and the ModelObject settings.

◆ input_file

std::string Slic3r::ModelVolume::input_file

Input file path needed for reloading the volume from disk.

Input file path

◆ input_file_obj_idx

int Slic3r::ModelVolume::input_file_obj_idx

Input file object index.

◆ input_file_vol_idx

int Slic3r::ModelVolume::input_file_vol_idx

Input file volume index.

◆ mesh

TriangleMesh Slic3r::ModelVolume::mesh

The triangular model.

◆ modifier

bool Slic3r::ModelVolume::modifier

Is it an object to be printed, or a modifier volume?

◆ name

std::string Slic3r::ModelVolume::name

Name of this ModelVolume object.


The documentation for this class was generated from the following files: