importCSG Namespace Reference

Functions

def addString (t, s, p)
 
def addValue (t, v, p)
 
def center (obj, x, y, z)
 
def CGALFeatureObj (name, children, arguments=[])
 
def convert_points_list_to_vector (l)
 
def fuse (lst, name)
 
def insert (filename, docname)
 
def make_face (v1, v2, v3)
 
def myPolygon (n, r1)
 
def open (filename)
 
def p_2d_point (p)
 
def p_3d_point (p)
 
def p_anymodifier (p)
 
def p_block_list_ (p)
 
def p_boolean (p)
 
def p_circle_action (p)
 
def p_color_action (p)
 
def p_cube_action (p)
 
def p_cylinder_action (p)
 
def p_difference_action (p)
 
def p_error (p)
 
def p_group_action1 (p)
 
def p_group_action2 (p)
 
def p_hull_action (p)
 
def p_import_file1 (p)
 
def p_intersection_action (p)
 
def p_keywordargument (p)
 
def p_keywordargument_list (p)
 
def p_linear_extrude_with_twist (p)
 
def p_matrix (p)
 
def p_minkowski_action (p)
 
def p_multmatrix_action (p)
 
def p_not_supported (p)
 
def p_offset_action (p)
 
def p_operation (p)
 
def p_part (p)
 
def p_path_list (p)
 
def p_path_points (p)
 
def p_path_set (p)
 
def p_points_list_2d (p)
 
def p_points_list_3d (p)
 
def p_polygon_action_nopath (p)
 
def p_polygon_action_plus_path (p)
 
def p_polyhedron_action (p)
 
def p_projection_action (p)
 
def p_render_action (p)
 
def p_resize_action (p)
 
def p_rotate_extrude_action (p)
 
def p_rotate_extrude_file (p)
 
def p_size_vector (p)
 
def p_sphere_action (p)
 
def p_square_action (p)
 
def p_statement (p)
 
def p_statementwithmod (p)
 
def p_stripped_string (p)
 
def p_surface_action (p)
 
def p_text_action (p)
 
def p_union_action (p)
 
def p_vector (p)
 
def placeholder (name, children, arguments)
 
def process_import_file (fname, ext, layer)
 
def process_linear_extrude (obj, h)
 
def process_linear_extrude_with_twist (base, height, twist)
 
def process_mesh_file (fname, ext)
 
def process_rotate_extrude (obj)
 
def processcsg (filename)
 
def processDXF (fname, layer)
 
def processSTL (fname)
 
def processTextCmd (t)
 
def translate (context, text)
 

Variables

bool gui = True
 
 params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD")
 
bool printverbose = False
 

Function Documentation

◆ addString()

def importCSG.addString (   t,
  s,
  p 
)

Referenced by p_text_action().

◆ addValue()

def importCSG.addValue (   t,
  v,
  p 
)

Referenced by p_text_action().

◆ center()

def importCSG.center (   obj,
  x,
  y,
  z 
)

◆ CGALFeatureObj()

def importCSG.CGALFeatureObj (   name,
  children,
  arguments = [] 
)

◆ convert_points_list_to_vector()

def importCSG.convert_points_list_to_vector (   l)

◆ fuse()

def importCSG.fuse (   lst,
  name 
)

References placeholder().

◆ insert()

def importCSG.insert (   filename,
  docname 
)

◆ make_face()

def importCSG.make_face (   v1,
  v2,
  v3 
)

◆ myPolygon()

def importCSG.myPolygon (   n,
  r1 
)

Referenced by p_cylinder_action().

◆ open()

def importCSG.open (   filename)

References processcsg().

◆ p_2d_point()

def importCSG.p_2d_point (   p)

◆ p_3d_point()

def importCSG.p_3d_point (   p)

◆ p_anymodifier()

def importCSG.p_anymodifier (   p)
anymodifier : MODIFIERBACK
               | MODIFIERDEBUG
               | MODIFIERROOT
               | MODIFIERDISABLE

◆ p_block_list_()

def importCSG.p_block_list_ (   p)
block_list : statement
           | block_list statement
           | statementwithmod
           | block_list statementwithmod

◆ p_boolean()

def importCSG.p_boolean (   p)
boolean : true
        | false

◆ p_circle_action()

def importCSG.p_circle_action (   p)

◆ p_color_action()

def importCSG.p_color_action (   p)

◆ p_cube_action()

def importCSG.p_cube_action (   p)

References center().

◆ p_cylinder_action()

def importCSG.p_cylinder_action (   p)

References center(), and myPolygon().

◆ p_difference_action()

def importCSG.p_difference_action (   p)

References placeholder().

◆ p_error()

def importCSG.p_error (   p)

◆ p_group_action1()

def importCSG.p_group_action1 (   p)

◆ p_group_action2()

def importCSG.p_group_action2 (   p)

◆ p_hull_action()

def importCSG.p_hull_action (   p)

References CGALFeatureObj().

◆ p_import_file1()

def importCSG.p_import_file1 (   p)

References process_import_file().

◆ p_intersection_action()

def importCSG.p_intersection_action (   p)

References placeholder().

◆ p_keywordargument()

def importCSG.p_keywordargument (   p)
keywordargument : ID EQ boolean
| ID EQ NUMBER
| ID EQ size_vector
| ID EQ vector
| ID EQ 2d_point
| text EQ stripped_string
| ID EQ stripped_string

