@Override public void resetMatrix() { if (shapeCreated && matrix != null && transformStack != null) { if (family == GROUP) { updateTessellation(); } if (tessellated) { PMatrix mat = popTransform(); while (mat != null) { boolean res = mat.invert(); if (res) { applyMatrixImpl(mat); } else { PGraphics.showWarning("Transformation applied on the shape cannot be inverted"); } mat = popTransform(); } } matrix.reset(); transformStack.clear(); } }
@Override public void resetMatrix() { if (shapeCreated && matrix != null && transformStack != null) { if (family == GROUP) { updateTessellation(); } if (tessellated) { PMatrix mat = popTransform(); while (mat != null) { boolean res = mat.invert(); if (res) { applyMatrixImpl(mat); } else { PGraphics.showWarning("Transformation applied on the shape cannot be inverted"); } mat = popTransform(); } } matrix.reset(); transformStack.clear(); } }