summaryrefslogtreecommitdiff
path: root/CSXCAD/src/ContinuousStructure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CSXCAD/src/ContinuousStructure.cpp')
-rw-r--r--CSXCAD/src/ContinuousStructure.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/CSXCAD/src/ContinuousStructure.cpp b/CSXCAD/src/ContinuousStructure.cpp
index a0c17a1..2882b04 100644
--- a/CSXCAD/src/ContinuousStructure.cpp
+++ b/CSXCAD/src/ContinuousStructure.cpp
@@ -373,11 +373,11 @@ bool ContinuousStructure::isGeometryValid()
return true;
}
-double* ContinuousStructure::GetObjectArea()
+double* ContinuousStructure::GetObjectArea(CSProperties::PropertyType type)
{
CSPrimitives* prim=NULL;
bool AccBound;
- std::vector<CSPrimitives*> vPrimitives=GetAllPrimitives();
+ std::vector<CSPrimitives*> vPrimitives=GetAllPrimitives(type);
for (size_t i=0;i<vPrimitives.size();++i)
{
prim=vPrimitives.at(i);
@@ -631,6 +631,11 @@ const char* ContinuousStructure::ReadFromXML(const char* file)
return ReadFromXML(&doc);
}
+std::string ContinuousStructure::ReadFromXML(std::string file)
+{
+ return ReadFromXML(file.c_str());
+}
+
void ContinuousStructure::UpdateIDs()
{
for (size_t i=0;i<vProperties.size();++i)