Collection<QuadEdge> quadEdges = qes.getEdges(); List<QuadEdgeTriangle> qeTriangles = QuadEdgeTriangle.createOn(qes); Collection<com.vividsolutions.jts.triangulate.quadedge.Vertex> qeVertices =
private QuadEdge findEdge() { Collection edges = subdiv.getEdges(); // assume there is an edge - otherwise will get an exception return (QuadEdge) edges.iterator().next(); }
/** * Gets the edges of the computed triangulation as a {@link MultiLineString}. * * @param geomFact the geometry factory to use to create the output * @return the edges of the triangulation */ public Geometry getEdges(GeometryFactory geomFact) { create(); return subdiv.getEdges(geomFact); }
/** * Gets the edges of the computed triangulation as a {@link MultiLineString}. * * @param geomFact the geometry factory to use to create the output * @return the edges of the triangulation */ public Geometry getEdges(GeometryFactory geomFact) { create(); return subdiv.getEdges(geomFact); }
private QuadEdge findEdge() { Collection edges = subdiv.getEdges(); // assume there is an edge - otherwise will get an exception return (QuadEdge) edges.iterator().next(); }
/** * Gets the edges of the computed triangulation as a {@link MultiLineString}. * * @param geomFact the geometry factory to use to create the output * @return the edges of the triangulation */ public Geometry getEdges(GeometryFactory geomFact) { create(); return subdiv.getEdges(geomFact); }
/** * Gets the edges of the computed triangulation as a {@link MultiLineString}. * * @param geomFact the geometry factory to use to create the output * @return the edges of the triangulation */ public Geometry getEdges(GeometryFactory geomFact) { create(); return subdiv.getEdges(geomFact); }
Collection<QuadEdge> quadEdges = qes.getEdges();
@SuppressWarnings("unchecked") private static Node createEdgesGraphics(QuadEdgeSubdivision quadEdgeSubdivision, PlanarRegionSegmentationRawData rawData) { List<QuadEdge> edges = (List<QuadEdge>) quadEdgeSubdivision.getEdges(); int regionId = rawData.getRegionId(); JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(new TextureColorAdaptivePalette(16)); Point3D planeOrigin = rawData.getOrigin(); Quaternion planeOrientation = rawData.getOrientation(); Color regionColor = OcTreeMeshBuilder.getRegionColor(regionId); for (QuadEdge edge : edges) { Point3D dest = PolygonizerTools.toPointInWorld(edge.dest().getX(), edge.dest().getY(), planeOrigin, planeOrientation); Point3D orig = PolygonizerTools.toPointInWorld(edge.orig().getX(), edge.orig().getY(), planeOrigin, planeOrientation); meshBuilder.addLine(dest, orig, 0.0015, regionColor); } MeshView meshView = new MeshView(meshBuilder.generateMesh()); meshView.setMaterial(meshBuilder.generateMaterial()); meshView.setMouseTransparent(true); return meshView; }