Skip to content

Commit

Permalink
Renamed hull to convexHull in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
buma committed Jun 5, 2015
1 parent 667bf08 commit 1f1df1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -146,7 +146,7 @@ private RouterInfo getRouterInfo(String routerId) {
Graph graph = router.graph; Graph graph = router.graph;
RouterInfo routerInfo = new RouterInfo(); RouterInfo routerInfo = new RouterInfo();
routerInfo.routerId = routerId; routerInfo.routerId = routerId;
routerInfo.polygon = graph.getHull(); routerInfo.polygon = graph.getConvexHull();
routerInfo.buildTime = graph.buildTime; routerInfo.buildTime = graph.buildTime;
return routerInfo; return routerInfo;
} catch (GraphNotFoundException e) { } catch (GraphNotFoundException e) {
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/org/opentripplanner/routing/graph/Graph.java
Expand Up @@ -163,8 +163,8 @@ public class Graph implements Serializable {


private GraphMetadata graphMetadata = null; private GraphMetadata graphMetadata = null;


//Convex hull of all the graph vertices. Generated at Graph build time. //ConvexHull of all the graph vertices. Generated at Graph build time.
private Geometry hull = null; private Geometry convexHull = null;


/** The density center of the graph for determining the initial geographic extent in the client. */ /** The density center of the graph for determining the initial geographic extent in the client. */
private Coordinate center = null; private Coordinate center = null;
Expand Down Expand Up @@ -977,17 +977,17 @@ public boolean containsInOSM(Coordinate c) {
} }


/** /**
* Calculates convex hull of all the vertices during build time * Calculates convexHull of all the vertices during build time
*/ */
public void calculateConvexHull() { public void calculateConvexHull() {
hull = GraphUtils.makeConvexHull(this); convexHull = GraphUtils.makeConvexHull(this);
} }


/** /**
* @return calculated convex hull; * @return calculated convexHull;
*/ */
public Geometry getHull() { public Geometry getConvexHull() {
return hull; return convexHull;


} }


Expand Down

0 comments on commit 1f1df1a

Please sign in to comment.