createNodeLink#nodeGeometryMode¶
Summary¶
Set nodeGeometryMode and edgeGeometryMode independently. Nodes default to "points" and edges to "lines". Use point and line modes when you want the lightest-weight graph view, and use the solid geometry modes when you want shaded node or edge volume.
Syntax¶
NodeLink.nodeGeometryMode: "points" | "spheres" | "ellipsoids" | "cubes"
NodeLink.edgeGeometryMode: "lines" | "cylinders"
const nodeMode = nodeLink.nodeGeometryMode;
const edgeMode = nodeLink.edgeGeometryMode;
Returns¶
Reading these properties returns the current node and edge geometry modes for this nodelink.
Type Details¶
NodeLink.nodeGeometryModepoints: screen-facing points for large node counts.spheres: spheres scaled uniformly by the X radius when supplied.ellipsoids: ellipsoids scaled independently by the XYZ radii when supplied.cubes: cubes scaled uniformly by the X radius when supplied.NodeLink.edgeGeometryModelines: line rendering for lightweight connectivity views.cylinders: shaded cylindrical edges.
Notes¶
Without a radius source, solid nodes use nodeSize as their uniform scale. With radii, nodeSize multiplies that per-node scale. Changing either geometry mode emits a "visual" event.