# SquishParameters class

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class SquishParameters : IDisposable
```

Parameters used by the 'Squish' command flattening algorithm

## Constructors

- [SquishParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/ctor.md): Initializes a new instance with default values. Initial values are same as Default.

## Finalizer

- [~SquishParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [AbsoluteLimit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/absolutelimit.md): If -1.0 <= AnsoluteLimit < 0.0, then an absolute compression limit is applied so that (2d length)/(3d length) >= abs(AbsoluteLimit). In particular, Absolute = -1.0, then no compression is permitted(2d length) >= (3d length). If 0.0 < m_absolute_limit <= 1.0 then an absolute stretching limit is applied so that (2d length)/(3d length) <= 1/abs(AbsoluteLimit). Examples: AbsoluteLimit 1.0: no stretching, (2d length) <= 1.0*(3d length) 0.5: cap on stretching, 0.5*(2d length) <= (3d length) -0.5: cap on compression, (2d length) >= 0.5*(3d length) -1.0: no compression, (2d length) >= 1.0*(3d length)
- [Algorithm](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/algorithm.md): The flattening algorithm to use: Geometric: (scale independent)the "spring" constant is proportional to 1/L^2 and the result is independent of scale. PhysicalStress: (scale dependent) the "spring" constant is proportional to 1/L.
- [BoundaryCompressConstant](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/boundarycompressconstant.md): Spring constant for compressed boundary edges times the rest length
- [BoundaryStretchConstant](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/boundarystretchconstant.md): Spring constant for stretched boundary edges
- [Default](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/default.md): (static) Gets the default Squishing parameters
- [InteriorCompressConstant](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/interiorcompressconstant.md): Spring constant for compressed interior edges times the rest length
- [InteriorStretchConstant](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/interiorstretchconstant.md): Spring constant for stretched boundary edges times the rest length
- [PreserveTopology](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/preservetopology.md): the mesh has coincident vertices and PreserveTopology is true, then the flattening is based on the mesh's topology and coincident vertices will remain coincident. Otherwise coincident vertices are free to move apart.
- [SaveMapping](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/savemapping.md): If SaveMapping is true, then ON_SquishMesh() will save extra information on the squished mesh so 3d points and curves near the input mesh can be mapped to the squished mesh and 2d points and curves on the squished mesh can be mapped back to the 3d mesh.

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [GetSpringConstants](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/getspringconstants.md): See if the spring constants could have been set with SetSpringConstants().
- [SetDeformation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/setdeformation.md): Sets the squish deformation characteristics
- [SetSpringConstants](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.squishparameters/setspringconstants.md): A simplified interface for setting the Stretch and Compression spring constants
