Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Name

ctp — Cut polydata or grid with a plane

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

ctp [x | y | z axisvalue] [nor] [cen] [ref] [cur] [scaoff] [scaon] [clean] [ncs]

Description

Will produce a cutline from a grid or polydata set.

Arguments

x | y | z axisvalue

Cut with a plane crossing x | y | z axis.

nor n1 n2 n3

Cut with plane having normals n1 n2 n3.

cen xcen ycen zcen

Put the plane center in xcen ycen zcen.

ref

Cut through the reference point.

cur

Cut through the cursor position.

scaon

Generation of cut scalars.

scaoff

No generation of cut scalars.

clean tolerance

Set a clean tolerance for clipping.

ncs

Bypass cleaning and stripping in the clipping algorithm.

Examples

Ex.1: Cutting a grid crossing x axis

No Format
bgColor#eeeeee
borderWidth1
win demo          ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
        spe bgc whi       ;# Specify background color to white
     
  mak ran 11        ;# Make 11 random points
        grp 222 222       ;# Make grid of dimension 222 x 222
       
map               ;# Map the grid

       ctp x 453000      ;# Cut the grid crossing x axis at 453000
        col bla           ;# Black color
 
      pol 2             ;# Draw cut line with line width 2
{noformat}

The

...

above

...

example

...

produces

...

this

...

image.

...

Image Added
Generating cut line in a grid

See also

clp - Clip with closed line, cut - Cut grid data, ref - Reference point, gen - Generate grid, pla - Plane generation, zap - Zap (or snap) to data