Lines Matching defs:orientation

35 12 Jun ver 208 Now scales correctly if orientation points moved or stretched.
2234 # Now join all together and check closure and orientation of result
3311 self.orientation()
3625 self.OptionParser.add_option("", "--orientation-points-count", action="store", type="string", dest="orientation_points_count", default="2", help="Orientation points count")
4040 self.error(_("Orientation points for '%s' layer have not been found! Please add orientation points using Orientation tab!") % layer.get(inkex.addNS('label','inkscape')),"no_orientation_points")
4047 self.error(_("There are more than one orientation point groups in '%s' layer") % orientation_layer.get(inkex.addNS('label','inkscape')),"more_than_one_orientation_point_groups")
4078 self.error(_("Orientation points are wrong! (if there are two orientation points they should not be the same. If there are three orientation points they should not be in a straight line.)"),"wrong_orientation_points")
4080 self.error(_("Orientation points are wrong! (if there are two orientation points they should not be the same. If there are three orientation points they should not be in a straight line.)"),"wrong_orientation_points")
4090 print_("Z automatic scale = %s (computed according orientation points)" % self.Zauto_scale[layer])
4244 elif i.get('gcodetools') == "Gcodetools orientation group" :
4248 print_("Found orientation points in '%s' layer: %s" % (layer.get(inkex.addNS('label','inkscape')), points))
4250 self.error(_("Warning! Found bad orientation points in '%s' layer. Resulting Gcode could be corrupt!") % layer.get(inkex.addNS('label','inkscape')), "bad_orientation_points_in_some_layers")
4317 if i.tag == inkex.addNS("g",'svg') and i.get("gcodetools") == "Gcodetools orientation point (2 points)":
4319 if i.tag == inkex.addNS("g",'svg') and i.get("gcodetools") == "Gcodetools orientation point (3 points)":
4328 if node.get('gcodetools') == "Gcodetools orientation point arrow":
4330 if node.get('gcodetools') == "Gcodetools orientation point text":
4539 # transform simple path to get all var about orientation
5812 def orientation(self, layer=None) :
5845 print_("Inserting orientation points")
5848 self.error(_("Active layer already has orientation points! Remove them or select another layer!"),"active_layer_already_has_orientation_points")
5850 attr = {"gcodetools":"Gcodetools orientation group"}
5869 print_(("using orientation scale",orientation_scale,"i=",points))
5872 g = inkex.etree.SubElement(orientation_group, inkex.addNS('g','svg'), {'gcodetools': "Gcodetools orientation point (%s points)" % self.options.orientation_points_count})
5877 'gcodetools': "Gcodetools orientation point arrow"
5880 draw_text("(%s; %s; %s)" % (i[0],i[1],i[2]), (si[0]+10), (-si[1]-10+doc_height), group = g, gcodetools_tag = "Gcodetools orientation point text")
6244 orientation = subpath[-1][1][0]>subpath[0][1][0]
6266 if not orientation: o = 1-o
6288 # o = (1 if cross(n, [0,1])>0 else -1)*orientation
6291 # o = (1 if cross(n, [0,1])>0 else -1)*orientation
6661 elif self.options.active_tab not in ['"dxfpoints"','"path-to-gcode"', '"area_fill"', '"area"', '"area_artefacts"', '"engraving"', '"orientation"', '"tools_library"', '"lathe"', '"offset"', '"arrangement"', '"update"', '"graffiti"', '"lathe_modify_path"', '"plasma-prepare-path"']:
6668 self.error(_("Orientation points have not been defined! A default set of orientation points has been automatically added."),"warning")
6669 self.orientation( self.layers[min(1,len(self.layers)-1)] )
6688 elif self.options.active_tab == '"orientation"':
6689 self.orientation()