Screw

ai.dragonfly.mesh.shape.Screw
object Screw

Attributes

Source
Screw.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Screw.type

Members list

Value members

Concrete methods

def apply(length: Double, threadsPerUnit: Double, threadThickness: Double, shankLength: Double, pointLength: Double, angularSegments: Int, threadRadius: Double, coreRadius: Double, name: String): Mesh

Generate a 3D mesh of a threaded screw.

Generate a 3D mesh of a threaded screw.

Value parameters

angularSegments

How many segments to approximate the circle. Must be greater than 2.

coreRadius

The radius of the core. Must be within the range of: (0.0, threadRadius).

length

The total length of the entire screw. Must be greater than 0.0.

name

The name of the mesh.

pointLength

How much of the length of the screw to allocate to the point. The point steps linearly from thread radius to 0.

shankLength

How much of the length of the screw to allocate to the shank. Must be within the range of: (0.0, length - pointLength].

threadRadius

The maximum radius of the entire screw. Must be greater than coreRadius.

threadThickness

The thickness of the thread. Must be within the range of: (0.0, 1.0 / threadsPerUnit].

threadsPerUnit

How many thread revolutions complete per unit of distance along the screw.

Attributes

Returns

a 3d Mesh of a screw that reflects the specifications given by the parameters.

Source
Screw.scala