(release 1.4)
Copyright 2008-2013 Nine Vectors.
All Right Reserverd. http://ninevectors.ortosoft.eu

Objects.Geometry.Primitives.Linear&Radial Extrude

Geometry object - properties The first container defines the basic parameters, that is - a type of object, its name under which it operates in a scene and visibility checkbox. Visibility state of the object can also be changed in the Scene object list by clicking the eye icon next to the name of the object. The option applies to a visibility of an object both in editor and generated SWF. Though if Export hidden object (option panel , ALT+O) option is checked even objects that are invisible in editor will be displayed in final SWF.

Both – the Linear and Radial Extrude are 3D objects created on the basis of a flat contour. They have an almost identical set of parameters. They differ only in the trajectory along which the successive segments are arranged. In the case of Linear Extrude it is a straight line, while the Radial Extrude is a circle. Parameters container contains only three parameters:

  • Type - determines whether a flat contour is to be extruded alone a straight line or along a circle.
  • Height/Radius - the height of the object for Linear Extrude / the radius for the Radial Extrude
  • Segments - the number of segments arranged along the contour. The more segments the higher the density of mesh.

In the edit panel, there is an extra editor for the 2D contour of the options that are associated with the Modifiers container. The principle of creating objects of Extrude type will be best explain on the basis of a simple example. The first step to create the object is to draw the outline. Let’s draw a contour commonly known as a symbol of industry. It's simple. Let’s start clicking in the editor's window of contour, placing successively vertices of contour. Created object is immediately visible in the main work area. Subsequent segments are added to the previous one. If you want the further segments to be added to the second end of contour that you are currently creating, please press the button Change end point. Clicking on a point from which you started to create a contour, you can close this contour. The program will display the appropriate dialog window.

Try to draw the outline of the symbol of the industry. Enlarge the view using mouse wheel, so as to be able to set points as shown below..

Let's also correct the location of points, so that the base is horizontal, wall is vertical and the tops of the roof lay on a single line. Perform the following operations:

  1. Based on the above drawing, select the points 1 and 2. Points can be selected at any time drawing rectangle with the right mouse button pressed. The selection of points by drawing rectangle with the left mouse button pressed is possible under the Select points mode. When the mouse cursor is over one of the points of the contour, you can move the selected points using drag & drop. The points are marked in red. If you have not previously selected group of points, the only point which is moved is the one located under the mouse cursor. Holding down the SHIFT key restricts the mouse cursor movement to either vertical or horizontal directions or at an angle of 45. However, instead of manual moving of each point, set marked points of 1 and 2 on the horizontal line, using the button

  2. Set points 2 i 3 on a vertical line. Select them and click

  3. Set points of the roof on the horizontal and vertical lines using the Align points to line button. As follows:
    • select points 3,5,7 and align them to horizontal line
    • select points 4,6,8 and align them to horizontal line
    • select points 4,5 and align them to vertical line
    • select points 6,7 and align them to vertical line

  4. Set points 3-8 and move them holding SHIFT by one grid cell to the left.

The distribution of points should now be more structured.

Let's draw now the chimney on the left side. Switch to the Add Points mode and click the right mouse button on a free area in order to deselect chosen points. To add new segments starting from the point from which you started drawing press the button. The point to which the new segment is joined is marked in purple. Place more points in the order shown in the figure below. If you are lacking of space, please move the screen of the contour editor or zoom out the view using mouse wheel.

Orange segment marked in the figure is used to quickly change the height in the case of the Linear Extrude or change the radius in the case of the Radial Extrude. Just drag the orange point. Both the height and radius can take negative values, which effects you can check soon by moving the point.

In many cases created object can differ from the intended design, because triangles can have the normal vector inverted. In order to change their normal vector direction, click or change the height / radius to negative value (change the sign before the number).

If you want to change the size of the resulting contour, select all the points and go to the scaling mode. Over the highlighted areas there will be shown a transformation rectangle. By grasping one corner of the rectangle you will scale the selected set of points. If you selected all points, thanks to scaling you will simply change the size of the contour. At the time of scaling (when the left mouse button is pressed) you can hold down the SHIFT button in order to activate the auxiliary modes. Then, to scale:

Remember that to use the above auxiliary modes, firstly start scaling, then press SHIFT button, not vice versa.

In rotation mode there is displayed the same rectangle of transformation, except that the rotation process begins with a click outside the rectangle of transformation. During the rotation you can move the mouse cursor around the whole screen which allows you to perform operations with high accuracy.

 

The thing responsible for density of mesh is the number of segments used to extrude contour along the straight line or along the circle as well as the complexity of the contour.

Remember that you can always invert normals, which often fixes display errors and sometimes will give a completely new look to the object. After inverting normals, the object can still be displayed incorrectly. Then try to change the value of height/radius to negative. Objects with open contour usually needs to turn on the Double sided mode (see Surface container)

Try to avoid unnecessary edges in contour. Specifically, the situation in which a straight line consists of several segments. There are situations where this is an intended effect, for example – we need uniform density of the mesh. However, in other situations try to aim to reduce the quantity of segments used in contour. Unnecessary segments usually occur when you use the Align points to line in situations, where there are highlighted at least three adjacent points. In this case, delete unnecessary points. Select them and press Delete key. If the contour was previously closed, the program will ask whether to open it. Click on "no", unless you want to re-draw the removed piece from the beginning. Established gap is connected by a single segment. Look at the example below:

You can make drawing the contour easier by using of reference bitmap. The reference bitmap is loaded only for particular object and acts as a helper background for setting contour points. Once you load it you can adjust its size using mouse wheel while over contour editor or change the scale ratio more accurately by changing Zoom parameter. Its very helpful when you want to extrude some contours based on maps. Check the practical use of reference images in this tutorial.

 

Samples of Linear and Radial Extrude

Click on a miniature to load SWF file and move mouse cursor over to see it in motion