semvec/pypi-packages huggingface dataset:
elbow-creator 0.2.1
A package to create an elbow mesh in Blender


### Step 2: Install the Package in Blender

To install the package in Blenderâ€™s Python environment:

1. **Locate Blenderâ€™s Python Executable:**
   - Open Blender.
   - Go to the `Scripting` workspace.
   - Open a new Text Editor and run the following script to print Blender's Python executable path:
     ```python
     import sys
     print(sys.executable)
     ```

2. **Open a Terminal and Navigate to Blenderâ€™s Python Directory:**
   - Copy the path printed from the above script.
   - Open a terminal and navigate to Blenderâ€™s Python directory:
     ```bash
     cd /path/to/blender/installation
     ```

3. **Install the Package:**
   - Navigate to the directory containing `setup.py` and run:
     ```bash
     /path/to/blender/python/bin/python3.7m -m pip install .
     ```

### Step 3: Create a New Script in Blender to Use the Package

1. **Open Blender and Go to the Scripting Workspace:**
   - Open Blender.
   - Switch to the `Scripting` workspace.

2. **Create a New Script:**
   - Click `New` in the Text Editor panel to create a new script.
   - Save this script with a name, for example, `run_elbow_creator.py`.

3. **Write the Script to Use the Package:**

```python
import bpy
from elbow_Creator import create_elbow

# Example usage
radius = 1
point1 = (0, 0, 0)
point2 = (2, 2, 0)
create_elbow(radius, point1, point2)
solid-angle-utils 0.1.2
Helps you with solid angles and cones.

#################
Solid Angle Utils
#################
|TestStatus| |PyPiStatus| |BlackStyle|

A python-package to help with solid angles.

*******
install
*******

.. code:: bash

    pip install solid_angle_utils


**************************
simple conversion of units
**************************

Inspired by ``numpy`` ``rad2deg`` and ``deg2rad``.

.. code:: python

    import solid_angle_utils

    a_sr = solid_angle_utils.squaredeg2sr(10)
    print(a)
    0.0030461741978670856

    a_sqdeg = solid_angle_utils.sr2squaredeg(a_sr)
    print(a_sqdeg)
    10.0


*****
Cones
*****

Convert solid angle to half angle, and the other way around.

.. code:: python

    import solid_angle_utils

    cone_sa = solid_angle_utils.cone.solid_angle(half_angle_rad=0.1)
    0.031389755322205774

    cone_ha = solid_angle_utils.cone.half_angle(solid_angle_sr=cone_sa)
    0.0999999

    solid_angle_utils.cone.half_angle_space(0, 0.1, 3)
    array([0.        , 0.07069594, 0.1       ])


*********
Triangles
*********

Estimate the solid angle of a spherical triangle.

.. code:: python

    import solid_angle_utils
    import numpy as np

    x, y, z = np.eye(3)
    full_sphere_solid_angle = 4 * np.pi

    triangle_solid_angle = solid_angle_utils.triangle.solid_angle(
        v0=x, v1=y, v2=z
    )

    print("Expect 1/8: ", triangle_solid_angle/full_sphere_solid_angle)




.. |BlackStyle| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

.. |TestStatus| image:: https://github.com/cherenkov-plenoscope/solid_angle_utils/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/cherenkov-plenoscope/solid_angle_utils/actions/workflows/test.yml

.. |PyPiStatus| image:: https://img.shields.io/pypi/v/solid_angle_utils
    :target: https://pypi.org/project/solid_angle_utils