compas-dev / compas-dev/compas

rectangle from frame, width and height

Open
#1,036 0 comments 0 reactions 1 assignee Claimed by @tomvanmele View on GitHub
enhancement
Dominant language
Python
Stars
386
Forks
122
Avg merge
11d 46m
Merged PRs (30d)
1

Description

# Feature Request

rectangle from frame (plane), width and height.
simple shape but didn't find a straight forward way to create it.

## Details

**Describe the solution you'd like**
maybe it could be included in `Polygon` class as method `Polygon.from_frame_width_height()` ?

**Describe alternatives you've considered**
i used the Box class top face
```
box = Box(some_frame, w, h, d)
top_face_pts = box.vertices[:4]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.