Skip to content

Commit b0950b0

Browse files
author
tpat
committed
Merge branch 'master' of https://github.com/SCIInstitute/SCIRun into dipole_movement
2 parents c38dced + aab1dae commit b0950b0

File tree

18 files changed

+5152
-393
lines changed

18 files changed

+5152
-393
lines changed

src/Core/Algorithms/Visualization/RenderFieldState.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class SCISHARE RenderState
114114
POINT_GLYPH,
115115
SPHERE_GLYPH,
116116
ELLIPSOID_GLYPH,
117+
SUPERELLIPSOID_GLYPH,
117118
BOX_GLYPH,
118119
AXIS_GLYPH,
119120
LINE_GLYPH,

src/Core/GeometryPrimitives/Transform.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,16 @@ Transform::operator=(const Transform& copy)
839839
return *this;
840840
}
841841

842+
std::vector<Vector> Transform::get_column_vectors()
843+
{
844+
std::vector<Vector> column_vectors(3);
845+
for(int i = 0; i < 3; i++)
846+
{
847+
column_vectors[i] = Vector(mat[0][i], mat[1][i], mat[2][i]);
848+
}
849+
return column_vectors;
850+
}
851+
842852
Point
843853
SCIRun::Core::Geometry::operator*(const Transform &t, const Point &d)
844854
{

src/Core/GeometryPrimitives/Transform.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ namespace SCIRun {
147147
/// Persistent I/O.
148148
static PersistentTypeID type_id;
149149
virtual void io(Piostream &stream);
150+
std::vector<Vector> get_column_vectors();
150151
};
151152

152153
SCISHARE Point operator*(const Transform &t, const Point &d);
153154
SCISHARE Vector operator*(const Transform &t, const Vector &d);
154155

155-
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
156+
SCISHARE Tensor operator*(const Transform &t, const Tensor &d);
156157
SCISHARE Tensor operator*(const Tensor &d, const Transform &t);
157158

158159
SCISHARE bool operator==(const Transform& lhs, const Transform& rhs);

0 commit comments

Comments
 (0)