Polyreduce SOP

From TouchDesigner Documentation
Jump to: navigation, search

Summary
[edit]

The Polyreduce SOP reduces a high detail polygonal model into one consisting of fewer polygons. The second input's polygons represent feature edges. They are matched to the input mesh by point numbers.

The methods to reduce polygonal models are:

  • A percentage of their former size
  • A specfic number of polys (within a few)
  • According to distance from a camera

Note that as it requires (and outputs) a triangular mesh, the polygon count may increase as a result of this operation.

A second input for feature edges is provided.

PythonIcon.pngpolyreduceSOP_Class


Parameters - Page

Polygons reduce - The polygons which will be candidates for simplification. Other polygons which share points with these might also be affected.  

Features creases - Which polygons are feature edges.  


Parameters - Percentage Page

Choose reduction level with a percentage.

Keep % percentage -  


Parameters - Number Page

Specify a desired number of polygons.

Keep # numpolys -  


Parameters - Distance Page

Reduce polygons based on distance to an object.

Object obj - The object to use as a reference.  

Dist. Threshhold distance - The world distance at which the polygons should be left at full detail.  

Minimum % minpercent - A lower bound to the level of reduction.  


Stiffen Border borderweight - Without any constraints, the edges of planar surfaces can erode. This controls a bias which penalizes such erosion.  

Stiffen Features creaseweight - The amount of penalty to add to the feature edges being eroded.  

Equalize Edges lengthweight - This bias penalizes the removal of long edges. It tends to reduce high aspect ratio triangles at the expense of more uniform reduction.  

Prevent Mesh Inversion meshinvert - When enabled, each reduction is tested to see if it would flip a triangle normal. While encurring a slight cost, the results are almost always worth it.  

Pre-Triangulate triangulate - As only triangular polygons will be reduced, this option will automatically triangulate the input polygons.  

Prevent Cracking keepedges - This prohibits the removal of any edge that occurs at the boundary of the polygons. This ensures no cracks develop with unreduced areas.  

Use Original Points originalpoints - When it collapses edges, it will use one of the two original points instead of finding the optimal interior point.  

Operator Inputs

  • Input 0 -
  • Input 1 -

TouchDesigner Build:

SOPs
Add • Alembic • Align • Arm • Attribute Create • Attribute • Basis • Blend • Bone Group • Boolean • Box • Bridge • Cache • Cap • Capture Region • Capture • Carve • CHOP to • Circle • Clay • Clip • Convert • Copy • CPlusPlus • Creep • Curveclay • Curvesect • DAT to • Deform • Delete • Divide • Extrude • Facet • File In • Fillet • Fit • Font • Force • Fractal • Grid • Group • Hole • Import Select • In • Introduction To SOPs id • Inverse Curve • Iso Surface • Join • Joint • Kinect • Lattice • Limit • Line • Line Thick • LOD • LSystem • Magnet • Material • Merge • Metaball • Model • Noise • Null • Object Merge • Oculus Rift • OpenVR • Out • Particle • Point • Polyloft • Polypatch • Polyreduce • Polyspline • Polystitch • Primitive • Profile • Project • Rails • Experimental:Raster • Ray • Rectangle • Refine • Resample • Revolve • Script • Select • Sequence Blend • Skin • Sort • Sphere • Spring • Sprite • Stitch • Subdivide • Superquad • Surfsect • Sweep • Switch • Text • Texture • Torus • Trace • Trail • Transform • Trim • Tristrip • Tube • Twist • Vertex • Wireframe • ZED

An Operator Family that reads, creates and modifies 3D polygons, curves, NURBS surfaces, spheres, meatballs and other 3D surface data.

The component types that are used to render 3D scenes: Geometry Component contain the 3D shapes to render, plus Camera, Light, Ambient Light, Null, Bone, Handle and other component types.