module StraightSkeleton::InteriorNode
Public Instance Methods
<=>(other)
click to toggle source
# File lib/nswtopo/geometry/straight_skeleton/interior_node.rb, line 5 def <=>(other) (@travel <=> other.travel) * @nodes.direction end
insert!()
click to toggle source
# File lib/nswtopo/geometry/straight_skeleton/interior_node.rb, line 9 def insert! @normals = @neighbours.map.with_index do |neighbour, index| neighbour.neighbours[1-index] = self if neighbour neighbour.normals[1-index] if neighbour end @nodes.insert self end