meshRayCast¶
Returns the face id, parameter, u and v values, intersection position and normal from an input mesh, origin point and direction.
Inputs¶
Name | Type | Default | Description |
---|---|---|---|
inMesh | MeshRefPort | Input mesh | |
inOrigin | VectorPort | V3d(0, 0, 0) | Ray origin |
inDirection | VectorPort | V3d(0, 1, 0) | Ray direction |
inBothDirections | BooleanPort | False | If the ray should go in both directions |
Outputs¶
Name | Type | Default | Description |
---|---|---|---|
outIntersect | BooleanPort | False | if there is an intersection |
outParameter | DoublePort | 0.0 | Output parameter |
outFaceId | LongPort | 0 | Output face id |
outU | DoublePort | 0.0 | Output u |
outV | DoublePort | 0.0 | Output v |
outNormal | VectorPort | V3d(0, 1, 0) | Output normal |
outPosition | VectorPort | V3d(0, 1, 0) | Output position |