Skip to content

Commit 9c78d79

Browse files
committed
remove some MVectors
1 parent 1711d4e commit 9c78d79

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

src/Basics/_module.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export trailingPartOfName
1717

1818
export neps, sign_eps, radToDeg, degToRad
1919
export getAndCheckFullLibraryPath, getEnvironmentVariable
20-
export zeroMVector, onesMVector, nullMRotation
20+
export zeroMVector
2121
export ZeroMVector
2222
export normalizeVector, BoundingBox
2323

@@ -26,7 +26,7 @@ export listKeys
2626
export deleteItem
2727

2828
export linearMovement
29-
export PositionMVector, RotationMMatrix, assertRotationMatrix
29+
export assertRotationMatrix
3030

3131
using StaticArrays
3232
using LinearAlgebra

src/Basics/constantsAndFunctions.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ end
2424

2525
# MVector / MMatrix
2626
zeroMVector() = MVector{3,Float64}(0.0, 0.0, 0.0)
27-
onesMVector() = MVector{3,Float64}(1.0, 1.0, 1.0)
28-
nullMRotation() = MMatrix{3,3,Float64,9}(1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0)
2927

3028
# Standard constants
3129
const degToRad = pi/180.0
@@ -34,11 +32,6 @@ const ZeroMVector = MVector{3,Float64}(0.0,0.0,0.0)
3432
const NoNameDefined = "_NoNameDefined"
3533

3634

37-
# Standard types
38-
const PositionMVector = MVector{3,Float64}
39-
const RotationMMatrix = MMatrix{3,3,Float64,9}
40-
41-
4235
""" mutable struct BoundingBox - Smallest box that contains a visual element"""
4336
mutable struct BoundingBox
4437
x_min::Float64

src/Shapes/geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ mutable struct Beam <: Modia3D.AbstractGeometry
200200
end
201201

202202
"""
203-
FileMesh(; filename::AbstractString="", scale=Basics.onesMVector(),
203+
FileMesh(; filename::AbstractString="", scale=SVector{3,Float64}(1.0,1.0,1.0),
204204
useMaterialColor::Bool=false, smoothNormals::Bool=false, convexPartition::Bool=false)
205205
206206
Generate a new solid or visual shape representing a mesh.
@@ -234,7 +234,7 @@ mutable struct FileMesh <: Modia3D.AbstractGeometry
234234
volume::Float64
235235
centroidAlgo::SVector{3,Float64}
236236
inertia::SMatrix{3,3,Float64,9}
237-
function FileMesh(; filename::AbstractString="", scale=Basics.onesMVector(),
237+
function FileMesh(; filename::AbstractString="", scale=SVector{3,Float64}(1.0,1.0,1.0),
238238
useMaterialColor::Bool=false, smoothNormals::Bool=false, convexPartition::Bool=false)
239239
if !isfile(filename)
240240
error("FileMesh(\"$filename\",...): file not found.")

0 commit comments

Comments
 (0)