mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-29 12:58:03 +00:00
Support larger printer sizes by using 64-bit.
SuperSlicer is referenced for some changes. Co-authored-by: Merill <merill@free.fr>
This commit is contained in:
@@ -976,7 +976,7 @@ bool CalibUtils::process_and_store_3mf(Model *model, const DynamicPrintConfig &f
|
||||
double print_height = full_config.opt_float("printable_height");
|
||||
double current_width = bedfs[2].x() - bedfs[0].x();
|
||||
double current_depth = bedfs[2].y() - bedfs[0].y();
|
||||
Vec3i plate_size;
|
||||
Vec3i32 plate_size;
|
||||
plate_size[0] = bedfs[2].x() - bedfs[0].x();
|
||||
plate_size[1] = bedfs[2].y() - bedfs[0].y();
|
||||
plate_size[2] = print_height;
|
||||
|
||||
@@ -351,7 +351,7 @@ void StyleManager::init_trunc_names(float max_width) {
|
||||
#include "slic3r/GUI/MainFrame.hpp"
|
||||
#include "slic3r/GUI/Gizmos/GizmoObjectManipulation.hpp"
|
||||
|
||||
void StyleManager::init_style_images(const Vec2i &max_size,
|
||||
void StyleManager::init_style_images(const Vec2i32 &max_size,
|
||||
const std::string &text)
|
||||
{
|
||||
// check already initialized
|
||||
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
/// </summary>
|
||||
/// <param name="max_size">Maximal width and height of one style texture</param>
|
||||
/// <param name="text">Text to render by style</param>
|
||||
void init_style_images(const Vec2i& max_size, const std::string &text);
|
||||
void init_style_images(const Vec2i32& max_size, const std::string &text);
|
||||
void free_style_images();
|
||||
|
||||
// access to all managed font styles
|
||||
@@ -295,7 +295,7 @@ private:
|
||||
// Keep styles to render
|
||||
Items styles;
|
||||
// Maximal width and height in pixels of image
|
||||
Vec2i max_size;
|
||||
Vec2i32 max_size;
|
||||
// Text to render
|
||||
std::string text;
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ std::optional<RaycastManager::Hit> RaycastManager::first_hit(const Vec3d& point,
|
||||
|
||||
// Calculate normal from transformed triangle
|
||||
// NOTE: Anisotropic transformation of normal is not perpendiculat to triangle
|
||||
const Vec3i tri = hit_mesh->indices(hit_face);
|
||||
const Vec3i32 tri = hit_mesh->indices(hit_face);
|
||||
std::array<Vec3d,3> pts;
|
||||
auto tr = hit_tramsformation->linear();
|
||||
for (int i = 0; i < 3; ++i)
|
||||
|
||||
Reference in New Issue
Block a user