Commit 42a5f304 authored by sumpfralle's avatar sumpfralle

fixed accidental dependency of gtk


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@880 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f7f9d6c6
......@@ -25,7 +25,8 @@ from pycam.Geometry import TransformableContainer
from pycam.Geometry.Point import Point
from pycam.Geometry.Plane import Plane
from pycam.Geometry.utils import epsilon, sqrt
import pycam.Gui.OpenGLTools
# OpenGLTools will be imported later, if necessary
#import pycam.Gui.OpenGLTools
import math
......@@ -180,6 +181,9 @@ class Line(TransformableContainer):
GL.glEnd()
# (optional) draw a cone for visualizing the direction of each line
if show_directions and (self.len > 0):
# We can't import OpenGLTools in the header - otherwise server
# mode without GTK will break.
import pycam.Gui.OpenGLTools
pycam.Gui.OpenGLTools.draw_direction_cone(self.p1, self.p2)
def get_intersection(self, line, infinite_lines=False):
......
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