Documentation ¶
Index ¶
- func UVSphere(radius float64, rows, columns int) modeling.Mesh
- func UVSphereUnwelded(radius float64, rows, columns int) modeling.Mesh
- func UnitCube() modeling.Mesh
- type Circle
- type CircleUVs
- type Cube
- type CubeNode
- type CubeNodeData
- type CubeUVs
- type Cylinder
- type CylinderNode
- type CylinderNodeData
- type CylinderUVs
- type Hemisphere
- type HemisphereNode
- type HemisphereNodeData
- type Quad
- type StripUVs
- type StripUVsNode
- type StripUVsNodeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UVSphereUnwelded ¶ added in v0.9.0
Types ¶
type Cube ¶
func (Cube) UnweldedQuads ¶ added in v0.9.0
Builds a cube
The Cube Indices:
3 ------- 7 / | / |
2 | 6 | | 1 | 5 | / | / 0 ------ 4
type CubeNode ¶ added in v0.18.0
type CubeNode = nodes.StructNode[modeling.Mesh, CubeNodeData]
type CubeNodeData ¶ added in v0.18.0
type CubeNodeData struct { Width nodes.NodeOutput[float64] Height nodes.NodeOutput[float64] Depth nodes.NodeOutput[float64] }
type CubeUVs ¶ added in v0.9.0
type CubeUVs struct { Top *StripUVs Bottom *StripUVs Left *StripUVs Right *StripUVs Front *StripUVs Back *StripUVs }
func DefaultCubeUVs ¶ added in v0.9.0
func DefaultCubeUVs() *CubeUVs
type Cylinder ¶
type Cylinder struct { Sides int Height float64 Radius float64 NoTop, NoBottom bool // Optionally turn off generation of top and/or bottom and turn the cylinder into pipe UVs *CylinderUVs }
type CylinderNode ¶ added in v0.17.0
type CylinderNode = nodes.StructNode[modeling.Mesh, CylinderNodeData]
type CylinderNodeData ¶ added in v0.17.0
type CylinderNodeData struct { Sides nodes.NodeOutput[int] Height nodes.NodeOutput[float64] Radius nodes.NodeOutput[float64] Top nodes.NodeOutput[bool] Bottom nodes.NodeOutput[bool] }
type CylinderUVs ¶ added in v0.9.0
type Hemisphere ¶ added in v0.17.0
type HemisphereNode ¶ added in v0.17.0
type HemisphereNode = nodes.StructNode[modeling.Mesh, HemisphereNodeData]
type HemisphereNodeData ¶ added in v0.17.0
type HemisphereNodeData struct { Rows nodes.NodeOutput[int] Columns nodes.NodeOutput[int] Radius nodes.NodeOutput[float64] Capped nodes.NodeOutput[bool] }
type StripUVs ¶ added in v0.9.0
func (StripUVs) LeftToRight ¶ added in v0.17.0
func (StripUVs) StartRight ¶ added in v0.9.0
type StripUVsNode ¶ added in v0.17.0
type StripUVsNode = nodes.StructNode[StripUVs, StripUVsNodeData]
type StripUVsNodeData ¶ added in v0.17.0
type StripUVsNodeData struct { Width nodes.NodeOutput[float64] Start nodes.NodeOutput[vector2.Float64] End nodes.NodeOutput[vector2.Float64] }
func (StripUVsNodeData) Process ¶ added in v0.17.0
func (sund StripUVsNodeData) Process() (StripUVs, error)
Click to show internal directories.
Click to hide internal directories.