Changes

Glossary of EM.Cube's Python Functions

0 bytes added, 01:33, 5 September 2016
/* EM.Cube's Python Functions for Geometric Object Transformation */
== EM.Cube's Python Functions for Geometric Object Transformation ==
====subtracttranslate_by({{ArgTypeString}} label, {{ArgTypeStringArgTypeReal}} object_1x_dist, {{ArgTypeStringArgTypeReal}} y_dist, {{ArgTypeReal}} object_2z_dist)====
''Example:subtracttranslate_by("Subtract_ObjectMyObj","Rect_Strip1"10,"Rect_Strip2"10,x)''
Description: Creates a Boolean Translates an object named 'label' by subtracting object_2 from object_1. An error will be thrown if a Boolean object named 'label' already existsthe specified distances in each direction.
====uniontranslate_to({{ArgTypeString}} label, {{ArgTypeStringArgTypeReal}} object_1x_dest, {{ArgTypeStringArgTypeReal}} y_dest, {{ArgTypeReal}} object_2z_dest)====
''Example:uniontranslate_to("Union_ObjectMyObj","Rect_Strip1"20,"Rect_Strip2"20,x2)''
Description: Creates a Boolean Translates an object named 'label' by unioning object_1 and object_2. An error will be thrown if a Boolean object named 'label' already existsto the specified destination.
====intersectrotate({{ArgTypeString}} label, {{ArgTypeStringArgTypeAny}} object_1x0, {{ArgTypeStringArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} object_2end_angle)====
''Example:intersectrotate("Intersection_Objectpyramid_1","Rect_Strip1"0,"Rect_Strip2"0,0,10,10,100)''
Description: Creates Draws a Boolean circular curve object named 'label' by intersecting object_1 and object_2. An error will be thrown if in the scene under the currently activated Material Group node, or modifies a Boolean Circle object named if Circle 'label' already exists. The parameters start_angle and end_angle are in degrees.
====array({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing)====
Description: Create or modify an Array object.
====translate_byexplode({{ArgTypeString}} label, {{ArgTypeReal}} x_dist, {{ArgTypeReal}} y_dist, {{ArgTypeReal}} z_distobject)====
''Example:translate_byexplode("MyObjMyArray",10,10,x)''
Description: Translates Performs an explode operation on a CAD object by the specified distances in each directionnamed 'object'.
====translate_tosubtract({{ArgTypeString}} label, {{ArgTypeRealArgTypeString}} x_destobject_1, {{ArgTypeReal}} y_dest, {{ArgTypeRealArgTypeString}} z_destobject_2)====
''Example:translate_tosubtract("MyObjSubtract_Object",20"Rect_Strip1",20,x2"Rect_Strip2")''
Description: Translates an Creates a Boolean object to the specified destinationnamed 'label' by subtracting object_2 from object_1. An error will be thrown if a Boolean object named 'label' already exists.
====rotateunion({{ArgTypeString}} label, {{ArgTypeAnyArgTypeString}} x0object_1, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAnyArgTypeString}} end_angleobject_2)====
''Example:rotateunion("pyramid_1Union_Object",0"Rect_Strip1",0,0,10,10,100"Rect_Strip2")''
Description: Draws Creates a circular curve Boolean object in the scene under the currently activated Material Group node, or modifies named 'label' by unioning object_1 and object_2. An error will be thrown if a Circle Boolean object if Circle named 'label' already exists. The parameters start_angle and end_angle are in degrees.
====extrudeintersect({{ArgTypeString}} label, {{ArgTypeString}} objectobject_1, {{ArgTypeAnyArgTypeString}} heightobject_2)====
''Example:extrudeintersect("Extrude_ObjectIntersection_Object","Rect_Strip1",50"Rect_Strip2")''
Description: Creates or modifies an Extrusion object from CAD a Boolean object named 'objectlabel'by intersecting object_1 and object_2. If modifying an existing extrusion, 'An error will be thrown if a Boolean objectnamed ' 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 facelabel's normalalready exists.
====explodeextrude({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} height)====
''Example:explodeextrude("MyArrayExtrude_Object","Rect_Strip1",50)''
Description: Performs Creates or modifies an explode operation on a Extrusion object from CAD object named '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.
====revolve({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} uX, {{ArgTypeAny}} uY, {{ArgTypeAny}} uZ, {{ArgTypeAny}} rot_angle)====
28,333
edits