Centers Polygons

Functionality

Analizing geometry and finding centers of polygons, normals (from global zero), normals from local centers of polygons and matrices that find polygons rotation. Not works with edges.

Inputs

Vertices and Polygons from object that we analizing.

Outputs

Normals is normals from global zero coordinates, vector. Norm_abs is normals shifted to centers of polygons. Origins centers of polygons. Centers matrices that has rotation and location of polygons.

Example of usage

Centers_of_polygons_normals.jpg Centers_of_polygons_normalsabs.jpg Centers_of_polygons_locations.jpg Centers_of_polygons_matrices.jpg

Problems

The code of matrix rotation based on Euler rotation, so when you rotate to plane X-oriented, it makes wrong. We need spherical coordinates and quaternion rotation here, needed help or something