UI code to generate a generic sphere.

This commit is contained in:
Joseph Lenox 2016-12-05 22:44:17 +00:00 committed by bubnikv
parent c575a1f1d6
commit 2971235299
2 changed files with 33 additions and 1 deletions

View file

@ -350,6 +350,8 @@ sub on_btn_lambda {
$mesh = Slic3r::TriangleMesh::cube($params->{"dim"}[0], $params->{"dim"}[1], $params->{"dim"}[2]);
} elsif ($type eq "cylinder") {
$mesh = Slic3r::TriangleMesh::cylinder($params->{"cyl_r"}, $params->{"cyl_h"});
} elsif ($type eq "sphere") {
$mesh = Slic3r::TriangleMesh::sphere($params->{"cyl_rho"});
} else {
return;
}