Variables | |
list | alreadyhidden = [] |
bool | gui = True |
list | hassetcolor = [] |
list | original_root_objects = [] |
params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD") | |
bool | printverbose = False |
def importCSG.addString | ( | t, | |
s, | |||
p | |||
) |
Referenced by p_text_action().
def importCSG.addValue | ( | t, | |
v, | |||
p | |||
) |
Referenced by p_text_action().
def importCSG.center | ( | obj, | |
x, | |||
y, | |||
z | |||
) |
Referenced by p_cube_action(), p_cylinder_action(), p_linear_extrude_with_transform(), p_square_action(), and p_surface_action().
def importCSG.CGALFeatureObj | ( | name, | |
children, | |||
arguments = [] |
|||
) |
Referenced by p_hull_action(), and p_minkowski_action().
def importCSG.checkObjShape | ( | obj | ) |
Referenced by fuse(), p_difference_action(), p_intersection_action(), and p_linear_extrude_with_transform().
def importCSG.convert_points_list_to_vector | ( | l | ) |
Referenced by p_polygon_action_nopath(), and p_polygon_action_plus_path().
def importCSG.fixVisibility | ( | ) |
Referenced by processcsg().
def importCSG.fuse | ( | lst, | |
name | |||
) |
References checkObjShape(), and placeholder().
def importCSG.insert | ( | filename, | |
docname | |||
) |
References processcsg().
Referenced by OpenSCADCommands.AddSCADTask.addelement().
def importCSG.make_face | ( | v1, | |
v2, | |||
v3 | |||
) |
def importCSG.myPolygon | ( | n, | |
r1 | |||
) |
Referenced by p_cylinder_action().
def importCSG.open | ( | filename | ) |
def importCSG.p_2d_point | ( | p | ) |
def importCSG.p_3d_point | ( | p | ) |
def importCSG.p_anymodifier | ( | p | ) |
anymodifier : MODIFIERBACK | MODIFIERDEBUG | MODIFIERROOT | MODIFIERDISABLE
def importCSG.p_block_list_ | ( | p | ) |
block_list : statement | block_list statement | statementwithmod | block_list statementwithmod
def importCSG.p_boolean | ( | p | ) |
boolean : true | false
def importCSG.p_circle_action | ( | p | ) |
def importCSG.p_color_action | ( | p | ) |
References setColorRecursively(), and shallHide().
def importCSG.p_cube_action | ( | p | ) |
References center().
def importCSG.p_cylinder_action | ( | p | ) |
References center(), and myPolygon().
def importCSG.p_difference_action | ( | p | ) |
References checkObjShape(), and placeholder().
def importCSG.p_error | ( | p | ) |
def importCSG.p_group_action1 | ( | p | ) |
def importCSG.p_group_action2 | ( | p | ) |
def importCSG.p_hull_action | ( | p | ) |
References CGALFeatureObj().
def importCSG.p_import_file1 | ( | p | ) |
References process_import_file().
def importCSG.p_intersection_action | ( | p | ) |
References checkObjShape(), and placeholder().
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
def importCSG.p_keywordargument_list | ( | p | ) |
keywordargument_list : keywordargument | keywordargument_list COMMA keywordargument
def importCSG.p_linear_extrude_with_transform | ( | p | ) |
References center(), checkObjShape(), process_linear_extrude(), and process_linear_extrude_with_transform().
def importCSG.p_matrix | ( | p | ) |
def importCSG.p_minkowski_action | ( | p | ) |
minkowski_action : minkowski LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE
References CGALFeatureObj().
def importCSG.p_multmatrix_action | ( | p | ) |
References placeholder().
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().
def importCSG.p_offset_action | ( | p | ) |
References placeholder().
def importCSG.p_operation | ( | p | ) |
operation : difference_action | intersection_action | union_action | rotate_extrude_action | linear_extrude_with_transform | rotate_extrude_file | import_file1 | resize_action | surface_action | projection_action | hull_action | minkowski_action | offset_action
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
def importCSG.p_path_list | ( | p | ) |
def importCSG.p_path_points | ( | p | ) |
path_points : NUMBER COMMA | path_points NUMBER COMMA | path_points NUMBER
def importCSG.p_path_set | ( | p | ) |
path_set : path_list | path_set COMMA path_list
def importCSG.p_points_list_2d | ( | p | ) |
points_list_2d : 2d_point COMMA | points_list_2d 2d_point COMMA | points_list_2d 2d_point
def importCSG.p_points_list_3d | ( | p | ) |
points_list_3d : 3d_point COMMA | points_list_3d 3d_point COMMA | points_list_3d 3d_point
def importCSG.p_polygon_action_nopath | ( | p | ) |
References convert_points_list_to_vector().
def importCSG.p_polygon_action_plus_path | ( | p | ) |
References convert_points_list_to_vector().
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
References draftgeoutils.faces.removeSplitter().
def importCSG.p_projection_action | ( | p | ) |
References placeholder().
def importCSG.p_render_action | ( | p | ) |
def importCSG.p_resize_action | ( | p | ) |
resize_action : resize LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE
def importCSG.p_rotate_extrude_action | ( | p | ) |
References process_rotate_extrude(), and process_rotate_extrude_prism().
def importCSG.p_rotate_extrude_file | ( | p | ) |
References process_import_file(), process_rotate_extrude(), and process_rotate_extrude_prism().
def importCSG.p_size_vector | ( | p | ) |
def importCSG.p_sphere_action | ( | p | ) |
def importCSG.p_square_action | ( | p | ) |
References center().
def importCSG.p_statement | ( | p | ) |
statement : part | operation | multmatrix_action | group_action1 | group_action2 | color_action | render_action | not_supported
def importCSG.p_statementwithmod | ( | p | ) |
statementwithmod : anymodifier statement
def importCSG.p_stripped_string | ( | p | ) |
def importCSG.p_surface_action | ( | p | ) |
References center().
def importCSG.p_text_action | ( | p | ) |
References addString(), addValue(), and processTextCmd().
def importCSG.p_union_action | ( | p | ) |
def importCSG.p_vector | ( | p | ) |
def importCSG.placeholder | ( | name, | |
children, | |||
arguments | |||
) |
def importCSG.process_import_file | ( | fname, | |
ext, | |||
layer | |||
) |
References process_mesh_file(), and processDXF().
Referenced by p_import_file1(), and p_rotate_extrude_file().
def importCSG.process_linear_extrude | ( | obj, | |
h | |||
) |
Referenced by p_linear_extrude_with_transform().
def importCSG.process_linear_extrude_with_transform | ( | base, | |
height, | |||
twist, | |||
scale | |||
) |
Referenced by p_linear_extrude_with_transform().
def importCSG.process_mesh_file | ( | fname, | |
ext | |||
) |
Referenced by process_import_file().
def importCSG.process_rotate_extrude | ( | obj, | |
angle | |||
) |
Referenced by p_rotate_extrude_action(), and p_rotate_extrude_file().
def importCSG.process_rotate_extrude_prism | ( | obj, | |
angle, | |||
n | |||
) |
Referenced by p_rotate_extrude_action(), and p_rotate_extrude_file().
def importCSG.processcsg | ( | filename | ) |
References fixVisibility().
def importCSG.processDXF | ( | fname, | |
layer | |||
) |
Referenced by process_import_file().
def importCSG.processSTL | ( | fname | ) |
def importCSG.processTextCmd | ( | t | ) |
Referenced by p_text_action().
def importCSG.setColorRecursively | ( | obj, | |
color, | |||
transp | |||
) |
For some reason a part made by cutting or fusing other parts do not have a color unless its constituents are also colored. This code sets colors for those constituents unless already set elsewhere.
References setColorRecursively().
Referenced by p_color_action(), and setColorRecursively().
def importCSG.shallHide | ( | subject | ) |
Referenced by p_color_action().
def importCSG.translate | ( | context, | |
text | |||
) |
list importCSG.alreadyhidden = [] |
bool importCSG.gui = True |
list importCSG.hassetcolor = [] |
list importCSG.original_root_objects = [] |
importCSG.params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD") |
importCSG.printverbose = False |