figureone
    Preparing search index...

    Interface OBJ_RevolvePoints

    Options object for revolve.

    Revolve (or radially sweep) a profile in the XY plane around the x axis to form a 3D surface.

    • sides number — number of sides in the radial sweep
    • profile TypeParsablePoint[] — XY plane profile to be radially swept around the x axis
    • normals flat | curve | curveProfile | curveRadialflat normals will make shading (from a light source) across a face of the object a constant color. curveProfile will gradiate the shading along the profile. curveRadial will gradiate the shading around the radial sweep. curve will gradiate the shading both around the radial sweep and along the profile. Use curve, curveProfile, or curveRadial to make a surface look more round with fewer number of sides.
    • axis TypeParsablePoint — orient the shape so its axis is along this vector
    • rotation number — by default the profile will start in the XY plane and sweep around the x axis following the right hand rule. Use rotation to start the sweep at some angle where 0º is in the XY for +y and 90º is in the XZ plane for +z. initial angle of the revolve rotation
    • position TypeParsablePoint — offset the final vertices such that the original (0, 0) point in the profile moves to position (this step happens after the rotation)
    • transform TypeParsableTransform — apply a final transform to shape
    • lines boolean — if true then points representing the edes of the faces will be returned. If false, then points representing two triangles per face and an associated normal for each point will be returned.