private static Graph ProjectGraph(this Graph graph, SpatialProjection projection) { Graph spatialGraph = graph.DeepClone(); //set representation based on projection return(spatialGraph); }
private static Graph RelationCurves(this Graph graph, SpatialProjection projection) { //these should set representationfragment on relations foreach (IRelation relation in graph.Relations) { if (relation.Curve == null) { IElement0D source = graph.Entities[relation.Source] as IElement0D; IElement0D target = graph.Entities[relation.Target] as IElement0D; relation.Curve = new Line() { Start = source.IGeometry(), End = target.IGeometry() }; } } return(graph); }