PF3d::Tri
Inherits Struct < Value < Object
Constructors
new(p1 : PF2d::Vec3(Float64), p2 : PF2d::Vec3(Float64), p3 : PF2d::Vec3(Float64), shade : Float64 = 1.0, normal : PF2d::Vec3(Float64) | Nil = nil, clipped : Bool = false)
Sourcenew(p1 : PF2d::Vec3(Float64), p2 : PF2d::Vec3(Float64), p3 : PF2d::Vec3(Float64), t1 : PF2d::Vec3(Float64), t2 : PF2d::Vec3(Float64), t3 : PF2d::Vec3(Float64), shade : Float64 = 1.0, clipped : Bool = false)
SourceInstance methods
Split the triangle based on which points are inside of a given plane Returns a tuple of 0-2 triangles
clipped
Sourcemap_points
Sourcep1
Sourcep2
Sourcep3
Sourceshade
Sourceshade=(shade : Float64)
Sourcesplit(p1, p2, p3, t1, t2, t3)
Sourcet1
Sourcet2
Sourcet3
Sourcez=(value : Float64)
Source