Add enum generation

This commit is contained in:
Carson Katri 2022-11-17 13:07:50 -05:00
commit 828fb8b6da
9 changed files with 226 additions and 40 deletions

View file

@ -121,4 +121,30 @@ The same script without chaining calls is written more verbosely as:
@tree("Cube Tree")
def cube_tree(size: Vector):
return mesh_to_volume(mesh=cube(size=size))
```
### Spanning Multiple Lines
Often times you want each chained calls to be on a separate line. There are a few ways to do this in Python:
1. Newlines around arguments
```python
cube(
size=size
).mesh_to_volume()
```
2. Parentheses
```python
(cube(size=size)
.mesh_to_volume())
```
3. Line continuation
```python
cube(size=size) \
.mesh_to_volume()
```