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 CircleNode
- type CircleNodeData
- type CircleUVs
- type CircleUVsNode
- type CircleUVsNodeData
- type Cone
- type ConeNode
- type ConeNodeData
- 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 QuadNode
- type QuadNodeData
- type StripUVs
- type StripUVsNode
- type StripUVsNodeData
- type UvSphereNode
- type UvSphereNodeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UVSphereUnwelded ¶ added in v0.9.0
Types ¶
type CircleNode ¶ added in v0.21.1
type CircleNode = nodes.Struct[modeling.Mesh, CircleNodeData]
type CircleNodeData ¶ added in v0.21.1
type CircleNodeData struct {
Radius nodes.NodeOutput[float64]
Sides nodes.NodeOutput[int]
UVs nodes.NodeOutput[CircleUVs]
}
type CircleUVsNode ¶ added in v0.21.1
type CircleUVsNode = nodes.Struct[CircleUVs, CircleUVsNodeData]
type CircleUVsNodeData ¶ added in v0.21.1
type CircleUVsNodeData struct {
Center nodes.NodeOutput[vector2.Float64]
Radius nodes.NodeOutput[float64]
}
func (CircleUVsNodeData) Process ¶ added in v0.21.1
func (c CircleUVsNodeData) Process() (CircleUVs, error)
type ConeNodeData ¶ added in v0.21.2
type ConeNodeData struct {
Height nodes.NodeOutput[float64]
Radius nodes.NodeOutput[float64]
Sides nodes.NodeOutput[int]
}
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 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.Struct[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.Struct[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 QuadNodeData ¶ added in v0.21.1
type QuadNodeData struct {
Width nodes.NodeOutput[float64]
Depth nodes.NodeOutput[float64]
UVs nodes.NodeOutput[StripUVs]
}
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.Struct[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)
type UvSphereNode ¶ added in v0.21.1
type UvSphereNode = nodes.Struct[modeling.Mesh, UvSphereNodeData]
type UvSphereNodeData ¶ added in v0.21.1
type UvSphereNodeData struct {
Radius nodes.NodeOutput[float64]
Rows nodes.NodeOutput[int]
Columns nodes.NodeOutput[int]
Weld nodes.NodeOutput[bool]
}
func (UvSphereNodeData) Description ¶ added in v0.21.1
func (c UvSphereNodeData) Description() string
Click to show internal directories.
Click to hide internal directories.