Difference between revisions of "Python Integration"
(→polystrip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)) |
(→Surface Objects) |
||
| Line 18: | Line 18: | ||
====polystrip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)==== | ====polystrip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)==== | ||
| − | ''Example: | + | ''Example:poly_strip("ps_1",(0,0,0),(1,0,0),(1,0,0))'' |
| − | Description: Creates or modifies a PolyStrip object in the scene. Each point is represented with a Python tuple type. The polystrip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list. | + | Description: Creates or modifies a PolyStrip object in the scene. Each point is represented with a Python tuple type. The poly_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list. |
| + | |||
| + | ====polystrip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)==== | ||
| + | |||
| + | ''Example:nurbs_strip("ns_1",(0,0,0),(1,0,0),(1,0,0))'' | ||
| + | |||
| + | Description: Creates or modifies a NURBS Strip object in the scene. Each point is represented with a Python tuple type. The nurbs_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list. | ||
===Solid Objects=== | ===Solid Objects=== | ||
Revision as of 16:48, 2 December 2015
Contents
- 1 CAD Functions
- 1.1 Surface Objects
- 1.1.1 rect_strip(string label, any x0, any y0, any z0, any length, any width)
- 1.1.2 circ_strip(string label, any x0, any y0, any z0, any inner_radius, any outer_radius)
- 1.1.3 polystrip(string label, 3x1 Python tuple p0, 3x1 Python tuple p1, ... 3x1 Python tuple pn)
- 1.1.4 polystrip(string label, 3x1 Python tuple p0, 3x1 Python tuple p1, ... 3x1 Python tuple pn)
- 1.2 Solid Objects
- 1.3 Line Objects
- 1.1 Surface Objects
CAD Functions
Surface Objects
rect_strip(string label, any x0, any y0, any z0, any length, any width)
Example:rect_strip("my_rectangle",0,0,0,"x",y)
Description: Draws a Rect Strip object in the scene under the currently activated Material Group node, or modifies a Rect Strip if Rect Strip 'label' already exists.
circ_strip(string label, any x0, any y0, any z0, any inner_radius, any outer_radius)
Example:circ_strip("cs_1",0,0,0,0,100)
Description: Draws a Circular Strip object in the scene under the currently activated Material Group node, or modifies a Circular Strip if Circular Strip 'label' already exists.
polystrip(string label, 3x1 Python tuple p0, 3x1 Python tuple p1, ... 3x1 Python tuple pn)
Example:poly_strip("ps_1",(0,0,0),(1,0,0),(1,0,0))
Description: Creates or modifies a PolyStrip object in the scene. Each point is represented with a Python tuple type. The poly_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list.
polystrip(string label, 3x1 Python tuple p0, 3x1 Python tuple p1, ... 3x1 Python tuple pn)
Example:nurbs_strip("ns_1",(0,0,0),(1,0,0),(1,0,0))
Description: Creates or modifies a NURBS Strip object in the scene. Each point is represented with a Python tuple type. The nurbs_strip function is 'self-closing' -- there is no need to supply the first point again at the end of the point list.