Topography Analysis
TopoColor.zip
1KB
Binary
1
TopoMesh=TopoRev.Mesh;
2
TopoVer=TopoMesh.VertexPositions;
3
TopoInd=TopoMesh.FaceIndices;
4
MesVerA=List.GetItemAtIndex(TopoVer,TopoInd.A);
5
MesVerB=List.GetItemAtIndex(TopoVer,TopoInd.B);
6
MesVerC=List.GetItemAtIndex(TopoVer,TopoInd.C);
7
MesSur=Surface.ByPerimeterPoints(List.Transpose([MesVerA,MesVerB,MesVerC]));
8
9
//Color
10
Cols=[Color.ByARGB(255,255,0,0),Color.ByARGB(255,0,0,255),Color.ByARGB(255,0,255,0)];
11
ColInd=[0,0.95,1];
12
13
//Surface Normal Angle To Vertical
14
MesNor=MesSur.NormalAtPoint(MesSur.PointAtParameter(0.5,0.5));
15
NorAng=MesNor.Dot(Vector.ZAxis());
Copied!
TopoColor-nodes1.zip
3KB
Binary
Last modified 1yr ago
Copy link