◆ p_keywordargument_list()

def importCSG.p_keywordargument_list (   p)
keywordargument_list : keywordargument
           | keywordargument_list COMMA keywordargument

◆ p_linear_extrude_with_twist()

def importCSG.p_linear_extrude_with_twist (   p)

◆ p_matrix()

def importCSG.p_matrix (   p)

◆ p_minkowski_action()

def importCSG.p_minkowski_action (   p)
minkowski_action : minkowski LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE

References CGALFeatureObj().

◆ p_multmatrix_action()

def importCSG.p_multmatrix_action (   p)

References placeholder().

◆ p_not_supported()

def importCSG.p_not_supported (   p)
not_supported : glide LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE
              | subdiv LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE

References placeholder().

◆ p_offset_action()

def importCSG.p_offset_action (   p)

References placeholder().

◆ p_operation()

def importCSG.p_operation (   p)
operation : difference_action
          | intersection_action
          | union_action
          | rotate_extrude_action
          | linear_extrude_with_twist
          | rotate_extrude_file
          | import_file1
          | resize_action
          | surface_action
          | projection_action
          | hull_action
          | minkowski_action
          | offset_action

◆ p_part()

def importCSG.p_part (   p)
part : sphere_action
     | cylinder_action
     | cube_action
     | circle_action
     | square_action
     | text_action
     | polygon_action_nopath
     | polygon_action_plus_path
     | polyhedron_action

◆ p_path_list()

def importCSG.p_path_list (   p)

◆ p_path_points()

def importCSG.p_path_points (   p)
path_points : NUMBER COMMA
            | path_points NUMBER COMMA
            | path_points NUMBER

◆ p_path_set()

def importCSG.p_path_set (   p)
path_set : path_list
         | path_set COMMA path_list

◆ p_points_list_2d()

def importCSG.p_points_list_2d (   p)
points_list_2d : 2d_point COMMA
               | points_list_2d 2d_point COMMA
               | points_list_2d 2d_point

◆ p_points_list_3d()

def importCSG.p_points_list_3d (   p)
points_list_3d : 3d_point COMMA
           | points_list_3d 3d_point COMMA
           | points_list_3d 3d_point

◆ p_polygon_action_nopath()

def importCSG.p_polygon_action_nopath (   p)

◆ p_polygon_action_plus_path()

def importCSG.p_polygon_action_plus_path (   p)

◆ p_polyhedron_action()

def importCSG.p_polyhedron_action (   p)
polyhedron_action : polyhedron LPAREN points EQ OSQUARE points_list_3d ESQUARE COMMA faces EQ OSQUARE path_set ESQUARE COMMA keywordargument_list RPAREN SEMICOL
                  | polyhedron LPAREN points EQ OSQUARE points_list_3d ESQUARE COMMA triangles EQ OSQUARE points_list_3d ESQUARE COMMA keywordargument_list RPAREN SEMICOL

◆ p_projection_action()

def importCSG.p_projection_action (   p)

References placeholder().

◆ p_render_action()

def importCSG.p_render_action (   p)

◆ p_resize_action()

def importCSG.p_resize_action (   p)
resize_action : resize LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE 

◆ p_rotate_extrude_action()

def importCSG.p_rotate_extrude_action (   p)

◆ p_rotate_extrude_file()

def importCSG.p_rotate_extrude_file (   p)

◆ p_size_vector()

def importCSG.p_size_vector (   p)

◆ p_sphere_action()

def importCSG.p_sphere_action (   p)

◆ p_square_action()

def importCSG.p_square_action (   p)

References center().

◆ p_statement()

def importCSG.p_statement (   p)
statement : part
             | operation
             | multmatrix_action
             | group_action1
             | group_action2
             | color_action
             | render_action
             | not_supported

◆ p_statementwithmod()

def importCSG.p_statementwithmod (   p)
statementwithmod : anymodifier statement

◆ p_stripped_string()

def importCSG.p_stripped_string (   p)

◆ p_surface_action()

def importCSG.p_surface_action (   p)

References center().

◆ p_text_action()

def importCSG.p_text_action (   p)

◆ p_union_action()

def importCSG.p_union_action (   p)

◆ p_vector()

def importCSG.p_vector (   p)

◆ placeholder()

def importCSG.placeholder (   name,
  children,
  arguments 
)

◆ process_import_file()

def importCSG.process_import_file (   fname,
  ext,
  layer 
)

◆ process_linear_extrude()

def importCSG.process_linear_extrude (   obj,
  h 
)

◆ process_linear_extrude_with_twist()

def importCSG.process_linear_extrude_with_twist (   base,
  height,
  twist 
)

◆ process_mesh_file()

def importCSG.process_mesh_file (   fname,
  ext 
)

Referenced by process_import_file().

◆ process_rotate_extrude()

def importCSG.process_rotate_extrude (   obj)

◆ processcsg()

def importCSG.processcsg (   filename)

Referenced by insert(), and open().

◆ processDXF()

def importCSG.processDXF (   fname,
  layer 
)

Referenced by process_import_file().

◆ processSTL()

def importCSG.processSTL (   fname)

◆ processTextCmd()

def importCSG.processTextCmd (   t)

Referenced by p_text_action().

◆ translate()

def importCSG.translate (   context,
  text 
)

Variable Documentation

◆ gui

bool importCSG.gui = True

◆ params

importCSG.params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD")

◆ printverbose

bool importCSG.printverbose = False