primitives
Methods to construct simple geometric primitives
Be sure to check out the general modelling guide if you're new to tscad
Methods and properties
import {
,
type CubeOptions,
} from '@tscad/modeling/primitives'function cube(options)
Construct an axis-aligned solid cube in three dimensional space with six square faces.
Parameters
Prop
Type
Defined in packages/modeling/src/primitives/index.ts
interface CubeOptions
Options used in the cube method.
Members
Prop
Type
Defined in packages/modeling/src/primitives/index.ts
function sphere(options)
Construct a sphere in three dimensional space where all points are at the same distance from the center.
Parameters
Prop
Type
Defined in packages/modeling/src/primitives/index.ts