Skip to content

Commit ebe4d19

Browse files
authored
Merge pull request #134 from EverseDevelopment/86b7ch6fy/NormalsImportedCAD
Fix normals on Imported CAD files
2 parents 5afef92 + 4e2d5ba commit ebe4d19

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Common_glTF_Exporter/Utils/glTFExportUtils.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,12 @@ public static void AddNormals(Transform transform, PolymeshTopology polymesh, Li
205205
{
206206
var newNormal = transform.OfVector(normal).Normalize();
207207

208-
normals.Add(newNormal.X);
209-
normals.Add(newNormal.Y);
210-
normals.Add(newNormal.Z);
208+
for (int j = 0; j < 3; j++)
209+
{
210+
normals.Add(newNormal.X);
211+
normals.Add(newNormal.Y);
212+
normals.Add(newNormal.Z);
213+
}
211214
}
212215

213216
break;

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ If you're interested in contributing to glTF exporter, just submit a [pull reque
3434
## Installation
3535
Looking to get the revit-glTF-exporter add-in? Check out [Autodesk app store](https://apps.autodesk.com/RVT/es/Detail/Index?id=492952120634946986&appLang=en&os=Win64).
3636

37+
## Sponsors ##
38+
Thanks to all the sponsors that have helped us improve Leia. If you want to be one let us know!
39+
40+
[<img src="https://s3.us-east-1.amazonaws.com/everse.assets/GithubReadme/Visiofy.png">](https://www.visiofy.com/)
41+
3742
## About us ##
3843

3944
We are an international mix of AEC professionals, product designers, and software developers. We work together to transform construction requirements into accurate and partnership-driven technological solutions.

0 commit comments

Comments
 (0)