mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-03 20:46:37 +08:00
delete perl workaround (output given as pointer)
This commit is contained in:
parent
2aeacd3f59
commit
cc8cb4092d
@ -1331,10 +1331,7 @@ sub load_object {
|
|||||||
my $volume = $model_object->volumes->[$volume_idx];
|
my $volume = $model_object->volumes->[$volume_idx];
|
||||||
foreach my $instance_idx (@$instance_idxs) {
|
foreach my $instance_idx (@$instance_idxs) {
|
||||||
my $instance = $model_object->instances->[$instance_idx];
|
my $instance = $model_object->instances->[$instance_idx];
|
||||||
my $mesh = Slic3r::TriangleMesh->new();
|
my $mesh = $volume->get_transformed_mesh($instance);
|
||||||
|
|
||||||
# $mesh is the output argument, given as pointer
|
|
||||||
$volume->transformed_mesh($instance, $mesh);
|
|
||||||
|
|
||||||
my $color_idx;
|
my $color_idx;
|
||||||
if ($self->color_by eq 'volume') {
|
if ($self->color_by eq 'volume') {
|
||||||
|
@ -301,10 +301,10 @@ ModelMaterial::attributes()
|
|||||||
Ref<TriangleMesh> mesh()
|
Ref<TriangleMesh> mesh()
|
||||||
%code%{ RETVAL = &THIS->mesh; %};
|
%code%{ RETVAL = &THIS->mesh; %};
|
||||||
|
|
||||||
void transformed_mesh(ModelInstance * instance, TriangleMesh * mesh)
|
Clone<TriangleMesh> get_transformed_mesh(ModelInstance * instance)
|
||||||
%code%{
|
%code%{
|
||||||
TransformationMatrix trafo = instance->get_trafo_matrix(false);
|
TransformationMatrix trafo = instance->get_trafo_matrix(false);
|
||||||
*(mesh) = THIS->get_transformed_mesh(&trafo);
|
RETVAL = THIS->get_transformed_mesh(&trafo);
|
||||||
%};
|
%};
|
||||||
|
|
||||||
bool modifier()
|
bool modifier()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user