diff --git a/docs/nodes/pulga_physics/pulga_align_force.rst b/docs/nodes/pulga_physics/pulga_align_force.rst index 402f5144fb..da36bfb7e8 100644 --- a/docs/nodes/pulga_physics/pulga_align_force.rst +++ b/docs/nodes/pulga_physics/pulga_align_force.rst @@ -1,6 +1,9 @@ Pulga Align Force ================= +.. image:: https://github.com/nortikin/sverchok/assets/14288520/a14c8ff6-0b9e-4887-8b23-bbbf78453732 + :target: https://github.com/nortikin/sverchok/assets/14288520/a14c8ff6-0b9e-4887-8b23-bbbf78453732 + Functionality ------------- @@ -17,22 +20,34 @@ The force magnitude will be: 1/(Distance to the power of Decay) * 1/(number of Input ----- -**Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. - -**Decay**: How the force decays with distance. - -**Max Distance**: Distance under the force will be applied. +- **Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. +- **Decay**: How the force decays with distance. +- **Max Distance**: Distance under the force will be applied. Options ------- -**Mode**: Algorithm used to calculate attractions. Offers 'Brute Force' and 'Kd-tree' +**Mode**: Algorithm used to calculate attractions. Offers '**Brute Force**' and '**Kd-tree**' -- Kd-tree: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding +- **Kd-tree**: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding -- Brute-Force: This mode is much slower but does not need any dependencies to work. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + :target: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + +- **Brute-Force**: This mode is much slower but does not need any dependencies to work. Examples -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_align_force/blender_sverchok_pulga_align_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/4308e392-2386-4146-a409-391ea2f780ee + :target: https://github.com/nortikin/sverchok/assets/14288520/4308e392-2386-4146-a409-391ea2f780ee + +* Generator-> :doc:`Plane ` +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Random Force ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/b761e016-aa50-405d-806a-1f3fdc9d158f + :target: https://github.com/nortikin/sverchok/assets/14288520/b761e016-aa50-405d-806a-1f3fdc9d158f \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_angle_force.rst b/docs/nodes/pulga_physics/pulga_angle_force.rst index 25cb4a8952..6aeb2f9325 100644 --- a/docs/nodes/pulga_physics/pulga_angle_force.rst +++ b/docs/nodes/pulga_physics/pulga_angle_force.rst @@ -1,6 +1,9 @@ Pulga Angle Force ================= +.. image:: https://github.com/nortikin/sverchok/assets/14288520/1113aff9-3b2a-430d-8a13-0fc10e4e9516 + :target: https://github.com/nortikin/sverchok/assets/14288520/1113aff9-3b2a-430d-8a13-0fc10e4e9516 + Functionality ------------- @@ -12,20 +15,24 @@ The node will apply a force to preserve the defined angles between edges or poly Input ----- -**Edges**. - -**Stiffness**: Strength of the angle force. - -**Rest Angle**: Angle when the force will be 0. If 0 is the input value the rest angle will be calculated from the start position +- **Edges**. +- **Stiffness**: Strength of the angle force. +- **Rest Angle**: Angle when the force will be 0. If 0 is the input value the rest angle will be calculated from the start position Options ------- **Mode**: Chose between edges and polygons, note that with Polygon Mode only two faces per edge will be used. - - Examples -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_angle_force/blender_sverchok_pulga_angle_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/532f2f65-b338-43d6-b5b5-9a9caf6fa687 + :target: https://github.com/nortikin/sverchok/assets/14288520/532f2f65-b338-43d6-b5b5-9a9caf6fa687 + +* Generator-> :doc:`NGon ` +* Generator-> :doc:`Line ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Random Force ` \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_attraction_force.rst b/docs/nodes/pulga_physics/pulga_attraction_force.rst index 1dcb26d21a..63bb299857 100644 --- a/docs/nodes/pulga_physics/pulga_attraction_force.rst +++ b/docs/nodes/pulga_physics/pulga_attraction_force.rst @@ -1,9 +1,18 @@ Pulga Attraction Force ====================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/021f3670-9c2c-4380-8f18-8da7847c541b + :target: https://github.com/nortikin/sverchok/assets/14288520/021f3670-9c2c-4380-8f18-8da7847c541b + Functionality ------------- + .. image:: https://github.com/nortikin/sverchok/assets/14288520/625ed986-40aa-4f10-95b3-545c06bfc890 + :target: https://github.com/nortikin/sverchok/assets/14288520/625ed986-40aa-4f10-95b3-545c06bfc890 + + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Generator-> :doc:`Plane ` + This node creates a force to be applied with the Pulga Physics Solver node. The force will be applied when de particles (vertices) are farer than the sum of particle radius. @@ -12,27 +21,37 @@ The force direction will be the difference of the vertices location The force magnitude will be: 1/(Distance to the power of Decay) * Masses product * Force Strength + Input ----- -**Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. - -**Decay**: How the force decays with distance (regular gravity will have a decay value of 2) - -**Max Distance**: Distance under the force will be applied. +- **Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. +- **Decay**: How the force decays with distance (regular gravity will have a decay value of 2) +- **Max Distance**: Distance under the force will be applied. Options ------- -**Mode**: Algorithm used to calculate attractions. Offers 'Brute Force' and 'Kd-tree' +**Mode**: Algorithm used to calculate attractions. Offers '**Brute Force**' and '**Kd-tree**' -- Kd-tree: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding +- **Kd-tree**: this is the fastest mode but in order to work it needs '**Scipy**' and '**Cython**' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding -- Brute-Force: This mode is much slower but does not need any dependencies to work. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + :target: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + +- **Brute-Force**: This mode is much slower but does not need any dependencies to work. **Stop on Collision**: When enabled the attraction force will be disabled when particles are colliding, preventing overlapping. Example -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_attraction_force/blender_sverchok_pulga_attraction_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/22362156-9033-437d-aed0-b67457ba1cff + :target: https://github.com/nortikin/sverchok/assets/14288520/22362156-9033-437d-aed0-b67457ba1cff + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`IcoSphere ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Drag Force ` diff --git a/docs/nodes/pulga_physics/pulga_attractors_force_mk2.rst b/docs/nodes/pulga_physics/pulga_attractors_force_mk2.rst index 111b6e8646..3f3b50ca1a 100644 --- a/docs/nodes/pulga_physics/pulga_attractors_force_mk2.rst +++ b/docs/nodes/pulga_physics/pulga_attractors_force_mk2.rst @@ -1,9 +1,15 @@ Pulga Attractors Force ====================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/969228cd-c56d-4d47-8d13-a37b31319285 + :target: https://github.com/nortikin/sverchok/assets/14288520/969228cd-c56d-4d47-8d13-a37b31319285 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/4980768f-580e-4220-8575-73c8f5c8611d + :target: https://github.com/nortikin/sverchok/assets/14288520/4980768f-580e-4220-8575-73c8f5c8611d + This node creates a force to be applied with the Pulga Physics Solver node. Mode @@ -16,57 +22,108 @@ Point Points that will Attract/Repel the system particles (vertices) +.. image:: https://github.com/nortikin/sverchok/assets/14288520/06975305-e41f-4fa1-a13c-e5dfc4bb0928 + :target: https://github.com/nortikin/sverchok/assets/14288520/06975305-e41f-4fa1-a13c-e5dfc4bb0928 + Point Inputs ------------ -**Location**: Position of the attractor points. +- **Location**: Position of the attractor points. +- **Max. Distance**: Distance under the force will be applied. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c214a6d0-b002-482b-ace2-da3c4231cae4 + :target: https://github.com/nortikin/sverchok/assets/14288520/c214a6d0-b002-482b-ace2-da3c4231cae4 -**Max. Distance**: Distance under the force will be applied. +- **Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... -**Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c032761e-a24a-4469-99c6-13681a480436 + :target: https://github.com/nortikin/sverchok/assets/14288520/c032761e-a24a-4469-99c6-13681a480436 Line ----- Lines that will Attract/Repel the system particles (vertices) +.. image:: https://github.com/nortikin/sverchok/assets/14288520/b6e13955-eb1c-4589-a3b2-2db0737b5f97 + :target: https://github.com/nortikin/sverchok/assets/14288520/b6e13955-eb1c-4589-a3b2-2db0737b5f97 + Line Inputs ----------- -**Location**: A point on the Line. - -**Direction**: Direction of the Line. +- **Location**: A point on the Line. +- **Direction**: Direction of the Line. +- **Max. Distance**: Distance under the force will be applied. +- **Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... -**Max. Distance**: Distance under the force will be applied. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/baebc767-fbdf-4260-b67c-17385f4ddda5 + :target: https://github.com/nortikin/sverchok/assets/14288520/baebc767-fbdf-4260-b67c-17385f4ddda5 -**Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... + .. image:: https://github.com/nortikin/sverchok/assets/14288520/8c607df0-407c-4480-b7fb-3574eaa35276 + :target: https://github.com/nortikin/sverchok/assets/14288520/8c607df0-407c-4480-b7fb-3574eaa35276 Plane ----- Plane that will Attract/Repel the system particles (vertices) +.. image:: https://github.com/nortikin/sverchok/assets/14288520/907216e2-d9c9-41d5-890c-1f43743dc4dc + :target: https://github.com/nortikin/sverchok/assets/14288520/907216e2-d9c9-41d5-890c-1f43743dc4dc + Plane Inputs ------------ -**Location**: A point on the Line. +- **Location**: A point on the Line. +- **Normal**: Normal of the Plane. +- **Max. Distance**: Distance under the force will be applied. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/ebdaa4ce-1e41-4da6-a2d1-c7f8ef4785ed + :target: https://github.com/nortikin/sverchok/assets/14288520/ebdaa4ce-1e41-4da6-a2d1-c7f8ef4785ed -**Normal**: Normal of the Plane. +- **Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... -**Max. Distance**: Distance under the force will be applied. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/5d935bfa-0f4c-43c0-b2d7-32e30e5671a3 + :target: https://github.com/nortikin/sverchok/assets/14288520/5d935bfa-0f4c-43c0-b2d7-32e30e5671a3 -**Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... +Examples +-------- +Trajectories of vertices repelled by vertice in zero coords: +.. image:: https://github.com/nortikin/sverchok/assets/14288520/e8199160-7bc8-4ffa-982a-cb8cfc0eee9d + :target: https://github.com/nortikin/sverchok/assets/14288520/e8199160-7bc8-4ffa-982a-cb8cfc0eee9d + +* Generator-> :doc:`Plane ` +* Number-> :doc:`Number Range ` +* Vector-> :doc:`Vector In ` +* Matrix-> :doc:`Matrix In ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` -Examples -------- -Trajectories of vertices repelled by three locations: +Trajectories of vertices repelled by 5 locations: -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_attractors_force/blender_sverchok_pulga_attractors_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/1d51f0c2-ab86-4d67-9904-eafdf6e7500a + :target: https://github.com/nortikin/sverchok/assets/14288520/1d51f0c2-ab86-4d67-9904-eafdf6e7500a +* Generator-> :doc:`Segment ` +* Generator-> :doc:`NGon ` +* Generator-> :doc:`Circle ` +* Number-> :doc:`Number Range ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +-------- Trajectories of vertices attracted by three locations: -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_attractors_force/blender_sverchok_pulga_attractors_force_example_02.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/0fa1ce67-39b4-47f8-98c5-2a560d84f385 + :target: https://github.com/nortikin/sverchok/assets/14288520/0fa1ce67-39b4-47f8-98c5-2a560d84f385 + +* Generator-> :doc:`Segment ` +* Generator-> :doc:`NGon ` +* Generator-> :doc:`Circle ` +* Number-> :doc:`Number Range ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + diff --git a/docs/nodes/pulga_physics/pulga_boundaries_force.rst b/docs/nodes/pulga_physics/pulga_boundaries_force.rst index 8937be0e90..3a4fe05dd0 100644 --- a/docs/nodes/pulga_physics/pulga_boundaries_force.rst +++ b/docs/nodes/pulga_physics/pulga_boundaries_force.rst @@ -1,6 +1,9 @@ Pulga Boundaries Force ====================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/952405a8-ad93-4310-84a9-a90913080d2f + :target: https://github.com/nortikin/sverchok/assets/14288520/952405a8-ad93-4310-84a9-a90913080d2f + Functionality ------------- @@ -11,41 +14,162 @@ The node will apply a constrain each vertex into a defined boundaries. Options & Inputs ---------------- +Scheme for options: + **Mode**: Defines how boundaries are defined. -- Box: Given a list of vertices it will calculate their bounding box and use it as limit of the simulation +- **Box**: Given a list of vertices it will calculate their bounding box and use it as limit of the simulation Inputs: Vertices (Bounding Box) -- Sphere: Run the simulation into a spherical space. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/1d611b74-e8e4-4f54-878c-06991d3fe955 + :target: https://github.com/nortikin/sverchok/assets/14288520/1d611b74-e8e4-4f54-878c-06991d3fe955 + + * Generator-> :doc:`Box ` + * Generator-> :doc:`Random Vector ` + * Generator-> :doc:`IcoSphere ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/fd7bf5e5-0fc9-48c9-8492-ff64b6ac4c61 + :target: https://github.com/nortikin/sverchok/assets/14288520/fd7bf5e5-0fc9-48c9-8492-ff64b6ac4c61 + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/ae5e14ba-5f32-4c0f-8b3f-96d4cc39f04d + :target: https://github.com/nortikin/sverchok/assets/14288520/ae5e14ba-5f32-4c0f-8b3f-96d4cc39f04d + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/ef2353c4-d7c8-4bb4-9b95-fff64fad2e28 + :target: https://github.com/nortikin/sverchok/assets/14288520/ef2353c4-d7c8-4bb4-9b95-fff64fad2e28 + + +- **Sphere**: Run the simulation into a spherical space. Inputs: Center and radius -- Sphere (Surface): Run the simulation into a spherical surface + .. image:: https://github.com/nortikin/sverchok/assets/14288520/410adf33-3c7b-47d0-943e-2af24a93615c + :target: https://github.com/nortikin/sverchok/assets/14288520/410adf33-3c7b-47d0-943e-2af24a93615c + + * Generator-> :doc:`Plane ` + * Generator-> :doc:`IcoSphere ` + * Transform-> :doc:`Randomize ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + if source points inside sphere then result spread over volume of sphere: + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/2a1c7f8d-b9af-43c0-adeb-fd91455b2b29 + :target: https://github.com/nortikin/sverchok/assets/14288520/2a1c7f8d-b9af-43c0-adeb-fd91455b2b29 + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/854a3a7c-8c11-4655-ac05-c8ddb989dcc5 + :target: https://github.com/nortikin/sverchok/assets/14288520/854a3a7c-8c11-4655-ac05-c8ddb989dcc5 + + Points out of a boundary sphere try occupy nearest surface. Points inside boundary sphere try occupy volume of boundary sphere: + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c2653d81-85e6-4e89-9b99-af982017e987 + :target: https://github.com/nortikin/sverchok/assets/14288520/c2653d81-85e6-4e89-9b99-af982017e987 + + * Generator-> :doc:`Plane ` + * Generator-> :doc:`IcoSphere ` + * Transform-> :doc:`Randomize ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/2d01169c-91c2-47e9-b59b-7f56232df131 + :target: https://github.com/nortikin/sverchok/assets/14288520/2d01169c-91c2-47e9-b59b-7f56232df131 + +- **Sphere (Surface)**: Run the simulation into a spherical surface Inputs: Center and radius -- Plane: Run the simulation into a defined plane + Like boundary **Sphere** but spread only on surface of boundary sphere: + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/31ff3637-d9b8-49a0-b771-ece6b266efd5 + :target: https://github.com/nortikin/sverchok/assets/14288520/31ff3637-d9b8-49a0-b771-ece6b266efd5 + + * Generator-> :doc:`Plane ` + * Generator-> :doc:`IcoSphere ` + * Transform-> :doc:`Randomize ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + +- **Plane**: Run the simulation into a defined plane Inputs: Center and Normal -- Mesh (Surface): Run simulation in the surface of a mesh + .. image:: https://github.com/nortikin/sverchok/assets/14288520/14e61808-7c30-4a77-bb0f-f1fbd0005073 + :target: https://github.com/nortikin/sverchok/assets/14288520/14e61808-7c30-4a77-bb0f-f1fbd0005073 + + * Generator-> :doc:`Plane ` + * Generator-> :doc:`IcoSphere ` + * Generator-> :doc:`Random Vector ` + * Matrix-> :doc:`Matrix In ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/679a2d88-e659-4281-946f-3d2651f31e5e + :target: https://github.com/nortikin/sverchok/assets/14288520/679a2d88-e659-4281-946f-3d2651f31e5e + +- **Mesh** (Surface): Run simulation in the surface of a mesh Inputs: Vertices and Polygons -- Mesh (Volume): Run the simulation inside a mesh + .. image:: https://github.com/nortikin/sverchok/assets/14288520/8f2019ac-d819-467b-8fdc-3587373473c9 + :target: https://github.com/nortikin/sverchok/assets/14288520/8f2019ac-d819-467b-8fdc-3587373473c9 + + * Generator-> :doc:`Torus ` + * Generator-> :doc:`Random Vector ` + * Matrix-> :doc:`Matrix In ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/28f12c4a-cfa6-42d8-92f3-a76f19c53b55 + :target: https://github.com/nortikin/sverchok/assets/14288520/28f12c4a-cfa6-42d8-92f3-a76f19c53b55 + +- **Mesh (Volume)**: Run the simulation inside a mesh Inputs: Vertices and Polygons -- Solid (Surface): Run simulation in the surface of a solid (requires _FreeCAD) + .. image:: https://github.com/nortikin/sverchok/assets/14288520/4925a438-e77c-4721-8299-b25ea3cc54f0 + :target: https://github.com/nortikin/sverchok/assets/14288520/4925a438-e77c-4721-8299-b25ea3cc54f0 + + * Generator-> :doc:`Torus ` + * Generator-> :doc:`Random Vector ` + * Matrix-> :doc:`Matrix In ` + * List->List Main-> :doc:`List Join ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + * Pulga Physics-> :doc:`Pulga Collision Force ` + * Pulga Physics-> :doc:`Pulga Drag Force ` + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/0f0a0ddb-688e-4c17-a108-9a7572713f04 + :target: https://github.com/nortikin/sverchok/assets/14288520/0f0a0ddb-688e-4c17-a108-9a7572713f04 + +- **Solid (Surface)**: Run simulation in the surface of a solid (requires _FreeCAD) Inputs: Solid -- Solid (Volume): Run the simulation inside a solid (requires _FreeCAD) +- **Solid (Volume)**: Run the simulation inside a solid (requires _FreeCAD) Inputs: Solid -- Solid Face: Run the simulation the surface of a solid face (requires _FreeCAD) +- **Solid Face**: Run the simulation the surface of a solid face (requires _FreeCAD) Inputs: Solid Face @@ -55,11 +179,22 @@ Options & Inputs Examples -------- -Performing simulation in the surface of a torus: - -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_boundaries_force/blender_sverchok_pulga_boundaries_force_example_01.png - - -Performing simulation in the surface of a plane and inside a bounding box: - -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_boundaries_force/blender_sverchok_pulga_boundaries_force_example_02.png +Performing simulation in the surface of a plane and inside a mesh: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/d0e52c78-8d4b-4514-ae67-0f9e2f4c6dc0 + :target: https://github.com/nortikin/sverchok/assets/14288520/d0e52c78-8d4b-4514-ae67-0f9e2f4c6dc0 + +* Generator-> :doc:`Box ` +* Generator-> :doc:`IcoSphere ` +* Generator-> :doc:`Random Vector ` +* Surfaces-> :doc:`Plane (Surface) ` +* Surfaces-> :doc:`Evaluate Surface ` +* Vector-> :doc:`Vector In ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Collision Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/52bc7f13-5ac3-4426-baa4-5851a1d6e322 + :target: https://github.com/nortikin/sverchok/assets/14288520/52bc7f13-5ac3-4426-baa4-5851a1d6e322 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_collision_force.rst b/docs/nodes/pulga_physics/pulga_collision_force.rst index 018a845081..f37f87c4b5 100644 --- a/docs/nodes/pulga_physics/pulga_collision_force.rst +++ b/docs/nodes/pulga_physics/pulga_collision_force.rst @@ -1,6 +1,9 @@ Pulga Collision Force ===================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/211c68f3-e0b1-4de8-93f5-45bf09367729 + :target: https://github.com/nortikin/sverchok/assets/14288520/211c68f3-e0b1-4de8-93f5-45bf09367729 + Functionality ------------- @@ -12,6 +15,9 @@ The force direction will be the difference of the verts location The force magnitude will be: (Distance - Radius Sum) * Force Strength +.. image:: https://github.com/nortikin/sverchok/assets/14288520/0d6e942b-c487-4746-aac2-632f389fcaaf + :target: https://github.com/nortikin/sverchok/assets/14288520/0d6e942b-c487-4746-aac2-632f389fcaaf + Input ----- @@ -20,13 +26,29 @@ Input Options ------- -**Mode**: Algorithm used to calculate collisions. Offers 'Brute Force' and 'Kd-tree' +**Mode**: Algorithm used to calculate collisions. Offers '**Brute Force**' and '**Kd-tree**' + +- **Kd-tree**: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. -- Kd-tree: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + :target: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 -- Brute-Force: This mode is much slower but does not need any dependencies to work. +- **Brute-Force**: This mode is much slower but does not need any dependencies to work. Examples -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_collision_force/blender_sverchok_pulga_collision_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/07394e3c-c5bc-4280-98ab-9c0e5349b839 + :target: https://github.com/nortikin/sverchok/assets/14288520/07394e3c-c5bc-4280-98ab-9c0e5349b839 + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`IcoSphere ` +* Number-> :doc:`Random Num Gen ` +* List->List Main-> :doc:`List Length ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Drag Force ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/e9d04904-58a5-4e8f-b8c1-61fd51c545a5 + :target: https://github.com/nortikin/sverchok/assets/14288520/e9d04904-58a5-4e8f-b8c1-61fd51c545a5 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_drag_force.rst b/docs/nodes/pulga_physics/pulga_drag_force.rst index 44b10bff14..14d55b69e2 100644 --- a/docs/nodes/pulga_physics/pulga_drag_force.rst +++ b/docs/nodes/pulga_physics/pulga_drag_force.rst @@ -1,6 +1,9 @@ Pulga Drag Force ================= +.. image:: https://github.com/nortikin/sverchok/assets/14288520/5d0a0603-f3ff-446c-9c80-eeb200b36df4 + :target: https://github.com/nortikin/sverchok/assets/14288520/5d0a0603-f3ff-446c-9c80-eeb200b36df4 + Functionality ------------- @@ -12,9 +15,28 @@ The force direction will be opposite to the particle velocity. The force magnitude will be: Strength*(Velocity to the power of Exponent) * Square of the Radius +.. image:: https://github.com/nortikin/sverchok/assets/14288520/6d7a22fc-14c7-4eea-a223-de37e7a776fe + :target: https://github.com/nortikin/sverchok/assets/14288520/6d7a22fc-14c7-4eea-a223-de37e7a776fe + Input ----- -**Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. - -**Exponent**: Defines the type of environment friction. (2 = Liquid) +* **Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. +* **Exponent**: Defines the type of environment friction. (2 = Liquid) + +Examples +-------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/c1240ae8-abe5-4371-8e31-639967b06eb1 + :target: https://github.com/nortikin/sverchok/assets/14288520/c1240ae8-abe5-4371-8e31-639967b06eb1 + +* Generator-> :doc:`Segment ` +* Fields-> :doc:`Rotation Field ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Scene-> :doc:`Frame Info ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Timed Force ` diff --git a/docs/nodes/pulga_physics/pulga_fit_force.rst b/docs/nodes/pulga_physics/pulga_fit_force.rst index adb68d3a92..a8250ca773 100644 --- a/docs/nodes/pulga_physics/pulga_fit_force.rst +++ b/docs/nodes/pulga_physics/pulga_fit_force.rst @@ -1,9 +1,15 @@ Pulga Fit Force =============== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/d9cd470f-710c-47d1-9050-2b184bcc0426 + :target: https://github.com/nortikin/sverchok/assets/14288520/d9cd470f-710c-47d1-9050-2b184bcc0426 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/40199133-8b1c-490d-abb9-318c127a2916 + :target: https://github.com/nortikin/sverchok/assets/14288520/40199133-8b1c-490d-abb9-318c127a2916 + This node creates a force to be applied with the Pulga Physics Solver node. The force will make the particles (vertices) radius to shrink when the collide or grow if the do not. @@ -11,28 +17,37 @@ The force will make the particles (vertices) radius to shrink when the collide o Input ----- -**Magnitude**: Amount to grow/shrink every iteration. +- **Magnitude**: Amount to grow/shrink every iteration. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/54bbf038-937a-4990-80fe-defddb0102a3 + :target: https://github.com/nortikin/sverchok/assets/14288520/54bbf038-937a-4990-80fe-defddb0102a3 -**Min. Radius**: Minimum radius particles can have. + * Transform-> :doc:`Randomize ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` -**Max. Radius**: Maximum radius particles can have. +- **Min. Radius**: Minimum radius particles can have. +- **Max. Radius**: Maximum radius particles can have. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/14209c8f-1a42-4b9d-9f76-251afffd3736 + :target: https://github.com/nortikin/sverchok/assets/14288520/14209c8f-1a42-4b9d-9f76-251afffd3736 Options ------- -**Algorithm**: Algorithm used to calculate collisions. Offers 'Brute Force' and 'Kd-tree' - -- Kd-tree: this is the fastest mode but in order to work it needs 'Scipy' and 'Cython' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding +**Algorithm**: Algorithm used to calculate collisions. Offers '**Brute Force**' and '**Kd-tree**' -- Brute-Force: This mode is much slower but does not need any dependencies to work. +- **Kd-tree**: this is the fastest mode but in order to work it needs '**Scipy**' and '**Cython**' dependencies to be installed. In this mode the attraction continues even if the vertices are colliding -**Mode**: How the magnitude is interpreted. Offers 'Absolute', 'Relative' and 'Percent'. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 + :target: https://github.com/nortikin/sverchok/assets/14288520/b87f2ad1-e8e3-4937-adab-6baa99c3bbc6 -- Absolute: The magnitude will be added or subtracted as defined. +- **Brute-Force**: This mode is much slower but does not need any dependencies to work. -- Relative: The magnitude will be multiplied by the particle radius. +**Mode**: How the magnitude is interpreted. Offers '**Absolute**', '**Relative**' and '**Percent**'. -- Percent: The magnitude will be interpreted as a percent of the particle radius. +- **Absolute**: The magnitude will be added or subtracted as defined. +- **Relative**: The magnitude will be multiplied by the particle radius. +- **Percent**: The magnitude will be interpreted as a percent of the particle radius. Examples @@ -40,8 +55,37 @@ Examples Maximum radius for a set of points. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_fit_force/blender_sverchok_pulga_fit_force_example_01.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/bb29cc04-f13a-4ee6-bace-774d05d852be + :target: https://github.com/nortikin/sverchok/assets/14288520/bb29cc04-f13a-4ee6-bace-774d05d852be + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`Circle ` +* Transform-> :doc:`Randomize ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b235c925-25e9-4bb9-bf66-96916caff1a5 + :target: https://github.com/nortikin/sverchok/assets/14288520/b235c925-25e9-4bb9-bf66-96916caff1a5 + + * Transform-> :doc:`Randomize ` + +-------- Arranging circles with attraction and collision. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_fit_force/blender_sverchok_pulga_fit_force_example_02.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/aefc9540-e9f6-4bbf-94c6-58dc77f26362 + :target: https://github.com/nortikin/sverchok/assets/14288520/aefc9540-e9f6-4bbf-94c6-58dc77f26362 + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`Circle ` +* Transform-> :doc:`Randomize ` +* Number-> :doc:`A Number ` +* Number-> :doc:`Random Num Gen ` +* List->List Main-> :doc:`List Join ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Attractors Force ` +* Pulga Physics-> :doc:`Pulga Collision Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* Pulga Physics-> :doc:`Pulga Boundaries Force ` +* Viz-> :doc:`Viewer Draw ` diff --git a/docs/nodes/pulga_physics/pulga_inflate_force.rst b/docs/nodes/pulga_physics/pulga_inflate_force.rst index 83c7c4c1de..b504280a90 100644 --- a/docs/nodes/pulga_physics/pulga_inflate_force.rst +++ b/docs/nodes/pulga_physics/pulga_inflate_force.rst @@ -1,9 +1,15 @@ Pulga Inflate Force =================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/a7932c90-6f7a-4ab5-8125-c812748588d2 + :target: https://github.com/nortikin/sverchok/assets/14288520/a7932c90-6f7a-4ab5-8125-c812748588d2 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/595eaef0-5c71-471e-9fc3-144ed407792b + :target: https://github.com/nortikin/sverchok/assets/14288520/595eaef0-5c71-471e-9fc3-144ed407792b + This node creates a force to be applied with the Pulga Physics Solver node. The node will apply a force along the normal of the input polygons proportional (multiplied) to the area of the polygon. @@ -12,14 +18,31 @@ The node will apply a force along the normal of the input polygons proportional Input ----- -**Polygons**: Polygon Indices referring to the particle system vertices. - -**Strength**: Magnitude of the inflate force. +- **Polygons**: Polygon Indices referring to the particle system vertices. +- **Strength**: Magnitude of the inflate force. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/ba3659e9-8eb7-4b72-9281-ce6f51a3712c + :target: https://github.com/nortikin/sverchok/assets/14288520/ba3659e9-8eb7-4b72-9281-ce6f51a3712c Examples -------- .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_inflate_force/blender_sverchok_pulga_inflate_force_example_01.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_inflate_force/blender_sverchok_pulga_inflate_force_example_01.png + +* Generator-> :doc:`Box ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +-------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/21404503-0eaa-4865-9928-067f01ed2bfb + :target: https://github.com/nortikin/sverchok/assets/14288520/21404503-0eaa-4865-9928-067f01ed2bfb -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_inflate_force/blender_sverchok_pulga_inflate_force_example_02.png +* Generator-> :doc:`Box ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_obstacle_force.rst b/docs/nodes/pulga_physics/pulga_obstacle_force.rst index 6dd32012c6..85988cef85 100644 --- a/docs/nodes/pulga_physics/pulga_obstacle_force.rst +++ b/docs/nodes/pulga_physics/pulga_obstacle_force.rst @@ -1,9 +1,15 @@ Pulga Obstacle Force ==================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/d60e18cd-99b0-458c-a06c-9aa3c0580864 + :target: https://github.com/nortikin/sverchok/assets/14288520/d60e18cd-99b0-458c-a06c-9aa3c0580864 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/359e71c7-205f-4a71-9a8b-51288765fb38 + :target: https://github.com/nortikin/sverchok/assets/14288520/359e71c7-205f-4a71-9a8b-51288765fb38 + This node creates a force to be applied with the Pulga Physics Solver node. Obstacles (meshes) that will collide with the system particles (vertices) @@ -12,21 +18,70 @@ Obstacles (meshes) that will collide with the system particles (vertices) Input ----- -**Vertices**: Vertices of the obstacles. +- **Vertices**: Vertices of the obstacles. +- **Polygons**: Polygons of the obstacles. -**Polygons**: Polygons of the obstacles. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/58982fee-8fc5-4d1c-9f59-d74a0ce804ce + :target: https://github.com/nortikin/sverchok/assets/14288520/58982fee-8fc5-4d1c-9f59-d74a0ce804ce + + * Generator-> :doc:`Box ` + * Viz-> :doc:`Viewer Draw ` -**Absorption**: Amount of energy that will be absorbed by the obstacle (reducing speed and acceleration). 0 means no absorption and 1 full absorption +- **Absorption**: Amount of energy that will be absorbed by the obstacle (reducing speed and acceleration). 0 means no absorption and 1 full absorption + .. image:: https://github.com/nortikin/sverchok/assets/14288520/6e1dad7e-d2e5-480e-b452-2f279835ee7a + :target: https://github.com/nortikin/sverchok/assets/14288520/6e1dad7e-d2e5-480e-b452-2f279835ee7a + + * Number-> :doc:`Number Range ` + * Vector-> :doc:`Vector In ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` Examples -------- +Grid of vertices colliding with a soft Cylindrical mesh: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/e1c0bcac-5b33-40c7-bea6-9c25c1b5b647 + :target: https://github.com/nortikin/sverchok/assets/14288520/e1c0bcac-5b33-40c7-bea6-9c25c1b5b647 + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`Cylinder ` +* Matrix-> :doc:`Matrix In ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +-------- + Grid of vertices colliding with a soft spherical mesh: .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_obstacle_force/blender_sverchok_pulga_obstacle_force_example_01.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_obstacle_force/blender_sverchok_pulga_obstacle_force_example_01.png + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`Sphere ` +* Matrix-> :doc:`Matrix In ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + + +-------- Trajectories of vertices colliding with a hard spherical mesh. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_obstacle_force/blender_sverchok_pulga_obstacle_force_example_02.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/da62baed-63c5-4a67-98b3-41f57f54f8f0 + :target: https://github.com/nortikin/sverchok/assets/14288520/da62baed-63c5-4a67-98b3-41f57f54f8f0 + +* Generator-> :doc:`Line ` +* Generator-> :doc:`Plane ` +* Generator-> :doc:`Sphere ` +* Modifiers->Modifier Change-> :doc:`Mesh Join ` +* Transform-> :doc:`Move ` +* Number-> :doc:`Number Range ` +* Matrix-> :doc:`Matrix In ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/e4e95fa6-9b2d-4c6e-8ccc-0e8754cfbac4 + :target: https://github.com/nortikin/sverchok/assets/14288520/e4e95fa6-9b2d-4c6e-8ccc-0e8754cfbac4 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_physics_lite.rst b/docs/nodes/pulga_physics/pulga_physics_lite.rst index 76afbb0cfc..97f41c9748 100644 --- a/docs/nodes/pulga_physics/pulga_physics_lite.rst +++ b/docs/nodes/pulga_physics/pulga_physics_lite.rst @@ -1,6 +1,9 @@ Pulga Physics Lite ================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/5ba4d876-c6f2-4940-811e-58fda918f8a7 + :target: https://github.com/nortikin/sverchok/assets/14288520/5ba4d876-c6f2-4940-811e-58fda918f8a7 + Functionality ------------- @@ -102,11 +105,9 @@ When activated every nodeTree update will use the previous update as the startin It offers some options: -**Reset**: Takes back the system to the initial state. - -**Update**: Runs one Node-Tree update. - -**Pause**: Pauses nodes calculations and ignores ui changes. +- **Reset**: Takes back the system to the initial state. +- **Update**: Runs one Node-Tree update. +- **Pause**: Pauses nodes calculations and ignores ui changes. Examples @@ -115,46 +116,45 @@ Examples Arranging circles with attraction and collision. .. image:: https://user-images.githubusercontent.com/10011941/55254066-3d902500-5257-11e9-9a28-46d3deffcf0b.png - :alt: circle_fitting_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/55254066-3d902500-5257-11e9-9a28-46d3deffcf0b.png Tensile structures can be studied with collisions and pinned points. .. image:: https://user-images.githubusercontent.com/10011941/55254067-3e28bb80-5257-11e9-8988-7e19e8a2462b.png - :alt: textile_structures_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/55254067-3e28bb80-5257-11e9-8988-7e19e8a2462b.png .. image:: https://user-images.githubusercontent.com/10011941/56082937-23da0a80-5e1f-11e9-9b50-611629574cef.png - :alt: textile_cover_pulga_physics_procedural_design.png - + :target: https://user-images.githubusercontent.com/10011941/56082937-23da0a80-5e1f-11e9-9b50-611629574cef.png Traction structures can be converted to compression structures with inverted gravity. .. image:: https://user-images.githubusercontent.com/10011941/55254068-3e28bb80-5257-11e9-86b3-2243b4e7ac4e.png - :alt: compression_structures_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/55254068-3e28bb80-5257-11e9-86b3-2243b4e7ac4e.png Using the caternary as a structural modeling tool: .. image:: https://user-images.githubusercontent.com/10011941/56082943-305e6300-5e1f-11e9-811b-c20df2a7a4d2.png - :alt: catenary_cover_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/56082943-305e6300-5e1f-11e9-811b-c20df2a7a4d2.png Variable spring stiffness can be used to simulate sewing springs inflatable structures. .. image:: https://user-images.githubusercontent.com/10011941/55256836-69fb6f80-525e-11e9-9a1b-21a6eafd0a4e.png - :alt: inflateble_structures_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/55256836-69fb6f80-525e-11e9-9a1b-21a6eafd0a4e.png Trajectories can be traced by supplying the desired iterations as a list. .. image:: https://user-images.githubusercontent.com/10011941/55313009-14de7a00-5467-11e9-887e-781d7b4dc025.png - :alt: physics_modeling_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/55313009-14de7a00-5467-11e9-887e-781d7b4dc025.png Shooting particles to a attractors field. .. image:: https://user-images.githubusercontent.com/10011941/56082940-2b011880-5e1f-11e9-8124-90da02ab7cf5.png - :alt: shooting partcles_pulga_physics_procedural_design.PNG + :target: https://user-images.githubusercontent.com/10011941/56082940-2b011880-5e1f-11e9-8124-90da02ab7cf5.png The "Pins Reactions" output supply the resultant force on the pins. It can be use to model auxiliary structures. .. image:: https://user-images.githubusercontent.com/10011941/56082950-479d5080-5e1f-11e9-87ed-19b9247c07b5.png - :alt: pin_reactions_pulga_physics_procedural_design.png + :target: https://user-images.githubusercontent.com/10011941/56082950-479d5080-5e1f-11e9-87ed-19b9247c07b5.png Notes diff --git a/docs/nodes/pulga_physics/pulga_physics_solver.rst b/docs/nodes/pulga_physics/pulga_physics_solver.rst index a8c1fe6ab5..40b19654e8 100644 --- a/docs/nodes/pulga_physics/pulga_physics_solver.rst +++ b/docs/nodes/pulga_physics/pulga_physics_solver.rst @@ -1,6 +1,9 @@ Pulga Physics Solver ==================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/2dc0b37e-3267-48c0-b022-0b197c8e90d5 + :target: https://github.com/nortikin/sverchok/assets/14288520/2dc0b37e-3267-48c0-b022-0b197c8e90d5 + Functionality ------------- @@ -65,35 +68,175 @@ Examples Arranging circles with attraction and collision. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_fit_force/blender_sverchok_pulga_fit_force_example_02.png - :alt: circle_fitting_pulga_physics_procedural_design.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/f03b8e4e-a78e-4f50-9986-c3aa3a7067e7 + :target: https://github.com/nortikin/sverchok/assets/14288520/f03b8e4e-a78e-4f50-9986-c3aa3a7067e7 + +* Generator-> :doc:`Plane ` +* Transform-> :doc:`Randomize ` +* Number-> :doc:`Random Num Gen ` +* List->List Main-> :doc:`List Join ` +* Generator-> :doc:`Circle ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* Pulga Physics-> :doc:`Pulga Collision Force ` +* Pulga Physics-> :doc:`Pulga Attraction Force ` +* Pulga Physics-> :doc:`Pulga Fit Force ` +* Pulga Physics-> :doc:`Pulga Boundaries Force ` + +Getting result in animation: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/7a1022a6-c1b2-40be-a3f9-ab84a6b6bc21 + :target: https://github.com/nortikin/sverchok/assets/14288520/7a1022a6-c1b2-40be-a3f9-ab84a6b6bc21 + + +-------- Inflating a cube simulating a pillow. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_inflate_force/blender_sverchok_pulga_inflate_force_example_02.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/4c51f66c-bc37-4391-aeff-f41d43f5c48b + :target: https://github.com/nortikin/sverchok/assets/14288520/4c51f66c-bc37-4391-aeff-f41d43f5c48b -Tensile structures can be studied with pinned points. +* Generator-> :doc:`Box ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* Pulga Physics-> :doc:`Pulga Inflate Force ` + +Animated: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/99dffb12-6355-472a-965f-f56c55c6de9f + :target: https://github.com/nortikin/sverchok/assets/14288520/99dffb12-6355-472a-965f-f56c55c6de9f -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_physics_solver/blender_sverchok_pulga_physics_solver_example_01.png - :alt: textile_structures_pulga_physics_procedural_design.png +--------- +Tensile structures can be studied with pinned points. + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/b0a35c32-9daa-4047-9df8-3ceb9e20ab2b + :target: https://github.com/nortikin/sverchok/assets/14288520/b0a35c32-9daa-4047-9df8-3ceb9e20ab2b + +* Generator-> :doc:`Line ` +* Generator-> :doc:`3pt Arc ` +* Generator->Generator Extended-> :doc:`Polygon Grid ` +* Analyzers-> :doc:`Path Length ` +* Transform-> :doc:`Transform Select ` +* Modifiers->Modifier Make-> :doc:`Subdivide ` +* Number-> :doc:`List Input ` +* MUL X, SIN, DIV: Number-> :doc:`Scalar Math ` +* Vector-> :doc:`Vector Out ` +* Vector-> :doc:`Vector Rewire ` +* ANGLE RAD: Vector-> :doc:`Vector Math ` +* Matrix-> :doc:`Matrix In ` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Join ` +* List->List Struct-> :doc:`List Item ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Modifiers->Modifier Make-> :doc:`Solidify ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* Pulga Physics-> :doc:`Pulga Pin Force `\ + +Animated: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/fd2b45f9-60e4-4499-a001-83775f265469 + :target: https://github.com/nortikin/sverchok/assets/14288520/fd2b45f9-60e4-4499-a001-83775f265469 + +--------- Using the caternary as a structural modeling tool: -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_physics_solver/blender_sverchok_pulga_physics_solver_example_02.png - :alt: catenary_cover_pulga_physics_procedural_design.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/279c74b2-8303-4d54-98b5-0cf1b5285b3f + :target: https://github.com/nortikin/sverchok/assets/14288520/279c74b2-8303-4d54-98b5-0cf1b5285b3f + +* Generator-> :doc:`Line ` +* Generator-> :doc:`Circle ` +* Number-> :doc:`A Number ` +* Number-> :doc:`Scalar Math ` +* Number-> :doc:`Number Range ` +* Number-> :doc:`Float to Integer ` +* List->List Main-> :doc:`List Join ` +* List->List Main-> :doc:`List Join ` +* List->List Struct-> :doc:`List Item ` +* Viz-> :doc:`Polyline Viewer ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* Pulga Physics-> :doc:`Pulga Pin Force ` + +Animated: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/7b64dea0-6699-4e9b-9a55-9a9bfc0d4e2a + :target: https://github.com/nortikin/sverchok/assets/14288520/7b64dea0-6699-4e9b-9a55-9a9bfc0d4e2a + +--------- Variable spring stiffness can be used to simulate sewing springs inflatable structures. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_physics_solver/blender_sverchok_pulga_physics_solver_example_03.png - :alt: inflateble_structures_pulga_physics_procedural_design.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/2a68b551-4d9e-49ad-b279-4b8050f219d2 + :target: https://github.com/nortikin/sverchok/assets/14288520/2a68b551-4d9e-49ad-b279-4b8050f219d2 + +* Generator-> :doc:`Circle ` +* Generator-> :doc:`Box ` +* Generator-> :doc:`Torus ` +* Analyzers-> :doc:`Points Inside Mesh ` +* Number-> :doc:`List Input ` +* Matrix-> :doc:`Matrix In ` +* Matrix-> :doc:`Matrix Apply to Mesh ` +* Matrix-> :doc:`Matrix Normal ` +* List-> :doc:`Mask Converter ` +* List->List Struct-> :doc:`List Item ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Inflate Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` +* List->List Main-> :doc:`List Join ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/54853304-19cd-48f7-b88f-d403f2c0fc87 + :target: https://github.com/nortikin/sverchok/assets/14288520/54853304-19cd-48f7-b88f-d403f2c0fc87 + +--------- Shooting particles to a attractors field. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_physics_solver/blender_sverchok_pulga_physics_solver_example_04.png - :alt: shooting partcles_pulga_physics_procedural_design.PNG +.. image:: https://github.com/nortikin/sverchok/assets/14288520/5286a603-f72a-44dc-950d-2b8e404b11e9 + :target: https://github.com/nortikin/sverchok/assets/14288520/5286a603-f72a-44dc-950d-2b8e404b11e9 + +* Generator-> :doc:`Circle ` +* Generator->Generator Extended-> :doc:`Polygon Grid ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Number-> :doc:`A Number ` +* Number-> :doc:`Number Range ` +* Number-> :doc:`Random Num Gen ` +* Vector-> :doc:`Vector In ` +* Vector-> :doc:`Vector Polar Input ` +* List->List Struct-> :doc:`List Repeater ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Attractors Force ` + +Animated: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/6b9003a6-939b-4ad6-b760-58ce9d6023b0 + :target: https://github.com/nortikin/sverchok/assets/14288520/6b9003a6-939b-4ad6-b760-58ce9d6023b0 + +--------- The "Pins Reactions" output supply the resultant force on the pins. It can be use to model auxiliary structures. -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_physics_solver/blender_sverchok_pulga_physics_solver_example_05.png - :alt: pin_reactions_pulga_physics_procedural_design.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/6cd54f5d-4ec9-4964-82a1-cc7b42be3f8e + :target: https://github.com/nortikin/sverchok/assets/14288520/6cd54f5d-4ec9-4964-82a1-cc7b42be3f8e + +* Generator-> :doc:`Line ` +* Generator-> :doc:`Plane ` +* Analyzers->Component Analyzer **Adjacent Edges**: :ref:`Adjacent edges` +* EQUAL: Logic-> :doc:`Logic Functions ` +* List-> :doc:`Mask To Index ` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Springs Force ` +* Pulga Physics-> :doc:`Pulga Pin Force ` + +Animated + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/ef3685f0-fae4-4eb7-83d8-caf6b4ce8451 + :target: https://github.com/nortikin/sverchok/assets/14288520/ef3685f0-fae4-4eb7-83d8-caf6b4ce8451 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_pin_force.rst b/docs/nodes/pulga_physics/pulga_pin_force.rst index 024905f314..a0b164a00b 100644 --- a/docs/nodes/pulga_physics/pulga_pin_force.rst +++ b/docs/nodes/pulga_physics/pulga_pin_force.rst @@ -1,6 +1,9 @@ Pulga Pin Force =============== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/c38bf44e-b9f5-47cf-81dc-6028c38b9ecf + :target: https://github.com/nortikin/sverchok/assets/14288520/c38bf44e-b9f5-47cf-81dc-6028c38b9ecf + Functionality ------------- @@ -8,20 +11,81 @@ This node creates a force to be applied with the Pulga Physics Solver node. The force restricts the movement of the pinned verts +.. image:: https://github.com/nortikin/sverchok/assets/14288520/9335ef65-affc-485e-89ed-fe9d709ce18a + :target: https://github.com/nortikin/sverchok/assets/14288520/9335ef65-affc-485e-89ed-fe9d709ce18a Input ----- -**Pins**: It will accept a Boolean list as a mask list or a Integer list as the index of the vertex to pin +* **Pins**: It will accept a Boolean list as a mask list or a Integer list as the index of the vertex to pin + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/08c46707-59ab-440c-bd9c-0904f939d107 + :target: https://github.com/nortikin/sverchok/assets/14288520/08c46707-59ab-440c-bd9c-0904f939d107 -**Axis**: Axis to restrict. It can be defined with the drop-down menu or a list from a list from 0 to 6 to define the axis restriction per pin. (0 = XYZ, 1 = XY, 2 = XZ, 3 = YZ, 4 = X, 5 = Y, 6 = Z ) +* **Axis**: Axis to restrict. It can be defined with the drop-down menu or a list from a list from 0 to 6 to define the axis restriction per pin. (0 = XYZ, 1 = XY, 2 = XZ, 3 = YZ, 4 = X, 5 = Y, 6 = Z ) -**Pins Goal**: End position of the pinned vertices. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/fd1b527d-03b9-4df4-b904-bf58ff6a09dd + :target: https://github.com/nortikin/sverchok/assets/14288520/fd1b527d-03b9-4df4-b904-bf58ff6a09dd +* **Pins Goal**: End position of the pinned vertices. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b79858f9-f878-46ee-b7ee-2e4326051b41 + :target: https://github.com/nortikin/sverchok/assets/14288520/b79858f9-f878-46ee-b7ee-2e4326051b41 Examples -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_pin_force/blender_sverchok_pulga_pin_force_example_01.png +Description example: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/09eca1c8-ad58-4d83-9618-59a286f6babf + :target: https://github.com/nortikin/sverchok/assets/14288520/09eca1c8-ad58-4d83-9618-59a286f6babf + +* Generator-> :doc:`Segment ` +* Generator->Generator Extended-> :doc:`Polygon Grid ` +* Analyzers->Component Analyzer: :ref:`Adjacent faces num` +* MUL, SINCOS, MUL X: Number-> :doc:`Scalar Math ` +* Vector-> :doc:`Vector Polar Output ` +* Vector-> :doc:`Vector Polar Input ` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Join ` +* LESS EQ: Logic-> :doc:`Logic Functions ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Springs Force ` + +-------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/fe532189-7aca-41b4-91eb-3ab2594295f2 + :target: https://github.com/nortikin/sverchok/assets/14288520/fe532189-7aca-41b4-91eb-3ab2594295f2 + +* Generator-> :doc:`Segment ` +* Generator->Generator Extended-> :doc:`Polygon Grid ` +* Analyzers->Component Analyzer: :ref:`Adjacent faces num` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Join ` +* LESS EQ: Logic-> :doc:`Logic Functions ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Springs Force ` + +-------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/4ec10d8b-b78e-45fd-b325-855e3e0deb9b + :target: https://github.com/nortikin/sverchok/assets/14288520/4ec10d8b-b78e-45fd-b325-855e3e0deb9b + +* Generator-> :doc:`Plane ` +* Analyzers->Component Analyzer: :ref:`Adjacent faces num` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Join ` +* LESS EQ: Logic-> :doc:`Logic Functions ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Springs Force ` + +--------- .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_pin_force/blender_sverchok_pulga_pin_force_example_02.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_pin_force/blender_sverchok_pulga_pin_force_example_02.png \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_random_force.rst b/docs/nodes/pulga_physics/pulga_random_force.rst index 8b2c48aa78..25404f758b 100644 --- a/docs/nodes/pulga_physics/pulga_random_force.rst +++ b/docs/nodes/pulga_physics/pulga_random_force.rst @@ -1,9 +1,18 @@ Pulga Random Force ================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/461529b6-886c-4c15-8844-9afbd6c6e5c6 + :target: https://github.com/nortikin/sverchok/assets/14288520/461529b6-886c-4c15-8844-9afbd6c6e5c6 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/c5c3db7e-dd55-447f-b490-35cd90b1dcf9 + :target: https://github.com/nortikin/sverchok/assets/14288520/c5c3db7e-dd55-447f-b490-35cd90b1dcf9 + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/bf291a3b-b970-4ff0-9dd4-cfb157c99675 + :target: https://github.com/nortikin/sverchok/assets/14288520/bf291a3b-b970-4ff0-9dd4-cfb157c99675 + This node creates a force to be applied with the Pulga Physics Solver node. The node will apply a random force to each vertex of the defined magnitude that can change every iteration. @@ -12,16 +21,37 @@ The node will apply a random force to each vertex of the defined magnitude that Input ----- -**Strength**: Magnitude of the random force. +- **Strength**: Magnitude of the random force. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c345e20c-cdfe-464f-81d8-4ba5b4ad52ac + :target: https://github.com/nortikin/sverchok/assets/14288520/c345e20c-cdfe-464f-81d8-4ba5b4ad52ac -**Variation**: Variation on every iteration. 0= no variation, 1= 100% variation. +- **Variation**: Variation on every iteration. 0= no variation, 1= 100% variation. -**Seed**: Random seed. Evert number will produce different forces. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/f84759f8-5002-4aef-81ca-ef3a65413711 + :target: https://github.com/nortikin/sverchok/assets/14288520/f84759f8-5002-4aef-81ca-ef3a65413711 +- **Seed**: Random seed. Evert number will produce different forces. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/5e490b21-2de1-4ec1-b3d9-a8bf049ca762 + :target: https://github.com/nortikin/sverchok/assets/14288520/5e490b21-2de1-4ec1-b3d9-a8bf049ca762 Examples -------- -Trajectories of vertices with constant random force (blue) and variating random force (green). +Trajectories of vertices of NGon. + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/89102504-d80e-44f1-9f40-dbda784e585a + :target: https://github.com/nortikin/sverchok/assets/14288520/89102504-d80e-44f1-9f40-dbda784e585a + +* Generator-> :doc:`NGon ` +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Length ` +* List->List Struct-> :doc:`List Item ` +* Color-> :doc:`Color In ` +* Viz-> :doc:`Viewer Draw ` +* Text-> :doc:`Stethoscope ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_random_force/blender_sverchok_pulga_random_force_example.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/1605073d-6577-4f31-a5e6-2faf22c64e69 + :target: https://github.com/nortikin/sverchok/assets/14288520/1605073d-6577-4f31-a5e6-2faf22c64e69 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_springs_force.rst b/docs/nodes/pulga_physics/pulga_springs_force.rst index 55ee27d944..fde74ae20b 100644 --- a/docs/nodes/pulga_physics/pulga_springs_force.rst +++ b/docs/nodes/pulga_physics/pulga_springs_force.rst @@ -1,10 +1,13 @@ Pulga Springs Force =================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/f26739ab-e00d-4f19-8f59-c050f68a9e6b + :target: https://github.com/nortikin/sverchok/assets/14288520/f26739ab-e00d-4f19-8f59-c050f68a9e6b + Functionality ------------- -This node creates a force to be applied with the Pulga Physics Solver node. +This node creates a force to be applied with the [:doc:`Pulga Physics->Pulga Physics Solver `] node. The springs are defined as edges indices. @@ -12,18 +15,93 @@ The force direction the direction of the edge. The force magnitude will be: (Spring Length - Spring Rest Length) * Stiffness +.. image:: https://github.com/nortikin/sverchok/assets/14288520/27685dc7-d85c-4101-a4b8-4d26f3285ebc + :target: https://github.com/nortikin/sverchok/assets/14288520/27685dc7-d85c-4101-a4b8-4d26f3285ebc + Input ----- -**Springs**: Edges Indices referring to the particle system vertices. - -**Stiffness**: Stiffness of the springs, if multiple values are given the will be use as stiffness per spring. +* **Springs**: Edges Indices referring to the particle system vertices. +* **Stiffness**: Stiffness of the springs, if multiple values are given the will be use as stiffness per spring. -**Rest Length**: Springs rest length, if set to 0 the rest length will be calculated from the initial position. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/353b8c64-0a3c-4dde-aa99-2ee2bafd1f17 + :target: https://github.com/nortikin/sverchok/assets/14288520/353b8c64-0a3c-4dde-aa99-2ee2bafd1f17 -**Clamp**: Constrain maximum difference each iteration. If set to 0 no clap will be applied +* **Rest Length**: Springs rest length, if set to 0 the rest length will be calculated from the initial position. +* **Clamp**: Constrain maximum difference each iteration. If set to 0 no clap will be applied Examples -------- -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_springs_force/blender_sverchok_pulga_springs_force_example_01.png +Example in description: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/e8c76f03-518a-458d-a2d5-3f7edf8ffb77 + :target: https://github.com/nortikin/sverchok/assets/14288520/e8c76f03-518a-458d-a2d5-3f7edf8ffb77 + +* Generator-> :doc:`Cylinder ` +* Spatial-> :doc:`Populate Mesh ` +* Spatial-> :doc:`Voronoi on Mesh ` +* Modifiers->Modifier Change-> :doc:`Mesh Join ` +* Modifiers->Modifier Change-> :doc:`Merge by Distance ` +* Analyzers->Component Analyzer **Vertices->Sharpness**: :ref:`Vertices Sharpness` +* Analyzers->Component Analyzer **Vertices->Is Boundary**: :ref:`Vertices Is Boundary` +* List->List Main-> :doc:`List Zip ` +* List->List Main-> :doc:`List Math ` +* List-> :doc:`List Mask (Out) ` +* List->List Main-> :doc:`List Length ` +* List->List Struct-> :doc:`List Repeater ` +* List->List Main-> :doc:`List Zip ` +* BIG_EQ: Logic-> :doc:`Logic Functions ` +* Logic-> :doc:`Switch ` +* Color-> :doc:`Color Input ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Pin Force ` +* Pulga Physics-> :doc:`Pulga Drag Force ` + +Example with Cylinder: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/3f80e648-2000-40ee-b87b-f064f476ba56 + :target: https://github.com/nortikin/sverchok/assets/14288520/3f80e648-2000-40ee-b87b-f064f476ba56 + +Example with Torus: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/5c5f48fd-f612-4f8f-924a-85f0d0c9ada2 + :target: https://github.com/nortikin/sverchok/assets/14288520/5c5f48fd-f612-4f8f-924a-85f0d0c9ada2 + +--------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/ca855c7e-d4c1-4ebb-b7bf-e087d5da2e30 + :target: https://github.com/nortikin/sverchok/assets/14288520/ca855c7e-d4c1-4ebb-b7bf-e087d5da2e30 + +* Generator-> :doc:`Plane ` +* Analyzers->Component Analyzer: :ref:`Adjacent Edges num` +* Logic-> :doc:`Logic Functions ` +* List-> :doc:`Mask To Index ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Pin Force ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/fa53b414-91e1-49b3-bfca-c46c49c72f83 + :target: https://github.com/nortikin/sverchok/assets/14288520/fa53b414-91e1-49b3-bfca-c46c49c72f83 + +--------- + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/b6725122-effc-4338-ba2e-9937b9396ff9 + :target: https://github.com/nortikin/sverchok/assets/14288520/b6725122-effc-4338-ba2e-9937b9396ff9 + +* Generator-> :doc:`Box ` +* Analyzers->Component Analyzer **Vertices->Sharpness**: :ref:`Vertices Sharpness` +* Fields-> :doc:`Attractor Field ` +* List-> :doc:`Mask To Index ` +* List->List Main-> :doc:`List Join ` +* Logic-> :doc:`Logic Functions ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Pin Force ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/16dd65d0-b235-4a76-aa14-69cc6aff0273 + :target: https://github.com/nortikin/sverchok/assets/14288520/16dd65d0-b235-4a76-aa14-69cc6aff0273 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_timed_force.rst b/docs/nodes/pulga_physics/pulga_timed_force.rst index 4287138ccf..65d1bcefa3 100644 --- a/docs/nodes/pulga_physics/pulga_timed_force.rst +++ b/docs/nodes/pulga_physics/pulga_timed_force.rst @@ -1,26 +1,61 @@ Pulga Timed Force ================= +.. image:: https://github.com/nortikin/sverchok/assets/14288520/9805d1e5-4d87-446a-aba1-4e01fde2f4bd + :target: https://github.com/nortikin/sverchok/assets/14288520/9805d1e5-4d87-446a-aba1-4e01fde2f4bd + Functionality ------------- This node creates a force to be applied with the Pulga Physics Solver node. The inputted force will only be applied between the defined iterations range. +.. image:: https://github.com/nortikin/sverchok/assets/14288520/abd5e0f4-aa64-4031-9b69-52297e705eff + :target: https://github.com/nortikin/sverchok/assets/14288520/abd5e0f4-aa64-4031-9b69-52297e705eff + Input ----- -**Force**: Force to apply the time restriction to. +* **Force**: Force to apply the time restriction to. +* **Start**: Start iteration when the force will be applied. +* **End**: End iteration when the force will stop being applied. -**Start**: Start iteration when the force will be applied. -**End**: End iteration when the force will stop being applied. +Examples +-------- +Example of description: + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/4e729e08-2c52-44da-85fe-87c0081a858b + :target: https://github.com/nortikin/sverchok/assets/14288520/4e729e08-2c52-44da-85fe-87c0081a858b + +* Generator-> :doc:`Segment ` +* Fields-> :doc:`Rotation Field ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Number-> :doc:`Number Range ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Scene-> :doc:`Frame Info ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Vector Force ` +* Pulga Physics-> :doc:`Pulga Random Force ` -Examples -------- -In the following example a Random force will be applied on the first 50 iterations, after a Fit force will be applied. +In the following example a :doc:`Random Force ` will be applied on the first 50 iterations, after a :doc:`Fit Force ` will be applied. + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/0ec9a10d-59e9-4dde-a52e-d4e885913db5 + :target: https://github.com/nortikin/sverchok/assets/14288520/0ec9a10d-59e9-4dde-a52e-d4e885913db5 + +* Generator-> :doc:`Plane ` +* Generator-> :doc:`IcoSphere ` +* List->List Main-> :doc:`List Join ` +* Viz-> :doc:`Viewer Draw ` +* Scene-> :doc:`Frame Info ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Pulga Physics-> :doc:`Pulga Random Force ` +* Pulga Physics-> :doc:`Pulga Fit Force ` -.. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_timed_force/blender_sverchok_pulga_timed_force_example.png +.. image:: https://github.com/nortikin/sverchok/assets/14288520/f9d0587b-42bc-4afe-bbc4-11300a9bda03 + :target: https://github.com/nortikin/sverchok/assets/14288520/f9d0587b-42bc-4afe-bbc4-11300a9bda03 \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_vector_force.rst b/docs/nodes/pulga_physics/pulga_vector_force.rst index 6b5bcf6120..fc9e2202a3 100644 --- a/docs/nodes/pulga_physics/pulga_vector_force.rst +++ b/docs/nodes/pulga_physics/pulga_vector_force.rst @@ -1,35 +1,120 @@ Pulga Vector Force ================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/ad3d3efd-64e7-400b-89cc-337a5bb1eee0 + :target: https://github.com/nortikin/sverchok/assets/14288520/ad3d3efd-64e7-400b-89cc-337a5bb1eee0 + Functionality ------------- -This node creates a force to be applied with the Pulga Physics Solver node. -The force applies the inputted vector as a force to each vertex. -The force direction will be the same as the inputted vertex. -The force magnitude will be: Inputted Vector Magnitude * Force Strength +This node creates a force to be applied with the :doc:`Pulga Physics->Pulga Physics Solver ` node. + +* The force applies the inputted vector as a force to each vertex. +* The force direction will be the same as the inputted vertex. +* The force magnitude will be: Inputted Vector Magnitude * Force Strength + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/a3be3b5b-00a0-42f0-86ef-8337f9e5e28f + :target: https://github.com/nortikin/sverchok/assets/14288520/a3be3b5b-00a0-42f0-86ef-8337f9e5e28f Input ----- -**Force**: Force as vector value. It will also accept a vector Field as input, if multiple values are given the will be use as force per particle. +* **Force**: Force as vector value. It will also accept a vector Field as input, if multiple values are given the will be use as force per particle. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/6fb198c4-1cbf-4ed9-8e06-abf32ee373f0 + :target: https://github.com/nortikin/sverchok/assets/14288520/6fb198c4-1cbf-4ed9-8e06-abf32ee373f0 + + * Fields-> :doc:`Vector Field Formula ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + +--------- + + Connect :doc:`Fields->Rotation Field ` into "Force" socket: + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b89393aa-bce4-462d-b20b-ccf72d2579fe + :target: https://github.com/nortikin/sverchok/assets/14288520/b89393aa-bce4-462d-b20b-ccf72d2579fe + + * Number-> :doc:`List Input ` + * Number-> :doc:`Number Range ` + * Fields-> :doc:`Rotation Field ` + * Viz-> :doc:`Viewer Draw ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` + +* **Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/5a44434c-a46f-4113-96ae-9a8540dcc1e4 + :target: https://github.com/nortikin/sverchok/assets/14288520/5a44434c-a46f-4113-96ae-9a8540dcc1e4 -**Strength**: Multiplier of the force, if multiple values are given the will be use as strength per particle. +--------- + + Set **strength** per particle: + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/b12295a5-9f94-4b2f-8d72-f80655c435a2 + :target: https://github.com/nortikin/sverchok/assets/14288520/b12295a5-9f94-4b2f-8d72-f80655c435a2 + + * Number-> :doc:`List Input ` + * Fields-> :doc:`Rotation Field ` + * Number-> :doc:`List Input ` + * Number-> :doc:`Number Range ` + * Pulga Physics-> :doc:`Pulga Physics Solver ` Options ------- **Proportional to Mass**: multiply the Vector Force by the mass of the particle. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c4fd300e-20df-4569-82ea-3375abf358c9 + :target: https://github.com/nortikin/sverchok/assets/14288520/c4fd300e-20df-4569-82ea-3375abf358c9 + Examples -------- +Description Example (Influence of some parameters): + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/767aec31-e800-44ad-b017-2bd2d7c20f11 + :target: https://github.com/nortikin/sverchok/assets/14288520/767aec31-e800-44ad-b017-2bd2d7c20f11 + +* Generator-> :doc:`Circle ` +* Fields-> :doc:`Rotation Field ` +* Number-> :doc:`A Number ` +* ADD: Number-> :doc:`Scalar Math ` +* Number-> :doc:`List Input ` +* Number-> :doc:`Number Range ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Vector-> :doc:`Vector Polar Output ` +* Vector-> :doc:`Vector Polar Input ` +* List->List Main-> :doc:`List Join ` +* List->List Struct-> :doc:`List Flip ` +* Viz-> :doc:`Viewer Draw ` +* Viz-> :doc:`Viewer Index+ ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +.. image:: https://github.com/nortikin/sverchok/assets/14288520/606e9352-d2ac-4615-bf06-81b69d3d7bab + :target: https://github.com/nortikin/sverchok/assets/14288520/606e9352-d2ac-4615-bf06-81b69d3d7bab + +--------- + Constant vector force: .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_vector_force/blender_sverchok_pulga_vector_force_example_01.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_vector_force/blender_sverchok_pulga_vector_force_example_01.png +* Generator-> :doc:`Plane ` +* Number-> :doc:`Number Range ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Viz-> :doc:`Viewer Draw ` + +--------- Noise Vector Field as vector force: .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_vector_force/blender_sverchok_pulga_vector_force_example_02.png + :target: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_vector_force/blender_sverchok_pulga_vector_force_example_02.png + +* Generator-> :doc:`Plane ` +* Fields-> :doc:`Noise Vector Field ` +* Number-> :doc:`Number Range ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` +* Modifiers->Modifier Make-> :doc:`UV Connection ` +* Viz-> :doc:`Viewer Draw ` \ No newline at end of file diff --git a/docs/nodes/pulga_physics/pulga_vortex_force.rst b/docs/nodes/pulga_physics/pulga_vortex_force.rst index fff45559c1..2f8beb20b8 100644 --- a/docs/nodes/pulga_physics/pulga_vortex_force.rst +++ b/docs/nodes/pulga_physics/pulga_vortex_force.rst @@ -1,9 +1,15 @@ Pulga Vortex Force ================== +.. image:: https://github.com/nortikin/sverchok/assets/14288520/c36e5cee-8557-4e55-ab04-0804c4b7c863 + :target: https://github.com/nortikin/sverchok/assets/14288520/c36e5cee-8557-4e55-ab04-0804c4b7c863 + Functionality ------------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/f92cc57b-295e-486a-b745-d6fb549781a0 + :target: https://github.com/nortikin/sverchok/assets/14288520/f92cc57b-295e-486a-b745-d6fb549781a0 + This node creates a force to be applied with the Pulga Physics Solver node. The vortex force is defined with a "Line" with Location and Direction. It has three components, rotation around the line, attraction towards the line (Inflow) and a movement in the line direction (Forward). @@ -12,24 +18,52 @@ It has three components, rotation around the line, attraction towards the line ( Input ----- -**Location**: A point of the line. +- **Location**: A point of the line. +- **Direction**: Direction of the line. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/c683f977-27a0-4b4a-86ed-cd0b09b8f087 + :target: https://github.com/nortikin/sverchok/assets/14288520/c683f977-27a0-4b4a-86ed-cd0b09b8f087 + +- **Rotation Strength**: Multiplier of the rotation force. + + .. image:: https://github.com/nortikin/sverchok/assets/14288520/9194caaf-bb91-45f8-93ed-017d7794f2a7 + :target: https://github.com/nortikin/sverchok/assets/14288520/9194caaf-bb91-45f8-93ed-017d7794f2a7 -**Direction**: Direction of the line. +- **Inflow Strength**: Multiplier of the inflow force (towards the line). -**Rotation Strength**: Multiplier of the rotation force. + .. image:: https://github.com/nortikin/sverchok/assets/14288520/29a764ce-e612-422c-afc8-71959886d8ff + :target: https://github.com/nortikin/sverchok/assets/14288520/29a764ce-e612-422c-afc8-71959886d8ff -**Inflow Strength**: Multiplier of the inflow force (towards the line). +- **Forward Strength**: Multiplier of the forward force (in the direction of the line). -**Forward Strength**: Multiplier of the forward force (in the direction of the line). + .. image:: https://github.com/nortikin/sverchok/assets/14288520/52674c95-dc42-4f9b-b985-706cd8d5ad3c + :target: https://github.com/nortikin/sverchok/assets/14288520/52674c95-dc42-4f9b-b985-706cd8d5ad3c -**Max. Distance**: Distance under the force will be applied. +- **Max. Distance**: Distance under the force will be applied. +- **Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... -**Decay**: How the force will decay with distance. 0= no decay, 1= linear, 2= cubic, 4= quadratic... +Animated params overview: +.. image:: https://github.com/nortikin/sverchok/assets/14288520/1882814d-93da-418d-af2e-788f7aa4781f + :target: https://github.com/nortikin/sverchok/assets/14288520/1882814d-93da-418d-af2e-788f7aa4781f Examples -------- +.. image:: https://github.com/nortikin/sverchok/assets/14288520/bc15cfdd-207c-4f50-8b80-b30c6b12127b + :target: https://github.com/nortikin/sverchok/assets/14288520/bc15cfdd-207c-4f50-8b80-b30c6b12127b + +* Generator-> :doc:`Line ` +* Generator-> :doc:`NGon ` +* Number-> :doc:`A Number ` +* Number-> :doc:`Number Range ` +* Viz-> :doc:`Viewer Draw ` +* Pulga Physics-> :doc:`Pulga Physics Solver ` + +-------- + +TODO: + Constant vector force: .. image:: https://raw.githubusercontent.com/vicdoval/sverchok/docs_images/images_for_docs/pulga_physics/pulga_vortex_force/blender_sverchok_pulga_vortex_force_example_01.png diff --git a/docs/old/cross_section.rst b/docs/old/cross_section.rst deleted file mode 100644 index 73d6aa984d..0000000000 --- a/docs/old/cross_section.rst +++ /dev/null @@ -1,64 +0,0 @@ -Cross Section -============= - -.. image:: https://user-images.githubusercontent.com/14288520/198750762-7dab4e74-e87e-4d72-b25b-90e0814c327b.png - :target: https://user-images.githubusercontent.com/14288520/198750762-7dab4e74-e87e-4d72-b25b-90e0814c327b.png - -Functionality -------------- - -Sect object with blender operator to edges/polygons (F or Alt+F cases). In some cases work better than new bisect node. - -.. image:: https://user-images.githubusercontent.com/14288520/198750770-d8a0e626-91c8-44ba-ab39-8fa26a932ecf.png - :target: https://user-images.githubusercontent.com/14288520/198750770-d8a0e626-91c8-44ba-ab39-8fa26a932ecf.png - -Inputs ------- - -**Vertices** and **polygons** for object, that we cut, **matrix** for this object to deform, translate before cut. **Cut matrix** - it is plane, that defined by matrix (translation+rotation). - -Parameters ----------- - -table - -+------------------+---------------+-----------------------------------------------------------------+ -| Param | Type | Description | -+==================+===============+=================================================================+ -| **Fill section** | Bool | Make polygons or edges | -+------------------+---------------+-----------------------------------------------------------------+ -| **Alt+F/F** | Bool | If polygons, than triangles or single polygon | -+------------------+---------------+-----------------------------------------------------------------+ - -.. image:: https://user-images.githubusercontent.com/14288520/198751510-df7f9d23-5ca4-476c-8953-9081b5b88c7b.png - :target: https://user-images.githubusercontent.com/14288520/198751510-df7f9d23-5ca4-476c-8953-9081b5b88c7b.png - -Outputs -------- - -**Vertices** and **Edges/Polygons**. - -Example of usage ----------------- - -.. image:: https://cloud.githubusercontent.com/assets/5783432/4222739/260e6252-3916-11e4-8044-66b70f3e15c9.jpg - :target: https://cloud.githubusercontent.com/assets/5783432/4222739/260e6252-3916-11e4-8044-66b70f3e15c9.jpg - :alt: cross_section.jpg - -* Generator-> :doc:`Sphere ` -* Float Serier (Old node): Number-> :doc:`Number Range ` -* Vector-> :doc:`Vector In ` -* Matrix-> :doc:`Matrix In ` -* Viz-> :doc:`Viewer Draw ` - ---------- - -.. image:: https://user-images.githubusercontent.com/14288520/198751767-869bcfae-1ada-4fc7-bd54-e90d80bb9113.png - :target: https://user-images.githubusercontent.com/14288520/198751767-869bcfae-1ada-4fc7-bd54-e90d80bb9113.png - -* Generator-> :doc:`Plane ` -* Generator-> :doc:`Torus ` -* Analyzers-> :doc:`Bounding Box ` -* Number-> :doc:`Number Range ` -* Vector-> :doc:`Vector In ` -* Matrix-> :doc:`Matrix In ` \ No newline at end of file diff --git a/docs/old/subdivide_lite.rst b/docs/old/subdivide_lite.rst deleted file mode 100644 index 68fb916acf..0000000000 --- a/docs/old/subdivide_lite.rst +++ /dev/null @@ -1,74 +0,0 @@ -Subdivide Lite Node -=================== - -.. image:: https://user-images.githubusercontent.com/14288520/200693616-08d9cb48-d5a1-4998-a9df-adc4fa3b6bf3.png - :target: https://user-images.githubusercontent.com/14288520/200693616-08d9cb48-d5a1-4998-a9df-adc4fa3b6bf3.png - -Functionality -------------- - -This node applies Blender's Subvidide operation to the input mesh. Please note that of options available differs from usual editing operator. - -.. image:: https://user-images.githubusercontent.com/14288520/200693965-1f1a23d2-3203-4ab0-8e8e-b9d70a00b10e.png - :target: https://user-images.githubusercontent.com/14288520/200693965-1f1a23d2-3203-4ab0-8e8e-b9d70a00b10e.png - -For more info see: Modifiers->Modifier Make-> :doc:`Subdivide ` - -Inputs ------- - -This node has the following inputs: - -- **Vertices**. Put here vertices of mesh. -- **edge_poly**. Put here edges or polygons of mesh. -- **Selection**. Selected edges to be subdivided. Can be selected by "bool mask" or "int index". Faces surrounded by subdivided edges can optionally be subdivided too. - -Parameters ----------- - -This node has the following parameters: - -- **Show Options**. If checked, then following parameters will be shown on the node. -- **Show Old**. If checked, then outputs with "old" geometry will be shown. By default not checked. -- **Show New**. If checked, then outputs with newly created geometry will be shown. By default not checked. -- **Falloff**. Smooth falloff type. Please refer to examples below for demonstration. -- **Corner cut type**. This controls the way quads with only two adjacent selected edges are subdivided. Available values are: - - - **Inner vertices** - - **Path** - - **Fan** - - **Straight Cut** -- **Select**. This controls which data Selection socket expects to select edges to which subdivision must be applied: - - - **by mask**. list of boolean like values. - - **by index**. list of indices. -- **Grid fill**. If checked, then fully-selected faces will be filled with a grid (subdivided). Otherwise, only edges will be subdiveded, not faces. Checked by default. -- **Only Quads**. If checked, then only quad faces will be subdivided, other will not. By default not checked. -- **Single edge**. If checked, tessellate the case of one edge selected in a quad or triangle. By default not checked. -- **Even smooth**. Maintain even offset when smoothing. By default not checked. -- **Number of Cuts**. Specifies the number of cuts per edge to make. By default this is 1, cutting edges in half. A value of 2 will cut it into thirds, and so on. -- **Smooth**. Displaces subdivisions to maintain approximate curvature, The effect is similar to the way the Subdivision Surface Modifier might deform the mesh. -- **Fractal**. Displaces the vertices in random directions after the mesh is subdivided. -- **Along normal**. If set to 1, causes the vertices to move along the their normals, instead of random directions. Values between 0 and 1 lead to intermediate results. -- **Seed**. Random seed. - -Outputs -------- - -This node has the following outputs: - -- **Vertices**. All vertices of resulting mesh. -- **Edges**. All edges of resulting mesh. -- **Faces**. All faces of resulting mesh. -- **NewVertices**. All vertices that were created by subdivision. This output is only visible when **Show New** parameter is checked. -- **NewEdges**. Edges that were created by subdividing faces. This output is only visible when **Show New** parameter is checked. -- **NewFaces**. Faces that were created by subdividing faces. This output is only visible when **Show New** parameter is checked. -- **OldVertices**. Only vertices that were created on previously existing edges. This output is only visible when **Show Old** parameter is checked. -- **OldEdges**. Only edges that were created by subdividing existing edges. This output is only visible when **Show Old** parameter is checked. -- **OldFaces**. Only faces that were created by subdividing existing faces. This output is only visible when **Show Old** parameter is checked. - -**Note**: Indicies in **NewEdges**, **NewFaces**, **OldEdges**, **OldFaces** outputs relate to vertices in **Vertices** output. - -Examples of usage ------------------ -.. image:: https://user-images.githubusercontent.com/22656834/36314797-ba6d502e-1357-11e8-9ce1-1e856f7e056f.png diff --git a/nodes/pulga_physics/pulga_drag_force.py b/nodes/pulga_physics/pulga_drag_force.py index 0e7c28434e..3ded0e269b 100644 --- a/nodes/pulga_physics/pulga_drag_force.py +++ b/nodes/pulga_physics/pulga_drag_force.py @@ -39,7 +39,7 @@ class SvPulgaDragForceNode(SverchCustomTreeNode, bpy.types.Node): name='Magnitude', description='Drag Force Constant', default=0.5, precision=3, update=updateNode) - exponent: FloatProperty(name='Exponent', description='Velocity exponent (2 = accurate)', default=1.0, update=updateNode) + exponent: FloatProperty(name='Exponent', description='Velocity exponent (2 = accurate, Liquid)', default=1.0, update=updateNode) def sv_init(self, context): self.inputs.new('SvStringsSocket', "Magnitude").prop_name = 'magnitude' diff --git a/nodes/pulga_physics/pulga_physics_solver.py b/nodes/pulga_physics/pulga_physics_solver.py index cc717fec38..1fd9ea1465 100644 --- a/nodes/pulga_physics/pulga_physics_solver.py +++ b/nodes/pulga_physics/pulga_physics_solver.py @@ -36,7 +36,7 @@ class SvPulgaPhysicsSolverNode(SverchCustomTreeNode, bpy.types.Node): is_animation_dependent = True iterations: IntProperty( - name='Iterations', description='Number of Iterations', + name='Iterations', description='Number of iterations of the process', default=1, min=1, update=updateNode) rads_in: FloatProperty( @@ -44,7 +44,7 @@ class SvPulgaPhysicsSolverNode(SverchCustomTreeNode, bpy.types.Node): default=1.0, update=updateNode) initial_vel: FloatVectorProperty( - name='Initial Velocity', description='Initial Velocity', + name='Initial Velocity', description='Initial vertices velocity', size=3, default=(0., 0., 0.), precision=3, update=updateNode) @@ -54,7 +54,7 @@ class SvPulgaPhysicsSolverNode(SverchCustomTreeNode, bpy.types.Node): density: FloatProperty( - name='Density', description='Density', + name='Density', description='Particles Density', default=1, update=updateNode)