File size: 1,535 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 | import OAI.Geometry.CylinderCovering.Radial.CoordinatesDefinitions
import OAI.Geometry.CylinderCovering.Angular.CapsDefinitions
namespace OAI
noncomputable section
namespace RadialCoordinates
def firstSweep (k : β) : Set BarycentricSpace :=
{v | (β i, v i = 1) β§ β t S : β,
t β Set.Icc 0 1 β§ 0 β€ S β§ S β€ cap k t β§ |v 2 - v 3| β€ 1 β§
v 0 = S * t + k * (v 2 - v 3) * t ^ 2 β§
v 1 = S * (1 - t) - k * (v 2 - v 3) * (1 - t) ^ 2}
def secondSweep (k : β) : Set BarycentricSpace :=
{v | (β i, v i = 1) β§ β r T : β,
r β Set.Icc 0 1 β§ 0 β€ T β§ T β€ cap k r β§ |v 0 - v 1| β€ 1 β§
v 2 = T * r - k * (v 0 - v 1) * r ^ 2 β§
v 3 = T * (1 - r) + k * (v 0 - v 1) * (1 - r) ^ 2}
def firstSweepPoint (k t S p : β) : BarycentricSpace :=
barycentricPoint (S + k * p * angular t)
(S * angular t + k * p * (1 + angular t ^ 2) / 2) p
def secondSweepPoint (k r T q : β) : BarycentricSpace :=
barycentricPoint (1 - T + k * q * angular r) q
(T * angular r - k * q * (1 + angular r ^ 2) / 2)
def firstSweepWithCap (k : β) (R : β β β) : Set BarycentricSpace :=
(fun z : (β Γ β) Γ β => firstSweepPoint k z.1.1 z.1.2 z.2) ''
(AngularCaps.radialParameterSet 0 1 R ΓΛ’ Set.Icc (-1) 1)
def secondSweepWithCap (k : β) (R : β β β) : Set BarycentricSpace :=
(fun z : (β Γ β) Γ β => secondSweepPoint k z.1.1 z.1.2 z.2) ''
(AngularCaps.radialParameterSet 0 1 R ΓΛ’ Set.Icc (-1) 1)
end RadialCoordinates
end
end OAI
|