UI code to generate a generic sphere.

This commit is contained in:
Joseph Lenox authored and bubnikv committed 2017-02-21 16:29:21 +01:00
1 parent c575a1f1d6
commit 2971235299
2 files changed
+33 -1

No files matched your search

@@ -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;
}