def add_parabola(self, evt): line_name = self.lines.GetValue() directrix = None focus = self._get_point(self.points) directrix = self._get_line(self.lines) if focus and directrix: pl = PointLine(focus, directrix) name = self.name.GetValue() conic = pl.parabola(), name, "x", self.colours.GetValue() self.parent.object_panel.add_conic(conic)
def add_parabola(self, evt): line_name = self.lines.GetValue() directrix = None focus = self._get_point(self.points) directrix = self._get_line(self.lines) if focus and directrix: pl = PointLine(focus, directrix) name = self.name.GetValue() conic = pl.parabola(), name, "x", self.colours.GetValue() self.parent.object_panel.add_conic(conic)