public class TransformMesh extends TransformMesh
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
boundingBox |
av, defaultPointFactory, defaultPointMatchFactory, height, va, width
Constructor and Description |
---|
TransformMesh(CoordinateTransform t,
int numX,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
void |
applyInverseInPlace(double[] location)
Catch non-invertible locations outside of the meshes boundaries and
transfer them with the affine defined by the `closest' affine (the affine
whose summed up control points distances to location are smallest).
|
AffineModel2D |
closestSourceAffine(double[] location)
Return the
AffineModel2D used by the triangle enclosing or
closest to the passed target location. |
AffineModel2D |
closestTargetAffine(double[] location)
Return the
AffineModel2D used by the triangle enclosing or
closest to the passed target location. |
Rectangle |
getBoundingBox() |
addTriangle, apply, applyInPlace, applyInverse, bounds, createInverse, findClosestSourcePoint, findClosestTargetPoint, getAV, getHeight, getVA, getWidth, illustrateBestRigidSVG, illustrateMesh, illustrateMeshSVG, illustrateTriangle, init, isInConvexTargetPolygon, isInSourcePolygon, numY, scale, updateAffine, updateAffines
protected final Rectangle boundingBox
public TransformMesh(CoordinateTransform t, int numX, double width, double height)
public final Rectangle getBoundingBox()
public void applyInverseInPlace(double[] location) throws NoninvertibleModelException
applyInverseInPlace
in interface InverseCoordinateTransform
applyInverseInPlace
in class TransformMesh
NoninvertibleModelException
public AffineModel2D closestSourceAffine(double[] location)
AffineModel2D
used by the triangle enclosing or
closest to the passed target location.location
- public AffineModel2D closestTargetAffine(double[] location)
AffineModel2D
used by the triangle enclosing or
closest to the passed target location.location
- Copyright © 2015–2021 Fiji. All rights reserved.