Intersection of a Line and a Sphere - MAXScript function
Developer: Royal Ghost
A MAXScript function based on Paul Bourke's technique for finding the points where a line crosses a sphere or circle.
What Intersection of a Line and a Sphere - MAXScript function does
The function, written in MAXScript for 3ds Max, calculates line and sphere or circle intersections using an approach from Paul Bourke. The result is computed from the line and sphere parameters.
The discriminant tells the story: below zero means no intersection, zero means tangent at one point, and above zero gives two points. For a segment, u values reveal whether it lies outside or inside the sphere. For circles, the four points must have no three in a line and must not lie in one plane. It is aimed at scripters needing geometry calculations in their own tools.
Key features
- Line and sphere intersection from Paul Bourke's method
- Discriminant identifies no hit, tangent or two intersections
- u values distinguish segments inside or outside the sphere
- Circle case with stated point conditions
FAQ
Is Intersection of a Line and a Sphere - MAXScript function free?
Yes, Intersection of a Line and a Sphere - MAXScript function is free. Click the Download Free button on this PluginDex page to get it at no cost.
Which apps does Intersection of a Line and a Sphere - MAXScript function work with?
Intersection of a Line and a Sphere - MAXScript function works with 3ds Max.
Who develops Intersection of a Line and a Sphere - MAXScript function?
Intersection of a Line and a Sphere - MAXScript function is developed by Royal Ghost. You can find their other plugins on the Royal Ghost page of this catalog.
Where can I download Intersection of a Line and a Sphere - MAXScript function?
Download Intersection of a Line and a Sphere - MAXScript function free from this PluginDex page using the Download Free button. You get free access without paying.