[#1646] Increase fin root resolution

This commit is contained in:
SiboVG 2022-09-06 23:03:37 +02:00
parent 9b5baa4020
commit 48b177688e
2 changed files with 4 additions and 3 deletions

View File

@ -1073,7 +1073,7 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
// for anything more complicated, increase the count:
if ((body instanceof Transition) && (((Transition)body).getType() != Shape.CONICAL)) {
// the maximum precision to enforce when calculating the areas of fins (especially on curved parent bodies)
final double xWidth = 0.0025; // width (in meters) of each individual iteration
final double xWidth = 0.005; // width (in meters) of each individual iteration
divisionCount = (int) Math.ceil(intervalLength / xWidth);
// When creating body curves, don't create more than this many divisions. -- only relevant on very large components

View File

@ -34,8 +34,9 @@ public class FinRenderer {
gl.glTranslated(-bounds.min.x, -bounds.min.y - finSet.getBodyRadius(), 0);
gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);
Coordinate finPoints[] = finSet.getFinPointsWithRoot();
Coordinate tabPoints[] = finSet.getTabPoints();
Coordinate[] finPoints = finSet.getFinPointsWithRoot();
Coordinate[] tabPoints = finSet.getTabPoints();
{
gl.glPushMatrix();