Image bm782.GIF Rotary Object
The rotary object element generates a general rotary object according to a specified profile. The central axis of a rotary object is oriented in the Y axis direction. As the element's parameter the text containing the definition of the object profile is entered. The profile definition is a multiline text list. Each line of the list defines 1 point of the contour curve, and contains 2 numeric values separated from each other by a space, by the tabulator or by a semicolon (";"). The first of the numeric data represents the Y coordinate of the curve point (i.e. the point height), the second data is the radius (i.e. the point distance from the central axis). The contour points are entered in the direction from above downwards (i.e. the Y value is diminishing). The rising Y value (i.e. from below upwards) defines the rotary object's inner side (visible from the object's center). The beginning and the end of the contour curve need not lie on the Y axis; in this case the rotary object will not be closed. The complexity (i.e. the number of the rotary object circumference divisions) is determined by the complexity of object element. The element returns the identification number of the created rotary object.
To create a model of a rotary object the Modeller program can be utilized, which can be found among the sample programs of the Peter application. With the aid of the F5 key the model can be exported into the form of a rotary object. By means of the Modeler program the model can be displayed in the 3D window or viewed from different sides. The model's color can be selected by the random color generator. The color's numeric code can be used when creating the program.
In the following text a simple example of a truncated cone definition is given. By omitting the first and last line a cone without the upper and lower base will be created.

Full Html Context Help of The Peter - Gemtree Software & Children Programming