LocalDirectedHoroballShape

LocalDirectedHoroballShape

Shape of a hyperbolic local horoball The SDF is a directed SDF when the point is inside the horoball. Does not seem to make a huge difference, when rendering cusps as the complement of a horoball (assuming that the creeping is off !)

Constructor

new LocalDirectedHoroballShape(location, offset)

Source:

Construction

Parameters:
Name Type Description
location Isometry | Vector3

the location of the horoball.

  • if location is an Isometry, then the horoball is the image by this isometry of the horoball centered at the point [0,0,1,1]
  • if location is a Vector3, then the horoball is centered at [u_x, u_y,u_z, 1], where u = (u_x,u_y_u_z) is unit vector in the same direction. (seen as a point in the boundary at infinity of H3 in the hyperboloid model)
offset number

the radius od the ball

Classes

LocalDirectedHoroballShape

Members

center

Source:

Center of the ball (at infinity)

isGlobal :boolean

Source:

Says whether the shape is global. True if global, false otherwise.

Type:
  • boolean

isLocalHoroballShape :boolean

Source:

Says that the object inherits from Ball

Type:
  • boolean

offset :number

Source:

Offset. The offset correspond to the image of the origin, by the SDF of the horoball. If the offset is positive, the origin is outside of the horoball

Type:
  • number