com.vividsolutions.jts.triangulate.quadedge.QuadEdgeSubdivision.getEdges()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中com.vividsolutions.jts.triangulate.quadedge.QuadEdgeSubdivision.getEdges方法的一些代码示例,展示了QuadEdgeSubdivision.getEdges的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QuadEdgeSubdivision.getEdges方法的具体详情如下:
包路径:com.vividsolutions.jts.triangulate.quadedge.QuadEdgeSubdivision
类名称:QuadEdgeSubdivision
方法名:getEdges

QuadEdgeSubdivision.getEdges介绍

[英]Gets the collection of base QuadEdges (one for every pair of vertices which is connected).
[中]获取基本四边形边的集合(每对连接的顶点一个)。

代码示例

代码示例来源:origin: opentripplanner/OpenTripPlanner

Collection<QuadEdge> quadEdges = qes.getEdges();
List<QuadEdgeTriangle> qeTriangles = QuadEdgeTriangle.createOn(qes);
Collection<com.vividsolutions.jts.triangulate.quadedge.Vertex> qeVertices =

代码示例来源:origin: com.vividsolutions/jts

private QuadEdge findEdge() {
  Collection edges = subdiv.getEdges();
  // assume there is an edge - otherwise will get an exception
  return (QuadEdge) edges.iterator().next();
}

代码示例来源:origin: com.vividsolutions/jts

/**
 * 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);
}

代码示例来源:origin: com.vividsolutions/jts

/**
 * 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);
}

代码示例来源:origin: com.vividsolutions/jts-core

private QuadEdge findEdge() {
  Collection edges = subdiv.getEdges();
  // assume there is an edge - otherwise will get an exception
  return (QuadEdge) edges.iterator().next();
}

代码示例来源:origin: com.vividsolutions/jts-core

/**
 * 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);
}

代码示例来源:origin: com.vividsolutions/jts-core

/**
 * 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);
}

代码示例来源:origin: matsim-org/matsim

Collection<QuadEdge> quadEdges = qes.getEdges();

代码示例来源:origin: us.ihmc/robot-environment-awareness-visualizers

@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;
}

相关文章