no doc
Design: LineSegments
no doc
Flags : cached
Expression : `const g = this.getGraph(); const allEdges = g.edges(); let source = ""; let target = ""; let sourcePoint; let targetPoint; let result = [];
for (let j = 0; j < allEdges.length; j++) { edge = allEdges[j]; source = g.source(edge); target = g.target(edge); if(source != target){ sourcePoint = g.getNodeAttribute(g.source(edge),'data'); targetPoint = g.getNodeAttribute(g.target(edge),'data'); result.push({"edge": edge, "source": source, "target": target, "sourcePoint": sourcePoint, "targetPoint": targetPoint}); } } result = R.removeDuplicates(result); return result;`
The graph object, an instance of a Graphology graph.
Flags : cached
Expression : const Graph = require('graphology'); const graph = new Graph(); this.resetNodeID(); const nodes = this.nodeData.map(n => { const id = this.nextNodeID(); return graph.addNode(id, { data: n }); }); this.buildEdges(graph); return graph;
The distance below which two vertices are considered equivalent.
Flags : cached, parameter
Default expression : 0.001
Adds a sequence of points to the current graph. Takes care of inserting the last point into any existing edge it falls on.
Flags : method (Note this is uncached)
Adds an undirected edge between source and target, with optional associated data. Returns the edge name. If data is not supplied, then this calls buildEdgeAttributes to create the default data.
Flags : method (Note this is uncached)
no doc
Flags : method (Note this is uncached)
This processes the raw edge connectivity, and adds the line and weight attributes.
Flags : method (Note this is uncached)
no doc
Flags : method (Note this is uncached)
Finds a node given a location. Returns undefined if not found.
Flags : method (Note this is uncached)
Internal Use Only
Flags : method (Note this is uncached)
Copy a graph into this one, including all attributes.
Flags : method (Note this is uncached)
Returns an object of the form {dist: mindist, index: 0, nearPoint: p<x,y,z>, edgeName: "foo"} Where index is the index into the points input.
Flags : method (Note this is uncached)
Internal Use Only
Flags : method (Note this is uncached)
Returns the length of the given path.
Flags : method (Note this is uncached)
Internal Use Only
Flags : method (Note this is uncached)
PointLineGraph (d.1.0.0)
Mixins: NodeGraph, BaseAssembly
PointLineGraph is an extension of NodeGraph with the following additional characteristics: 1. It is geometric; the nodes are Points and the edges are Lines, with default weight of their length.