( begin auto-generated from bezierDetail.xml ) Sets the resolution at which Beziers display. The default value is 20. This function is only useful when using the P3D renderer as the default P2D renderer does not use this information. ( end auto-generated ) @webref shape:curves @param detail resol
(int detail)
| 3321 | * @see PGraphics#curveTightness(float) |
| 3322 | */ |
| 3323 | public void bezierDetail(int detail) { |
| 3324 | bezierDetail = detail; |
| 3325 | |
| 3326 | if (bezierDrawMatrix == null) { |
| 3327 | bezierDrawMatrix = new PMatrix3D(); |
| 3328 | } |
| 3329 | |
| 3330 | // setup matrix for forward differencing to speed up drawing |
| 3331 | splineForward(detail, bezierDrawMatrix); |
| 3332 | |
| 3333 | // multiply the basis and forward diff matrices together |
| 3334 | // saves much time since this needn't be done for each curve |
| 3335 | //mult_spline_matrix(bezierForwardMatrix, bezier_basis, bezierDrawMatrix, 4); |
| 3336 | //bezierDrawMatrix.set(bezierForwardMatrix); |
| 3337 | bezierDrawMatrix.apply(bezierBasisMatrix); |
| 3338 | } |
| 3339 | |
| 3340 | |
| 3341 |
no test coverage detected