-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* soft and hard Meshes * removed headers * removed unused code
- Loading branch information
1 parent
f490ec8
commit 8a93680
Showing
8 changed files
with
112 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
#include "ElementBody.h" | ||
|
||
void ElementBody::AddFace(std::vector<double> vertices, int materialIndex) | ||
{ | ||
if (meshes.find(materialIndex) == meshes.end()) | ||
{ | ||
Mesh mesh; | ||
mesh.materialIndex = materialIndex; | ||
meshes[materialIndex] = mesh; | ||
} | ||
|
||
meshes[materialIndex].AddFace(vertices); | ||
} | ||
|
||
void to_json(nlohmann::json& j, const ElementBody& body) | ||
{ | ||
std::vector<Mesh> displayValue; | ||
for (const auto& m : body.meshes) | ||
displayValue.push_back(m.second); | ||
|
||
j = displayValue; | ||
j = body.meshes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
struct FaceVertex | ||
{ | ||
double x; | ||
double y; | ||
double z; | ||
int archicadVertexIndex; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
|
||
#include "FaceVertex.h" | ||
#include <vector> | ||
|
||
struct MeshFace | ||
{ | ||
std::vector<FaceVertex> vertices; | ||
int size; | ||
}; |