Skip to content

Commit

Permalink
Added Revlove Spline Node
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarEmaraDev committed Mar 12, 2017
1 parent 3a02940 commit 3ad3e79
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/user_guide/nodes/spline/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ Spline
Get Spline Samples <get_spline_samples>
Curve Object Output <curve_object_output>
Loft Splines <loft_splines>
Revolve Spline <revolve_spline>

.. image:: images/spline_overview.png
44 changes: 44 additions & 0 deletions docs/user_guide/nodes/spline/revolve_spline.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Revolve Splines
===============

Description
-----------
This node create a mesh from the input splines by revolving the profile spline around the axis spline.

.. image:: images/revolve_spline_node.png
:width: 160pt

Options
-------

- **Project** - This option will sample some points from the profile spline, project them on the axis spline and then revolve each point around its projection.This method output a nicer result especially if the axis and profile splines are different in length but it is much slower due to the projection process.
- **Same Parameter** - This option will sample some point from both the profile and the axis splines and revolve each point around its corresponding point.This method have difficulties especially if the axis and the profile splines are different in length since corresponding points will be far from each other and thus resulting distortion however this method is genrally much faster than the Project method.

Illustration
------------

.. image:: images/revolve_spline_node_illustration.png

Inputs
------

- **Axis** - A spline that is used as the source of pivots for the revolving.
- **Profile** - A spline in which spline samples are originated for revolving.
- **Spline Samples** - The number of points sampled for revolving.
- **Surface Splines** - The number of points sampled during revolving.

Outputs
-------

- **Vertices** - A vector list that contain the vertices locations of the output mesh.
- **Polygons** - A polygon indices list that carry the polygons information of the output mesh.

Advanced Node Settings
----------------------

- N/A

Examples of Usage
-----------------

.. image:: gifs/revolve_spline_node_example.gif

0 comments on commit 3ad3e79

Please sign in to comment.