OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::TextureDisplacementLayer Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/TextureDisplacement.hpp>

Collaboration diagram for Slic3r::TextureDisplacementLayer:

Public Member Functions

bool empty () const
template<class Archive>
void save (Archive &ar) const
template<class Archive>
void load (Archive &ar)

Public Attributes

int slot = -1
std::string name
std::string path
std::string path_in_3mf
std::shared_ptr< std::vector< unsigned char > > image_data
float depth_mm = 0.4f
float tiling_scale = 12.5f
float rotation_deg = 0.f
Vec2f offset = Vec2f::Zero()
bool invert = false
float midlevel = 0.f
float smoothing = 0.f
bool edge_smoothing = false
float edge_smoothing_amount = 0.5f
bool auto_connect_islands = true
bool tile_enabled = true
TextureTileMethod tile_method = TextureTileMethod::Repeat
TextureProjectionMethod projection_method = TextureProjectionMethod::Triplanar
float lscm_seam_angle_deg = LSCM_DEFAULT_SEAM_ANGLE_DEG
float island_padding_mm = -1.f
std::vector< std::pair< int, int > > lscm_seam_edges
Vec3f view_project_right = Vec3f::UnitX()
Vec3f view_project_up = Vec3f::UnitY()
bool view_project_projective = false
std::array< float, 12 > view_project_matrix {}
std::vector< TextureIsland > islands
std::vector< int > island_groups
std::vector< std::pair< int, Vec2f > > lscm_uv_overrides
TextureAdjustments preview_adjust
TextureBlendMode blend_mode = TextureBlendMode::Add
bool color_enabled = false

Detailed Description

Member Function Documentation

◆ empty()

◆ load()

template<class Archive>
void Slic3r::TextureDisplacementLayer::load ( Archive & ar)
inline
368 {
369 std::string blob;
370 int tile_method_int = 0;
371 int projection_method_int = 0;
372 int blend_mode_int = 0;
374 tile_method_int, projection_method_int, lscm_seam_angle_deg, islands, blend_mode_int, midlevel,
378 image_data = blob.empty() ? nullptr : std::make_shared<std::vector<unsigned char>>(blob.begin(), blob.end());
379 tile_method = static_cast<TextureTileMethod>(tile_method_int);
380 projection_method = static_cast<TextureProjectionMethod>(projection_method_int);
381 blend_mode = static_cast<TextureBlendMode>(blend_mode_int);
382 }
TextureBlendMode
Definition TextureDisplacement.hpp:130
TextureTileMethod
Definition TextureDisplacement.hpp:49
TextureProjectionMethod
Definition TextureDisplacement.hpp:56
float depth_mm
Definition TextureDisplacement.hpp:227
int slot
Definition TextureDisplacement.hpp:214
std::string path
Definition TextureDisplacement.hpp:219
std::vector< int > island_groups
Definition TextureDisplacement.hpp:316
float edge_smoothing_amount
Definition TextureDisplacement.hpp:256
Vec3f view_project_up
Definition TextureDisplacement.hpp:286
std::vector< TextureIsland > islands
Definition TextureDisplacement.hpp:308
std::vector< std::pair< int, Vec2f > > lscm_uv_overrides
Definition TextureDisplacement.hpp:326
std::vector< std::pair< int, int > > lscm_seam_edges
Definition TextureDisplacement.hpp:280
Vec3f view_project_right
Definition TextureDisplacement.hpp:285
float lscm_seam_angle_deg
Definition TextureDisplacement.hpp:271
TextureProjectionMethod projection_method
Definition TextureDisplacement.hpp:269
TextureBlendMode blend_mode
Definition TextureDisplacement.hpp:343
float midlevel
Definition TextureDisplacement.hpp:242
bool color_enabled
Definition TextureDisplacement.hpp:354
float rotation_deg
Definition TextureDisplacement.hpp:229
TextureTileMethod tile_method
Definition TextureDisplacement.hpp:267
bool view_project_projective
Definition TextureDisplacement.hpp:303
float island_padding_mm
Definition TextureDisplacement.hpp:275
bool auto_connect_islands
Definition TextureDisplacement.hpp:262
bool edge_smoothing
Definition TextureDisplacement.hpp:255
bool tile_enabled
Definition TextureDisplacement.hpp:266
bool invert
Definition TextureDisplacement.hpp:231
float tiling_scale
Definition TextureDisplacement.hpp:228
std::string path_in_3mf
Definition TextureDisplacement.hpp:221
Vec2f offset
Definition TextureDisplacement.hpp:230
std::string name
Definition TextureDisplacement.hpp:216
std::array< float, 12 > view_project_matrix
Definition TextureDisplacement.hpp:304
float smoothing
Definition TextureDisplacement.hpp:248

References auto_connect_islands, blend_mode, color_enabled, depth_mm, edge_smoothing, edge_smoothing_amount, image_data, invert, island_groups, island_padding_mm, islands, lscm_seam_angle_deg, lscm_seam_edges, lscm_uv_overrides, midlevel, name, offset, path, path_in_3mf, projection_method, rotation_deg, slot, smoothing, tile_enabled, tile_method, tiling_scale, view_project_matrix, view_project_projective, view_project_right, and view_project_up.

◆ save()

Member Data Documentation

◆ auto_connect_islands

◆ blend_mode

TextureBlendMode Slic3r::TextureDisplacementLayer::blend_mode = TextureBlendMode::Add

◆ color_enabled

◆ depth_mm

◆ edge_smoothing

bool Slic3r::TextureDisplacementLayer::edge_smoothing = false

◆ edge_smoothing_amount

float Slic3r::TextureDisplacementLayer::edge_smoothing_amount = 0.5f

◆ image_data

◆ invert

◆ island_groups

◆ island_padding_mm

◆ islands

◆ lscm_seam_angle_deg

◆ lscm_seam_edges

◆ lscm_uv_overrides

◆ midlevel

◆ name

◆ offset

◆ path

◆ path_in_3mf

std::string Slic3r::TextureDisplacementLayer::path_in_3mf

◆ preview_adjust

◆ projection_method

◆ rotation_deg

◆ slot

◆ smoothing

◆ tile_enabled

◆ tile_method

◆ tiling_scale

◆ view_project_matrix

◆ view_project_projective

◆ view_project_right

◆ view_project_up


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