Compare commits
2 Commits
better-cxx
...
v0.9.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2af1d84b25 | ||
|
|
b5f348e37e |
@@ -659,7 +659,7 @@ static bool exportFaceGroupToShape(
|
|||||||
const size_t nIndexs = shape.mesh.indices.size();
|
const size_t nIndexs = shape.mesh.indices.size();
|
||||||
if (nIndexs % 3 == 0) {
|
if (nIndexs % 3 == 0) {
|
||||||
shape.mesh.normals.resize(shape.mesh.positions.size());
|
shape.mesh.normals.resize(shape.mesh.positions.size());
|
||||||
for (register size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) {
|
for (size_t iIndices = 0; iIndices < nIndexs; iIndices += 3) {
|
||||||
float3 v1, v2, v3;
|
float3 v1, v2, v3;
|
||||||
memcpy(&v1, &shape.mesh.positions[shape.mesh.indices[iIndices] * 3],
|
memcpy(&v1, &shape.mesh.positions[shape.mesh.indices[iIndices] * 3],
|
||||||
sizeof(float3));
|
sizeof(float3));
|
||||||
|
|||||||
Reference in New Issue
Block a user