Commit 8a7037e6 authored by sumpfralle's avatar sumpfralle

fixed projection (was done multiple times before)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1065 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 5c7af0cf
...@@ -71,6 +71,7 @@ class ModelProjection(pycam.Plugins.PluginBase): ...@@ -71,6 +71,7 @@ class ModelProjection(pycam.Plugins.PluginBase):
("ProjectionModelBottom", model.minz), ("ProjectionModelBottom", model.minz),
("ProjectionModelCustom", ("ProjectionModelCustom",
self.gui.get_object("ProjectionZLevel").get_value())): self.gui.get_object("ProjectionZLevel").get_value())):
if self.gui.get_object(objname).get_active():
plane = Plane(Point(0, 0, z_level), Vector(0, 0, 1)) plane = Plane(Point(0, 0, z_level), Vector(0, 0, 1))
log.info("Projecting 3D model at level z=%g" % plane.p.z) log.info("Projecting 3D model at level z=%g" % plane.p.z)
projection = model.get_waterline_contour(plane) projection = model.get_waterline_contour(plane)
...@@ -79,4 +80,5 @@ class ModelProjection(pycam.Plugins.PluginBase): ...@@ -79,4 +80,5 @@ class ModelProjection(pycam.Plugins.PluginBase):
else: else:
log.warn("The 2D projection at z=%g is empty. Aborted." % \ log.warn("The 2D projection at z=%g is empty. Aborted." % \
plane.p.z) plane.p.z)
break
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment