toggle menu
SceneView
androidJvm
switch theme
search in API
sceneview
/
io.github.sceneview.geometries
/
Shape
/
Builder
Builder
class
Builder
:
Geometry.Builder
Members
Constructors
Builder
Link copied to clipboard
constructor
(
)
Properties
color
Link copied to clipboard
var
color
:
Color
?
delaunay
Points
Link copied to clipboard
var
delaunayPoints
:
List
<
Position2
>
normal
Link copied to clipboard
var
normal
:
Direction
polygon
Holes
Link copied to clipboard
var
polygonHoles
:
List
<
Int
>
polygon
Path
Link copied to clipboard
var
polygonPath
:
List
<
Position2
>
primitive
Type
Link copied to clipboard
val
primitiveType
:
RenderableManager.PrimitiveType
uv
Scale
Link copied to clipboard
var
uvScale
:
UvScale
Functions
build
Link copied to clipboard
fun
<
T
:
Geometry
>
build
(
engine
:
Engine
,
constructor
:
(
vertexBuffer
:
VertexBuffer
,
indexBuffer
:
IndexBuffer
,
offsets
:
List
<
IntRange
>
,
boundingBox
:
Box
)
->
T
)
:
T
open
override
fun
build
(
engine
:
Engine
)
:
Shape
color
Link copied to clipboard
fun
color
(
color
:
Color
?
)
:
Shape.Builder
delaunay
Points
Link copied to clipboard
fun
delaunayPoints
(
delaunayPoints
:
List
<
Position2
>
)
:
Shape.Builder
indices
Link copied to clipboard
fun
indices
(
indices
:
List
<
Int
>
)
:
Geometry.Builder
normal
Link copied to clipboard
fun
normal
(
normal
:
Direction
)
:
Shape.Builder
polygon
Path
Link copied to clipboard
fun
polygonPath
(
points
:
List
<
Position2
>
,
holes
:
List
<
Int
>
=
listOf()
)
:
Shape.Builder
fun
polygonPath
(
path
:
Path
,
stepSize
:
Float
=
1.0f
,
holes
:
List
<
Int
>
=
listOf()
)
:
Shape.Builder
Create a Polygon shape from a Path
primitives
Indices
Link copied to clipboard
fun
primitivesIndices
(
indices
:
List
<
List
<
Int
>
>
)
:
Geometry.Builder
uv
Scale
Link copied to clipboard
fun
uvScale
(
uvScale
:
UvScale
)
:
Shape.Builder
vertices
Link copied to clipboard
fun
vertices
(
vertices
:
List
<
Geometry.Vertex
>
)
:
Geometry.Builder