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 CubeUVsNode
- type CubeUVsNodeData
- type Cylinder
- type CylinderNode
- type CylinderNodeData
- type CylinderUVs
- type Hemisphere
- type HemisphereNode
- type HemisphereNodeData
- type Quad
- type QuadNode
- type QuadNodeData
- type StripUVs
- func (suv StripUVs) At(time float64) vector2.Float64
- func (suv StripUVs) AtXY(x, y float64) vector2.Float64
- func (suv StripUVs) Dir() vector2.Float64
- func (suv StripUVs) EndLeft() vector2.Float64
- func (suv StripUVs) EndRight() vector2.Float64
- func (suv StripUVs) LeftToRight() vector2.Float64
- func (suv StripUVs) StartLeft() vector2.Float64
- func (suv StripUVs) StartRight() vector2.Float64
- 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[CircleNodeData]
type CircleNodeData ¶ added in v0.21.1
type CircleNodeData struct {
Radius nodes.Output[float64]
Sides nodes.Output[int]
UVs nodes.Output[CircleUVs]
}
func (CircleNodeData) Out ¶ added in v0.23.0
func (c CircleNodeData) Out() nodes.StructOutput[modeling.Mesh]
type CircleUVsNode ¶ added in v0.21.1
type CircleUVsNode = nodes.Struct[CircleUVsNodeData]
type CircleUVsNodeData ¶ added in v0.21.1
func (CircleUVsNodeData) Out ¶ added in v0.23.0
func (c CircleUVsNodeData) Out() nodes.StructOutput[CircleUVs]
type ConeNode ¶ added in v0.21.2
type ConeNode = nodes.Struct[ConeNodeData]
type ConeNodeData ¶ added in v0.21.2
type ConeNodeData struct {
Height nodes.Output[float64]
Radius nodes.Output[float64]
Sides nodes.Output[int]
}
func (ConeNodeData) Out ¶ added in v0.23.0
func (r ConeNodeData) Out() nodes.StructOutput[modeling.Mesh]
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.Struct[CubeNodeData]
type CubeNodeData ¶ added in v0.18.0
type CubeNodeData struct {
Width nodes.Output[float64]
Height nodes.Output[float64]
Depth nodes.Output[float64]
Dimensions nodes.Output[int]
UVs nodes.Output[CubeUVs]
}
func (CubeNodeData) Out ¶ added in v0.23.0
func (c CubeNodeData) Out() nodes.StructOutput[modeling.Mesh]
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 CubeUVsNode ¶ added in v0.24.0
type CubeUVsNode = nodes.Struct[CubeUVsNodeData]
type CubeUVsNodeData ¶ added in v0.24.0
type CubeUVsNodeData struct {
Top nodes.Output[StripUVs]
Bottom nodes.Output[StripUVs]
Left nodes.Output[StripUVs]
Right nodes.Output[StripUVs]
Front nodes.Output[StripUVs]
Back nodes.Output[StripUVs]
}
func (CubeUVsNodeData) Uv ¶ added in v0.24.0
func (cnd CubeUVsNodeData) Uv() nodes.StructOutput[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[CylinderNodeData]
type CylinderNodeData ¶ added in v0.17.0
type CylinderNodeData struct {
Sides nodes.Output[int]
Height nodes.Output[float64]
Radius nodes.Output[float64]
Top nodes.Output[bool]
Bottom nodes.Output[bool]
}
func (CylinderNodeData) Out ¶ added in v0.23.0
func (hnd CylinderNodeData) Out() nodes.StructOutput[modeling.Mesh]
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[HemisphereNodeData]
type HemisphereNodeData ¶ added in v0.17.0
type HemisphereNodeData struct {
Rows nodes.Output[int]
Columns nodes.Output[int]
Radius nodes.Output[float64]
Capped nodes.Output[bool]
}
func (HemisphereNodeData) Out ¶ added in v0.23.0
func (hnd HemisphereNodeData) Out() nodes.StructOutput[modeling.Mesh]
type QuadNode ¶ added in v0.21.1
type QuadNode = nodes.Struct[QuadNodeData]
type QuadNodeData ¶ added in v0.21.1
type QuadNodeData struct {
Width nodes.Output[float64]
Depth nodes.Output[float64]
Columns nodes.Output[int]
Rows nodes.Output[int]
UVs nodes.Output[StripUVs]
}
func (QuadNodeData) Out ¶ added in v0.23.0
func (c QuadNodeData) Out() nodes.StructOutput[modeling.Mesh]
type StripUVs ¶ added in v0.9.0
func (StripUVs) AtXY ¶ added in v0.26.0
This is slow, shouldn't really use it if you're gonna be calling it a bunch
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[StripUVsNodeData]
type StripUVsNodeData ¶ added in v0.17.0
type StripUVsNodeData struct {
Width nodes.Output[float64]
Start nodes.Output[vector2.Float64]
End nodes.Output[vector2.Float64]
}
func (StripUVsNodeData) Out ¶ added in v0.23.0
func (sund StripUVsNodeData) Out() nodes.StructOutput[StripUVs]
type UvSphereNode ¶ added in v0.21.1
type UvSphereNode = nodes.Struct[UvSphereNodeData]
type UvSphereNodeData ¶ added in v0.21.1
type UvSphereNodeData struct {
Radius nodes.Output[float64]
Rows nodes.Output[int]
Columns nodes.Output[int]
Weld nodes.Output[bool]
}
func (UvSphereNodeData) Description ¶ added in v0.21.1
func (c UvSphereNodeData) Description() string
func (UvSphereNodeData) Out ¶ added in v0.23.0
func (c UvSphereNodeData) Out() nodes.StructOutput[modeling.Mesh]
Click to show internal directories.
Click to hide internal directories.