[#1646] Increase fin root resolution
This commit is contained in:
parent
9b5baa4020
commit
48b177688e
@ -1073,7 +1073,7 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
// for anything more complicated, increase the count:
|
// for anything more complicated, increase the count:
|
||||||
if ((body instanceof Transition) && (((Transition)body).getType() != Shape.CONICAL)) {
|
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)
|
// 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);
|
divisionCount = (int) Math.ceil(intervalLength / xWidth);
|
||||||
|
|
||||||
// When creating body curves, don't create more than this many divisions. -- only relevant on very large components
|
// When creating body curves, don't create more than this many divisions. -- only relevant on very large components
|
||||||
|
|||||||
@ -34,8 +34,9 @@ public class FinRenderer {
|
|||||||
gl.glTranslated(-bounds.min.x, -bounds.min.y - finSet.getBodyRadius(), 0);
|
gl.glTranslated(-bounds.min.x, -bounds.min.y - finSet.getBodyRadius(), 0);
|
||||||
gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);
|
gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);
|
||||||
|
|
||||||
Coordinate finPoints[] = finSet.getFinPointsWithRoot();
|
Coordinate[] finPoints = finSet.getFinPointsWithRoot();
|
||||||
Coordinate tabPoints[] = finSet.getTabPoints();
|
Coordinate[] tabPoints = finSet.getTabPoints();
|
||||||
|
|
||||||
{
|
{
|
||||||
gl.glPushMatrix();
|
gl.glPushMatrix();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user