INTERSECTION  - v14


intersection               <nvar1> {, <nvar2>}
{, p=<pvar>, n=<nvar>}  

Function

Perform an  intersection between two items.  The items can only be Surfaces and Curves.

Parameters        

<nvar1>=

The unique identifier of the first item
 

<nvar2>=

The unique identifier of the second item.
If this parameter is not specified then the intersection is applied comparing the first item against all items that are currently placed under the Partition bar.
 

p=

In the case of Curve-Curve or Curve-Surface intersection the operation returns the intersection points in point variables starting from <pvar>.  The intersection points are ordered on the ascending U value of the first curve argument of the command.
 

n=

In the case of Curve-Curve or Curve-Surface intersection the operation returns the number of computed intersection points in numeric variable <nvar>.

Examples:

    SELECT XF

    ID1=INF(28)

    SELECT XC

    ID2=INF(28)

#

# One vs. One example

    INTERSECTION ID1,ID2,P=P1,N=NPTS

#

# One vs. Many example

    PARTITION A1='Items to be intersected'

    INTERSECTION ID1,P=P1,N=NPTS

Notes

In case of Surface-Surface intersection the operation creates a number of intersection curves and loads them in the workspace.

See also

import


INTERSection


intersection               op1=<frag>, op2=<frag>
{, pf=<file>} {, f=<frag>}
{, m=<pen>} {, $=<dash>} {, m=<thick>}

Function

To create a profile which is curve of intersection between two 3D items.

Parameters

op1=<frag>

The fragment containing the first 3D item
 

op2=<frag>

The fragment containing the second 3D item
 

pf=<file>

Output a description of the profile to a given p_file file
 

f=<frag>

The fragment to be given to the profile created
 

m=<pen> 

The pen to be given to the profile created
 

$=<dash>

The dash to be given to the profile created

   

t=<thick>

The thickness to be given to the profile created

Examples

Kill all

Move p0

Pipe f=1; pd20,u100;

Move d50&n5&w50

Pipe f=2; pd15,e100;

Section op1=1,op2=2,m=4

Notes

The result of the operation is a profile item and, possibly, a file in a p_file format

See Also

section