Skip to content

AntonelloDN/Morpho.UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo Version

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

// 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);

About

🦋 Morpho UI for CAD plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published