figureone
    Preparing search index...

    Function revolve

    • Return points of a 3D surface created by revolving (or radially sweeping) a 2D profile around an axis.

      The points can either represent the triangles that make up each face, or represent the start and end points lines that are the edges of each face of the cone.

      If the points represent triangles, then a second array of normal vectors for each point will be available.

      A profile is defined in the XY plane, and then revolved around the x axis.

      The resulting points can oriented and positioned by defining a axis and position. The axis directs the x axis (around which the profile was rotated) to any direction. The position then offsets the transformed points in 3D space, there the original (0, 0, [0]) point is translated to (position.x, position.y, position.z)

      All profile points must have a y value that is not 0, with the exceptions of the ends which can be 0.

      Parameters

      Returns [Point[], Point[]] | [Point[]]

      an array of points and normals. If the points represent lines, then the array of normals will be empty.