Changes

Glossary of EM.Cube's Python Functions

1,827 bytes added, 22:22, 4 September 2016
/* EM.Cube's Python Functions for Geometric Object Creation */
====box({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} length, {{ArgTypeAny}} width, {{ArgTypeAny}} height)====
''Example:box("my_boxBox_1",0,0,0,"x",y,100)''
Description: Draws a Box box object in the scene under the currently activated Material Group material group node, or modifies a Box if Box the box named 'label' if it already exists.
====cylinder({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} height)====
''Example:cylinder("cylinder_1Cylinder_1",0,0,0,10,100)''
Description: Draws a Cylinder cylinder object in the scene under the currently activated Material Group material group node, or modifies a Cylinder the cylinder named 'label' if Cylinder it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cylinder's azimuth axis. ====cone({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_radius, {{ArgTypeAny}} height[, {{ArgTypeAny}} top_radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom])==== ' 'Example:cone("Cone_1",0,0,0,30,40,20,0,180)'' Description: Draws a cone object in the scene under the currently activated material group node, or modifies the cone named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cone's azimuth axis.
====pyramid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height)====
''Example:pyramid("pyramid_1Pyramid_1",0,0,0,10,10,100)'' Description: Draws a pyramid object in the scene under the currently activated material group node, or modifies the pyramid named 'label' if it already exists. ====sphere({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])==== ''Example:sphere("Sphere_1",0,0,0,10,0,180)'' Description: Draws a sphere object in the scene under the currently activated Material Group node, or modifies the sphere named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the sphere's azimuth axis. ====ellipsoid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_x, {{ArgTypeAny}} radius_y, {{ArgTypeAny}} radius_z[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])==== ''Example:ellipsoid("Ellipsoid_1",0,0,0,100,100,50,0,360)''
Description: Draws a Pyramid an ellipsoid object in the scene under the currently activated Material Group material group node, or modifies a Pyramid if Pyramid the ellipsoid named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the ellipsoid's azimuth axis.
====spheretorus({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radiusradius_major, {{ArgTypeAny}} radius_minor[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])====
''Example:spheretorus("sphereEllipsoid_1",0,0,0,10100,100,50,0,180360)''
Description: Draws a Sphere an torus object in the scene under the currently activated Material Group material group node, or modifies a Sphere if Sphere the torus named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the spheretorus's theta azimuth axis.
====rect_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} length, {{ArgTypeAny}} width)====
28,333
edits