Changes

Python Integration

3,410 bytes added, 15:41, 4 December 2015
/* Material Group Functions */
==Material Group Functions==
 
====pec_group({{ArgTypeString}} label)====
 
''Example:pec_group("Subtract_Object","Rect_Strip1","Rect_Strip2")''
 
Description: Creates a Boolean object named 'label' by subtracting object_2 from object_1. An error will be thrown if a Boolean object named 'label' already exists.
 
====union({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2)====
 
''Example:union("Union_Object","Rect_Strip1","Rect_Strip2")''
 
Description: Creates a Boolean object named 'label' by unioning object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists.
 
====intersect({{ArgTypeString}} label, {{ArgTypeString}} object_1, {{ArgTypeString}} object_2)====
 
''Example:intersect("Intersection_Object","Rect_Strip1","Rect_Strip2")''
 
Description: Creates a Boolean object named 'label' by intersecting object_1 and object_2. An error will be thrown if a Boolean object named 'label' already exists.
 
====array({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing)====
 
''Example:array("Array_1","Rect_Strip_1",4,4,1,"spacing","spacing",0)''
 
Description: Create or modify an Array object.
 
====translate_by({{ArgTypeString}} label, {{ArgTypeReal}} x_dist, {{ArgTypeReal}} y_dist, {{ArgTypeReal}} z_dist)====
 
''Example:translate_by("MyObj",10,10,x)''
 
Description: Translates an object by the specified distances in each direction.
 
====translate_to({{ArgTypeString}} label, {{ArgTypeReal}} x_dest, {{ArgTypeReal}} y_dest, {{ArgTypeReal}} z_dest)====
 
''Example:translate_to("MyObj",20,20,x2)''
 
Description: Translates an object to the specified destination.
 
====rotate({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle)====
 
''Example:rotate("pyramid_1",0,0,0,10,10,100)''
 
Description: Draws a circular curve object in the scene under the currently activated Material Group node, or modifies a Circle object if Circle 'label' already exists. The parameters start_angle and end_angle are in degrees.
 
====extrude({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} height)====
 
''Example:extrude("Extrude_Object","Rect_Strip1",50)''
 
Description: Creates or modifies an Extrusion object from CAD object 'object'. If modifying an existing extrusion, 'object' is ignored, and the pre-existing primitive is used. extrude(...) can only extrude objects that have a single face, and will extrude in the direction of the face's normal.
 
====explode({{ArgTypeString}} object)====
 
''Example:explode("MyArray")''
 
Description: Performs an explode operation on a CAD object named 'object'.
 
====revolve({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} rot_angle)====
 
''Example:revolve("Rev1","Line_1",0,0,0,0,0,1)''
 
Description: Creates or modifies a Revolution object called 'label', with a primitive object named 'object'. If modifying an existing Revolution object, 'object' is ignored, and the pre-existing primitive object is used. (x0,y0,z0) specifies the center of revolution, and (uX,uY,uZ) specifies the revolution axis. rot_angle is in degrees.
==Simulation Setup and Meshing Functions==
831
edits