Skip to content

Commit

Permalink
Supplemented default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jacky-ttt committed Oct 30, 2023
1 parent 12aafef commit 6e34671
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions sceneview/src/main/java/io/github/sceneview/node/CylinderNode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import io.github.sceneview.math.Position

open class CylinderNode(
engine: Engine,
radius: Float,
height: Float,
center: Position,
sideCount: Int,
radius: Float = Cylinder.DEFAULT_RADIUS,
height: Float = Cylinder.DEFAULT_HEIGHT,
center: Position = Cylinder.DEFAULT_CENTER,
sideCount: Int = Cylinder.DEFAULT_SIDE_COUNT,
/**
* Binds a material instance to the specified primitive.
*
Expand Down Expand Up @@ -49,10 +49,10 @@ open class CylinderNode(

constructor(
engine: Engine,
radius: Float,
height: Float,
center: Position,
sideCount: Int,
radius: Float = Cylinder.DEFAULT_RADIUS,
height: Float = Cylinder.DEFAULT_HEIGHT,
center: Position = Cylinder.DEFAULT_CENTER,
sideCount: Int = Cylinder.DEFAULT_SIDE_COUNT,
/**
* Binds a material instance to all primitives.
*/
Expand Down
16 changes: 8 additions & 8 deletions sceneview/src/main/java/io/github/sceneview/node/SphereNode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import io.github.sceneview.math.Position

open class SphereNode(
engine: Engine,
radius: Float,
center: Position,
stacks: Int,
slices: Int,
radius: Float = Sphere.DEFAULT_RADIUS,
center: Position = Sphere.DEFAULT_CENTER,
stacks: Int = Sphere.DEFAULT_STACKS,
slices: Int = Sphere.DEFAULT_SLICES,
/**
* Binds a material instance to the specified primitive.
*
Expand Down Expand Up @@ -49,10 +49,10 @@ open class SphereNode(

constructor(
engine: Engine,
radius: Float,
center: Position,
stacks: Int,
slices: Int,
radius: Float = Sphere.DEFAULT_RADIUS,
center: Position = Sphere.DEFAULT_CENTER,
stacks: Int = Sphere.DEFAULT_STACKS,
slices: Int = Sphere.DEFAULT_SLICES,
/**
* Binds a material instance to all primitives.
*/
Expand Down

0 comments on commit 6e34671

Please sign in to comment.