CadQuery / CadQuery/cadquery

Parameter names for box/rect width and height are confusing

Open
#1,491 3 comments 0 reactions 0 assignees View on GitHub
usability
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

I recognise this may be subjective, and there may be compatibility issues with altering the names that prevent change here. I wanted to open a discussion and see if I'm alone in getting these constantly mixed up.

Currently width is used for distance in Y, length for X. The problem is, depending on the shape, these might be swapped. For example, the front of a car is its width, which would be on the X. From quick googling, the only consensus I can find is that length is the long side and width is the short side, which is clearly not appropriate for cad modelling.

Openscad uses width for X as well, but uses depth for Y - which is much less ambiguous.

I propose renaming width to depth in this instance, but really just want to discuss and see what the maintainers think

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.