semvec/pypi-packages huggingface dataset:
aep-sdk 0.0.5
A SDK for the Adobe Experience Platform
Requires Python: >=3.7

# Experience-Platform-Python-SDK

#### This Python SDK is designed to facilitate access to the Adobe Experience Platform Rest APIs and the associated tools.

#### In order to use this SDK you will first need to have an account with the Adobe Experience Platform along with the necessary authentication information.

#### See the [Adobe Experience Platform API Documentation](https://www.adobe.io/apis/experienceplatform/home/api-reference.html) for more information.

---

## Getting Started

To begin first install the required dependencies using "pip install -r requirements.txt" in the terminal
dualmesh 0.14.0
Python module for generating dual meshes
Requires Python: >=3.6

# DualMesh [![Build Status](https://travis-ci.org/BartoszBartmanski/DualMesh.svg?branch=master)](https://travis-ci.org/BartoszBartmanski/DualMesh)

Python module for generating dual meshes.

## Requirements

* meshio >= 4.0
* numpy >= 1.16.3

## Installation

Either install using pip
```
pip install dualmesh
```
or copy the file dualmesh.py from the dualmesh directory in this repository.

## Example

We can go through the example of using dual_mesh.py module.

First, we import all the needed modules
```
# For opening a mesh file
import meshio
# For generating a dual mesh
import dualmesh as dm
# For plotting both the mesh and dual mesh
import matplotlib.pyplot as plt
```

We load the mesh for which we want a dual mesh
```
msh = meshio.read("example.msh")
```

We get the dual mesh object using dual_mesh.py
```
dual_msh = dm.get_dual(msh, order=True)
```

We use matplotlib to plot the original mesh
```
fig, ax = plt.subplots()
ax.triplot(msh.points[:, 0], msh.points[:, 1], msh.cells["triangle"])
```

We loop over the polygons (cells) in the dual mesh and we plot them
```
for cell in dual_msh.cells["polygon"]:
    # We get the coordinates of the current polygon.
    # We repeat one of the points, so that when plotted, we get a complete polygon
    cell_points = dual_msh.points[cell + [cell[0]]]

    # We plot the points of the current polygon
    ax.plot(cell_points[:, 0], cell_points[:, 1], ":", color="black")
```

And finally we add the legend and save the resulting figure
```
# We add a legend to the figure
fig.legend([ax.lines[0], ax.lines[-1]], ["Mesh", "Dual mesh"])
# We save the resulting figure
fig.savefig("example.png")
```

![Mesh and dual mesh](https://github.com/BartoszBartmanski/DualMesh/blob/master/example.png)