Skip to content

Commit 6c6f29f

Browse files
authored
Merge branch 'master' into largeMeshPreformace
2 parents 9111637 + 199aae7 commit 6c6f29f

39 files changed

+7986
-595
lines changed

Superbuild/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ ENDIF()
3737
PROJECT(Superbuild)
3838

3939
INCLUDE(${CMAKE_SOURCE_DIR}/Superbuild.cmake)
40+

src/Core/GeometryPrimitives/Vector.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Vector::safe_normal() const
112112
return v;
113113
}
114114

115-
std::istream& operator>>( std::istream& is, Vector& v)
115+
std::istream& SCIRun::Core::Geometry::operator>>( std::istream& is, Vector& v)
116116
{
117117
double x, y, z;
118118
char st;
@@ -194,3 +194,11 @@ const TypeDescription* SCIRun::Core::Geometry::get_type_description(Vector*)
194194
}
195195
return td;
196196
}
197+
198+
Vector SCIRun::Core::Geometry::vectorFromString(const std::string& str)
199+
{
200+
std::istringstream istr(str);
201+
Vector v;
202+
istr >> v;
203+
return v;
204+
}

src/Core/GeometryPrimitives/Vector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ SCISHARE bool operator==(const Vector& v1, const Vector& v2);
152152
SCISHARE bool operator!=(const Vector& v1, const Vector& v2);
153153
SCISHARE std::ostream& operator<<(std::ostream& os, const Vector& p);
154154
SCISHARE std::istream& operator>>(std::istream& os, Vector& p);
155+
SCISHARE Vector vectorFromString(const std::string& str);
155156

156157
inline Vector::Vector()
157158
{

0 commit comments

Comments
 (0)