Grid SOP

From TouchDesigner 088 Wiki

02 GridSOP.jpg


The Grid SOP allows you to create grids and rectangles using polygons, a mesh, Bzier and NURBS surfaces, or multiple lines using open polygons.

PythonIcon.png gridSOP_Class


Primitive Type /type - Select from the following types. For information on the different types, see the Geometry Types section. Depending on the primitive type chosen, some SOP options may not apply.

  • Polygon -
  • Mesh -
  • NURBS Surface -
  • Bzier Surface -

Connectivity /surftype - (Results only viewable for polygons and meshes).

  • Rows - Creates horizontal lines.
  • Columns - Creates vertical lines.
  • Rows & Cols - Both Rows and Columns. Looks like Quads in wireframe display, but all polygons are open (if the primitive type is polygon). Compare them in the Model Editor.
  • Triangles - Build the grid with Triangles.
  • Quadrilaterals - Generates sides composed of quadrilaterals (default).
  • Alternating Triangles - Generates triangles that are opposed; similar to the Triangles option.

Orientation Plane /orient - Specifies on which plane the Grid is built.

Size /sizex /sizey - The X and Y scale of the grid.

Center /t - Center of grid in X, Y, and Z.

Rows & Cols /rows /cols - The number of rows and columns. Rows are horizontal lines; Columns are vertical lines. Two rows by two columns makes a square or rectangle. For example, one row and two columns makes a single line if Connectivity is set to Rows.

For NURBS and Bzier surfaces, the Rows & Cols refer to the surface hull construction, and as such, the number of Rows and Cols should not be less than the Order in U or V.

Order /orderu /orderv

  • U Order Degree of spline basis +1 in the U parametric direction.
  • V Order Degree of spline basis +1 in the V parametric direction.


Interpolation /interpu /interpv - These options are used for higher-order (i.e. NURBS, Bzier) surfaces.

  • End-point interpolate in U Extends the surface to touch the end point in the U direction.
  • End-point interpolate in V Extends the surface to touch the end point in the V direction.

Texture Coordinates /texture - This adds uv coordinates to the geometry created by the Font SOP.

  • Off - no uv coordinates added
  • Rows and Columns - uv coordinates added based on Rows and Columns in the geometry.

Inputs / Geometry Types

Polygon, Mesh, NURBS, Bzier Surfaces

Standard Options and Local Variables