Maya Scripts
Script Details
Curve Surface Intersect (CSI)
Author: Marcel Haasnoot
Date: 2007-02-20
Synopsis:
This script determines the intersection point between a curve and a surface. It iteratively searches for the smallest distance between a point on the curve and the nearest point on the surface. It makes use of the closestPointOnSurface node and the iterative algorithm of the ppdcc script (also in the MEL database).
Usage:
Source the script file in Maya to activate the CSI command.
First select the curve, then the surface, then invoke the CSI command.
It will determine the point of intersection in local and global coordinates, and the normal of the surface at that point. It will also draw a line from the origin to the point of intersection.
First select the curve, then the surface, then invoke the CSI command.
It will determine the point of intersection in local and global coordinates, and the normal of the surface at that point. It will also draw a line from the origin to the point of intersection.
Script:
curve_surface_intersect_csi.mel Download
- View source
Keywords:
curve surface intersection
Reactions
Messages 1 - 4 (4)
- bruce
2008-03-11 03:54:32i am getting the following error and am using a nurb surface.
Warning: 'loftedSurfaceShape721.worldSpace[0]' is already connected to 'projection_node.inputSurface'
i am trying to find the intersection between a nurb surface and an intersection curve...
any thoughts - i - Frank G.
2008-01-14 20:45:42Thanks, I will give it a try. Any way of getting this tool to work with polygons too? - Thijs
2008-01-12 12:10:53Please make sure you use a NURBS surface. Using a Polygonal surface will result in the ".ws" error message. - Frank G.
2008-01-12 04:58:13What is the ".ws" attribute in the script? I get the message below.
// Error: The source attribute '.ws' cannot be found.
previous
-
next