Bolt

ai.dragonfly.mesh.shape.Bolt$
object Bolt

Attributes

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

Members list

Value members

Concrete methods

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

Generate a 3D mesh of a threaded Bolt.

Generate a 3D mesh of a threaded Bolt.

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.

shankLength

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

threadRadius

The maximum radius of the entire bolt. 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 bolt.

Attributes

Returns

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

Source
Bolt.scala