File size: 1,783 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | import OAI.Geometry.RuledCovering.Model
namespace OAI
noncomputable section
open Set MeasureTheory
open scoped InnerProductSpace
namespace CylinderCovering.BeamStrip
abbrev Plane := EuclideanSpace โ (Fin 2)
abbrev Space := EuclideanSpace โ (Fin 3)
def vec (x y z : โ) : Space := !โ[x, y, z]
def vertical : Space := vec 0 0 1
def denominator (q : โ) : โ := Real.sqrt (2 * (1 + q ^ 2))
def normal (q : โ) : Space :=
vec ((1 + q) / denominator q) ((1 - q) / denominator q) 0
def axis (q : โ) : Space :=
vec ((1 - q) / denominator q) (-(1 + q) / denominator q) 0
def rectangle (q A l r : โ) : Set Space :=
{z | โ s โ Icc (-A) A, โ t โ Icc l r, z = s โข normal q + t โข vertical}
def cylinder (q A l r : โ) : Set Space :=
{z | โ b โ rectangle q A l r, โ s : โ, z = b + s โข axis q}
def area (S : Set Space) : โ := (Measure.euclideanHausdorffMeasure 2 S).toReal
def strip (ฮฒ M a b : โ) (W q : โ โ โ) : Set Space :=
{z | โ x y t : โ, z = vec (ฮฒ*x) (ฮฒ*y) t โง t โ Icc a b โง
|x| โค M โง |y| โค M โง |(1+q t)*x+(1-q t)*y| โค W t}
def IsHorizontalRectangle (C : RuledApproximation.Cylinder) : Prop :=
โ q A l r : โ, 0 < A โง l < r โง C.axis = axis q โง
((fun z : ((Submodule.span โ ({C.axis} : Set Space))แฎ) => (z : Space)) '' C.base) = rectangle q A l r
def IsRectangle (B : Set Space) : Prop :=
โ c u v : Space, inner โ u v = 0 โง u โ 0 โง v โ 0 โง
B = {z | โ s โ Icc (0 : โ) 1, โ t โ Icc (0 : โ) 1,
z = c + s โข u + t โข v}
def HasRectangularBase (C : RuledApproximation.Cylinder) : Prop :=
IsRectangle ((fun z : ((Submodule.span โ ({C.axis} : Set Space))แฎ) =>
(z : Space)) '' C.base)
end CylinderCovering.BeamStrip
end
end OAI
|