bugfix for tesspolygon outline plot

This commit is contained in:
wyq 2021-08-10 16:59:57 +08:00
parent 3c00ec89b3
commit 796992bae6
2 changed files with 5 additions and 3 deletions

View File

@ -2269,15 +2269,15 @@ public class Plot3DGL extends Plot implements GLEventListener {
if (tessPolygon.hasHole()) {
List<PointZ> newPList;
gl.glBegin(GL2.GL_LINE_STRIP);
for (int h = 0; h < tessPolygon.getHoleLines().size(); h++) {
gl.glBegin(GL2.GL_LINE_STRIP);
newPList = (List<PointZ>) tessPolygon.getHoleLines().get(h);
for (int j = 0; j < newPList.size(); j++) {
p = newPList.get(j);
gl.glVertex3f(transform.transform_x((float) p.X), transform.transform_y((float) p.Y), transform.transform_z((float) p.Z));
}
gl.glEnd();
}
gl.glEnd();
}
gl.glDisable(GL2.GL_POLYGON_OFFSET_FILL);
}

View File

@ -21,10 +21,12 @@
<OpenedFiles>
<OpenedFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\cluster\dbscan_1.py"/>
<OpenedFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning\convolution\mnist_cnn.py"/>
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl\layer_ydir.py"/>
</OpenedFiles>
<RecentFiles>
<RecentFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\cluster\dbscan_1.py"/>
<RecentFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning\convolution\mnist_cnn.py"/>
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl\layer_ydir.py"/>
</RecentFiles>
</File>
<Font>
@ -32,5 +34,5 @@
</Font>
<LookFeel DockWindowDecorated="true" LafDecorated="true" Name="FlatDarkLaf"/>
<Figure DoubleBuffering="true"/>
<Startup MainFormLocation="-7,0" MainFormSize="1406,836"/>
<Startup MainFormLocation="-7,0" MainFormSize="1327,740"/>
</MeteoInfo>