Search in sources :

Example 6 with PolygonalEditor

use of com.revolsys.geometry.model.editor.PolygonalEditor in project com.revolsys.open by revolsys.

the class MultiPolygonEditorTest method testNotModified.

@Test
public void testNotModified() {
    final PolygonalEditor editor = POLYGONAL.newGeometryEditor();
    editor.setZ(new int[0], 13);
    final Polygonal newGeometry = editor.newGeometry();
    Assert.assertSame(POLYGONAL, newGeometry);
}
Also used : PolygonalEditor(com.revolsys.geometry.model.editor.PolygonalEditor) Polygonal(com.revolsys.geometry.model.Polygonal) Test(org.junit.Test)

Example 7 with PolygonalEditor

use of com.revolsys.geometry.model.editor.PolygonalEditor in project com.revolsys.open by revolsys.

the class MultiPolygonEditorTest method testSetY.

@Test
public void testSetY() {
    final PolygonalEditor editor = POLYGONAL.newGeometryEditor(3);
    editor.setY(1, 1, 1, 10);
    final Polygonal newGeometry = editor.newGeometry();
    Assert.assertNotSame(POLYGONAL, newGeometry);
    Assert.assertEquals(10.0, newGeometry.getY(1, 1, 1), 0.0);
}
Also used : PolygonalEditor(com.revolsys.geometry.model.editor.PolygonalEditor) Polygonal(com.revolsys.geometry.model.Polygonal) Test(org.junit.Test)

Aggregations

PolygonalEditor (com.revolsys.geometry.model.editor.PolygonalEditor)7 Polygonal (com.revolsys.geometry.model.Polygonal)6 Test (org.junit.Test)6