Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonellodn/morpho.ui
🦋 Morpho UI for CAD plugin
https://github.com/antonellodn/morpho.ui
Last synced: about 1 month ago
JSON representation
🦋 Morpho UI for CAD plugin
- Host: GitHub
- URL: https://github.com/antonellodn/morpho.ui
- Owner: AntonelloDN
- License: agpl-3.0
- Created: 2023-11-05T12:29:05.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-23T21:06:12.000Z (about 1 year ago)
- Last Synced: 2024-10-25T13:29:08.701Z (about 2 months ago)
- Language: HTML
- Homepage:
- Size: 320 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Logo](https://github.com/AntonelloDN/Morpho/blob/master/logo/logo_morpho_32.png)
[![Version](https://img.shields.io/nuget/v/Morpho.Envimet.UI.svg?color=royalblue)](https://www.nuget.org/packages/Morpho.Envimet.UI)# Morpho UI
UI to use for CAD plugin.### Mapping with Morpho Core
| Morpho entity | Morpho UI constructor |
| --------------- | --------------- |
| Location | `new EntityForm("location", location.Serialize())`|
| Grid | `new EntityForm("grid", grid.Serialize())`|
| Building | `new EntityForm("building", grid.Serialize())`|
| Plant2d | `new EntityForm("plant2D", plant2d.Serialize())`|
| Plant3d | `new EntityForm("plant3D", plant3d.Serialize())`|
| Receptor | `new EntityForm("receptor", receptor.Serialize())`|
| Source | `new EntityForm("source", source.Serialize())`|
| Soil | `new EntityForm("soil", soil.Serialize())`|
| Terrain | `new EntityForm("terrain", terrain.Serialize())`|# Examples
```csharp
// Create grid with Morpho
var nestingGrids = new NestingGrids(3, "000000", "000000");
var size = new Size(new MorphoGeometry.Vector(0, 0, 0), new CellDimension(3, 3, 3), 100, 100, 25);
var eqGrid = new Grid(size, nestingGrids);// Serialize
var jsonString = eqGrid.Serialize();// Create grid form
var form = new EntityForm("grid", jsonString);// Show grid form
form.ShowDialog();// Get data on submit
var data = form.Connection.Data;// Deserialize
var newGrid = Grid.Deserialize(data);
```