Shapes
Global shapes
- class geometries.euc.shapes.ball.BallShape.BallShape(location, radius)
Shape of a euclidean ball
Construction
- Arguments:
location (Isometry|Point) – Either an isometry, or a point representing the center of the ball
radius (number) – the radius od the ball
- geometries.euc.shapes.ball.BallShape.BallShape.BallShape
Construction
- geometries.euc.shapes.ball.BallShape.BallShape.center
type: Point
Center of the ball
- geometries.euc.shapes.ball.BallShape.BallShape.hasUVMap
The UV coordinates corresponds to the spherical coordinates on the sphere… Not sure if that is the smartest choice
- geometries.euc.shapes.ball.BallShape.BallShape.isBallShape
type: boolean
Says that the object inherits from BallShape
- geometries.euc.shapes.ball.BallShape.BallShape.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- class geometries.euc.shapes.box.BoxShape.BoxShape(location, sides, rounded)
Shape of a euclidean box
Construction
- Arguments:
location (Isometry|Point) – Either an isometry, or a point representing the center of the ball
sides (Vector3) – the side lengths of the box
rounded (number) – if the box is rounded
- geometries.euc.shapes.box.BoxShape.BoxShape.BoxShape
Construction
- geometries.euc.shapes.box.BoxShape.BoxShape.center
type: Point
Center of the box
- geometries.euc.shapes.box.BoxShape.BoxShape.hasUVMap
The UV coordinates corresponds to the spherical coordinates on the sphere… Not sure if that is the smartest choice
- geometries.euc.shapes.box.BoxShape.BoxShape.isBoxShape
type: boolean
Says that the object inherits from BoxShape
- geometries.euc.shapes.box.BoxShape.BoxShape.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- class geometries.euc.shapes.cylinder.CylinderShape.CylinderShape(radius, isom)
Cylinder shape
Constructor
- Arguments:
radius (number) – the radius of the cylinder
isom (Isometry) – the isometry defining the position of the cylinder. The cylinder is the image by isom of the cylinder going through the origin and directed by the vector (0,0,1)
- geometries.euc.shapes.cylinder.CylinderShape.CylinderShape.CylinderShape
Constructor
- geometries.euc.shapes.cylinder.CylinderShape.CylinderShape.vector
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader
- class geometries.euc.shapes.displacement.DisplacementShape.DisplacementShape(isom, shape)
A displacement modifier on a shape After Inigo Quilez https://iquilezles.org/www/articles/distfunctions/distfunctions.htm
Constructor
- geometries.euc.shapes.displacement.DisplacementShape.DisplacementShape.DisplacementShape
Constructor
- class geometries.euc.shapes.halfSpace.HalfSpaceShape.HalfSpaceShape(isom)
Euclidean half space
Constructor.
- Arguments:
isom (Isometry) – the location of the half space The half space is the image by isom of the half space {z < 0} The UV directions are the images by isom of e_x and e_y
- geometries.euc.shapes.halfSpace.HalfSpaceShape.HalfSpaceShape.HalfSpaceShape
Constructor.
- geometries.euc.shapes.halfSpace.HalfSpaceShape.HalfSpaceShape.normal
type: Vector
The coordinates of the normal vector to the half space
- geometries.euc.shapes.halfSpace.HalfSpaceShape.HalfSpaceShape.uDir
type: Vector
U-direction (for UV coordinates)
- geometries.euc.shapes.halfSpace.HalfSpaceShape.HalfSpaceShape.vDir
type: Vector
V-direction (for UV coordinates)
Local shapes
- class geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape(location, radius)
Shape of a euclidean local ball
Construction
- Arguments:
location (Isometry|Point) – Either an isometry, or a point representing the center of the ball
radius (number) – the radius od the ball
- geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape.LocalBallShape
Construction
- geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape.center
type: Point
Center of the ball
- geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape.hasUVMap
The UV coordinates corresponds to the spherical coordinates on the sphere… Not sure if that is the smartest choice
- geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.euc.shapes.localBall.LocalBallShape.LocalBallShape.isLocalBallShape
type: boolean
Says that the object inherits from Ball
- class geometries.euc.shapes.localCylinder.LocalCylinderShape.LocalCylinderShape(radius, isom)
Local cylinder shape
Constructor
- Arguments:
radius (number) – the radius of the cylinder
isom (Isometry) – the isometry defining the position of the cylinder. The cylinder is the image by isom of the cylinder going through the origin and directed by the vector (0,0,1)
- geometries.euc.shapes.localCylinder.LocalCylinderShape.LocalCylinderShape.LocalCylinderShape
Constructor
- geometries.euc.shapes.localCylinder.LocalCylinderShape.LocalCylinderShape.vector
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader
- class geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape(location, radius)
Shape of a euclidean local ball Variation using a directed signed distance function. Be careful: it will probably require creeping, otherwise the light ray will jump from the current cell to infinity.
Construction
- Arguments:
location (Isometry|Point) – Either an isometry, or a point representing the center of the ball
radius (number) – the radius od the ball
- geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape.LocalDirectedBallShape
Construction
- geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape.center
type: Point
Center of the ball
- geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape.hasUVMap
The UV coordinates corresponds to the spherical coordinates on the sphere… Not sure if that is the smartest choice
- geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape.isGlobal
type: boolean
Says whether the shape is global. True if global, false otherwise.
- geometries.euc.shapes.localDirectedBall.LocalDirectedBallShape.LocalDirectedBallShape.isLocalBallShape
type: boolean
Says that the object inherits from Ball