Skip to content

Commit

Permalink
Calculate Normals Mk2 (#4041)
Browse files Browse the repository at this point in the history
* mesh select new numpy normals

* Calculate Normals Mk2

* update example
  • Loading branch information
vicdoval authored Apr 11, 2021
1 parent 4572937 commit af80870
Show file tree
Hide file tree
Showing 12 changed files with 580 additions and 290 deletions.
2 changes: 1 addition & 1 deletion docs/nodes/analyzer/analyzer_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Analyzers
mesh_select_mk2
select_similar
proportional
normals
normals_mk2
nearest_point_on_mesh
bvh_overlap_polys
object_insolation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,25 @@ Inputs
This node has the following inputs:

- **Vertices**
- **Edges**
- **Polygons**

Options
-------

Offers different calculation methods:
Bmesh (standard Blender, slowest),
Mean Weighted Equally (Fastest),
Mean Weighted Based on Triangle Area
Mean Weighted Edge Length Reciprocal
Mean Weighted by Sine

Outputs
-------

This node has the following outputs:

- **FaceNormals**. Normals of faces. This output will be empty if **Polygons** input is empty.
- **VertexNormals**. Normals of vertices.
- **Face Normals**. Normals of faces. This output will be empty if **Polygons** input is empty.
- **Vertex Normals**. Normals of vertices.

Examples of usage
-----------------
Expand All @@ -37,4 +46,3 @@ Visualization of vertex normals for bezier curve:
Normals can be also calculated for closed curves:

.. image:: https://cloud.githubusercontent.com/assets/284644/5989202/f8632a44-a9a0-11e4-8745-19065eb13bcd.png

41 changes: 0 additions & 41 deletions docs/nodes/vector/normal.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/nodes/vector/vector_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Vector
attractor
axis_input_mk2
drop
normal
interpolation_stripes
interpolation_mk3
math_mk3
Expand Down
3 changes: 1 addition & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@
SvDistancetLineLineNode
SvPathLengthMk2Node
SvOrigins
GetNormalsNode
VectorNormalNode
SvGetNormalsNodeMk2
SvIntersectLineSphereNode
SvIntersectCircleCircleNode
SvIntersectPlanePlaneNode
Expand Down
Loading

0 comments on commit af80870

Please sign in to comment.