TensorPatch.java (pdfbox-2.0.23-src) | : | TensorPatch.java (pdfbox-2.0.24-src) | ||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
class TensorPatch extends Patch | class TensorPatch extends Patch | |||
{ | { | |||
/** | /** | |||
* Constructor of a patch for type 7 shading. | * Constructor of a patch for type 7 shading. | |||
* | * | |||
* @param tcp 16 control points | * @param tcp 16 control points | |||
* @param color 4 corner colors | * @param color 4 corner colors | |||
*/ | */ | |||
protected TensorPatch(Point2D[] tcp, float[][] color) | protected TensorPatch(Point2D[] tcp, float[][] color) | |||
{ | { | |||
super(tcp, color); | super(color); | |||
controlPoints = reshapeControlPoints(tcp); | controlPoints = reshapeControlPoints(tcp); | |||
level = calcLevel(); | level = calcLevel(); | |||
listOfTriangles = getTriangles(); | listOfTriangles = getTriangles(); | |||
} | } | |||
/* | /* | |||
order the 16 1d points to a square matrix which is as the one described | order the 16 1d points to a square matrix which is as the one described | |||
in p.199 of PDF3200_2008.pdf rotated 90 degrees clockwise | in p.199 of PDF3200_2008.pdf rotated 90 degrees clockwise | |||
*/ | */ | |||
private Point2D[][] reshapeControlPoints(Point2D[] tcp) | private Point2D[][] reshapeControlPoints(Point2D[] tcp) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |