Skip to main content

Implicit Body, Point, Vector, Scalar, Scalar, Integer, 5.30.0

Voxel Grid, Point, Vector

About this Block

What it does: The Ray Cast block creates a vector from a defined point, and outputs the point where the vector intersects the inputted voxel grid. Common uses:
  • Project points on to a Voxel Grid

Example File

Download Example: Ray Cast Ray Cast

Implicit Body, Point, Vector, Scalar, Scalar, Integer, 5.30.0

Computes the intersection between the zero-surface of an implicit and a ray via sphere tracing.

Inputs

NameTypeDescription
Implicit bodyImplicit BodyImplicit body to measure
PointPointPoint to shoot the ray from
DirectionVectorDirection in which to shoot the ray
ToleranceScalarConvergence threshold, needs to be smaller than the thickness you want to measure
LipschitzScalarLipschitz constant of the implicit
Max. iterationsIntegerMaximum number of sphere tracing iterations to perform.

Outputs

Type
Point

Voxel Grid, Point, Vector

Cast a ray to a voxel grid.

Inputs

NameTypeDescription
GridVoxel GridThe voxel grid to ray cast.
PointPointThe origin of the ray to intersect with the voxel grid.
DirectionVectorThe directions of the rays to intersect with the voxel grid.

Outputs

Type
Point