Shapes

Global shapes

class geometries.sol.shapes.fakeBall.FakeBallShape.FakeBallShape(location, radius)

Fake ball in Sol.

Constructor.

Arguments:
  • location (Isometry|Point) – the location of the ball

  • radius (number) – the radius of the ball

geometries.sol.shapes.fakeBall.FakeBallShape.FakeBallShape.FakeBallShape

Constructor.

geometries.sol.shapes.fakeBall.FakeBallShape.FakeBallShape.center

type: Point

Center of the ball

class geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape(isom)

x half space (or y half space)

Constructor.

Arguments:
  • isom (Isometry) – the location of the half space The half space is the image by isom of the half space {x < 0} In particular the half space {y < 0} can be obtained by applying a flip

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.XHalfSpaceShape

Constructor.

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.origin

type: Point

The origin on the boundary of the half space

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.testX

type: Vector4

An auxiliary vector to compute the SDF

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.testZ

type: Vector4

An auxiliary vector to compute the SDF

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.uDir

type: Vector

U-direction (for UV coordinates)

geometries.sol.shapes.xHalfSpace.XHalfSpaceShape.XHalfSpaceShape.vDir

type: Vector

V-direction (for UV coordinates)

class geometries.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape(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.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape.ZHalfSpaceShape

Constructor.

geometries.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape.origin

type: Point

The origin on the boundary of the half space

geometries.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape.test

type: Vector4

A vector to compute the SDF

geometries.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape.uDir

type: Vector

U-direction (for UV coordinates)

geometries.sol.shapes.zHalfSpace.ZHalfSpaceShape.ZHalfSpaceShape.vDir

type: Vector

V-direction (for UV coordinates)

Local shapes

class geometries.sol.shapes.localCube.LocalCubeShape.LocalCubeShape(location, sides, smoothness=0.01)

Local cube in Sol.

Constructor.

Arguments:
  • location (Isometry|Point) – the location of the cube

  • sides (Vector3|number) – the length of the sides

  • smoothness (number) – the coefficient to smooth the side of the cube (exponential method)

geometries.sol.shapes.localCube.LocalCubeShape.LocalCubeShape.LocalCubeShape

Constructor.

geometries.sol.shapes.localCube.LocalCubeShape.LocalCubeShape.testX

type: Vector4

A vector to compute the SDF

geometries.sol.shapes.localCube.LocalCubeShape.LocalCubeShape.testY

type: Vector4

A vector to compute the SDF

geometries.sol.shapes.localCube.LocalCubeShape.LocalCubeShape.testZ

type: Vector4

A vector to compute the SDF

class geometries.sol.shapes.localFakeBall.LocalFakeBallShape.LocalFakeBallShape(location, radius)

Fake ball in Sol.

Constructor.

Arguments:
  • location (Isometry|Point) – the location of the ball

  • radius (number) – the radius of the ball

geometries.sol.shapes.localFakeBall.LocalFakeBallShape.LocalFakeBallShape.LocalFakeBallShape

Constructor.

geometries.sol.shapes.localFakeBall.LocalFakeBallShape.LocalFakeBallShape.center

type: Point

Center of the ball

class geometries.sol.shapes.localXAxis.LocalXAxisShape.LocalXAxisShape(location, radius)

Local x Axis in Sol.

Constructor.

Arguments:
  • location (Isometry|Point) – the location of the axis

  • radius (number) – the radius of the cylinder around the axis

geometries.sol.shapes.localXAxis.LocalXAxisShape.LocalXAxisShape.LocalXAxisShape

Constructor.

class geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape(isom)

x half space (or y half space)

Constructor.

Arguments:
  • isom (Isometry) – the location of the half space The half space is the image by isom of the half space {x < 0} In particular the half space {y < 0} can be obtained by applying a flip

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.LocalXHalfSpaceShape

Constructor.

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.origin

type: Point

The origin on the boundary of the half space

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.testX

type: Vector4

An auxiliary vector to compute the SDF

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.testZ

type: Vector4

An auxiliary vector to compute the SDF

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.uDir

type: Vector

U-direction (for UV coordinates)

geometries.sol.shapes.localXYHalfSpace.LocalXHalfSpaceShape.LocalXHalfSpaceShape.vDir

type: Vector

V-direction (for UV coordinates)

class geometries.sol.shapes.localZAxis.LocalZAxisShape.LocalZAxisShape(location, sides, smoothness=0.01)

Local z Axis in Sol.

Constructor.

Arguments:
  • location (Isometry|Point) – the location of the rod (only the xy coordinates matter)

  • sides (Vector2|number) – the length of the xy-sides

  • smoothness (number) – the coefficient to smooth the side of the cube (exponential method)

geometries.sol.shapes.localZAxis.LocalZAxisShape.LocalZAxisShape.LocalZAxisShape

Constructor.

class geometries.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape(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.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape.LocalZHalfSpaceShape

Constructor.

geometries.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape.origin

type: Point

The origin on the boundary of the half space

geometries.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape.test

type: Vector4

A vector to compute the SDF

geometries.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape.uDir

type: Vector

U-direction (for UV coordinates)

geometries.sol.shapes.localZHalfSpace.LocalZHalfSpaceShape.LocalZHalfSpaceShape.vDir

type: Vector

V-direction (for UV coordinates)

class geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape(isom, thickness)

Euclidean half space

Constructor.

Arguments:
  • isom (Isometry) – the location of the half space

  • thickness (number) – the thickness of the slab The slab is the image by isom of the half space {abs(z) < thickness} The UV directions are the images by isom of e_x and e_y

geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape.LocalZSlabShape

Constructor.

geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape.origin

type: Point

The origin on the boundary of the half space

geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape.test

type: Vector4

A vector to compute the SDF

geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape.uDir

type: Vector

U-direction (for UV coordinates)

geometries.sol.shapes.localZSlab.LocalZSlabShape.LocalZSlabShape.vDir

type: Vector

V-direction (for UV coordinates)