Diameter¶
Functionality¶
This node calculates the diameter of input set of vertices.
It can calculate diameter in two ways:
General diameter, i.e. maximum distance between any two vertices from input set.
Diameter along specified direction (axis), i.e. the length of the projection of whole input vertices set to specified direction.
Inputs¶
This node has the following inputs:
Vertices - vertices to calculate diameter of. This input is mandatory for the node to function.
Direction - direction, along which diameter should be calculated. If this input is not connected, then the node will calculate “general diameter” of input vertices set.
Outputs¶
This node has one output:
Diameter - calculated diameter of vertices set.
See also¶
Analyzers-> Bounding Box
Analyzers-> Aligned Bounding Box
Examples of usage¶
Front View:
Generator-> Suzanne
Generator-> Box
Generator-> Segment
Analyzers-> Distance Point Line
Analyzers-> Bounding Box
Vector-> Vector In
Vector-> Vector Out
SCALAR, NEG: Vector-> Vector Math
Matrix-> Matrix In
Matrix-> Matrix Normal
Viz-> Viewer Draw
Suzanne has “general diameter” of 2.73:
Diameter of Suzanne along some diagonal direction is 2.44. Here the direction is drawn as green line, and the projection of Suzanne to that direction is marked with red dots: