ArtifactForms/MeshLibCore

View on GitHub
documentation/assets.md

Summary

Maintainability
Test Coverage
# Asset Creators

## ArchCreator

![arch-creator-1](./images/arch_creator.png)

**Example**

```java
Mesh3D mesh;
ArchCreator creator = new ArchCreator();
creator.setSegments(32);
creator.setRadius(2);
creator.setExtendTop(1);
creator.setExtendBottom(4);
creator.setExtendLeft(1);
creator.setExtendRight(2);
creator.setDepth(0.5f);
mesh = creator.create();

````

![arch-creator-2](./images/arch_creator_2.png)

## ArchDoorCreator

![arch-door-creator](./images/arch_door_creator.png)

**Example**

```java
Mesh3D mesh;
ArchDoorCreator creator = new ArchDoorCreator();
creator.setRadius(2);
creator.setDepth(0.2f);
creator.setExtendBottom(4);
creator.setSegments(10);
mesh = creator.create();
```

## FlangedPipeCreator

![flanged-pipe-creator-2](./images/flanged_pipe_creator_2.png)

**Example**

```java
Mesh3D mesh;
FlangePipeCreator creator = new FlangePipeCreator();
creator.setSegmentCount(5);
creator.setBoltCount(24);
creator.setRotationSegments(64);
creator.setFlangeOuterRadius(2);
creator.setFlangeGrooveWidth(0.05f);
creator.setPipeRadius(1.8f);
creator.setFlangeDepth(0.2f);
creator.setPipeSegmentLength(5);
creator.setBoltHeadPercantage(0.8f);
creator.setBoltHeadHeight(0.08f);
creator.setBoltCapFillType(FillType.N_GON);
mesh = creator.create();
```
![flanged-pipe-creator-1](./images/flanged_pipe_creator.png)