Skip to content

Comments

Add closest edgelengths to fit cuboid and rectangle#52

Open
Jmariambbu wants to merge 1 commit intokrcools:masterfrom
Jmariambbu:bugfix/rectangle_and_cuboid
Open

Add closest edgelengths to fit cuboid and rectangle#52
Jmariambbu wants to merge 1 commit intokrcools:masterfrom
Jmariambbu:bugfix/rectangle_and_cuboid

Conversation

@Jmariambbu
Copy link
Contributor

Previously, the meshrectangle, meshcuboid and tetmeshcuboid functions changed the geometry to fit to the multiples of a specified edgelength. There was however, a bug that gave an incorrect geometry, in the case of dimensions of the geometry not being multiples of the edgelength.
The functions are now changed to produce the geometry with the specified dimensions, and readjust (multiple, if need be) edgelength(s) to fit the specified length, breadth (and height, in cuboid). These edgelengths are picked to be factors of the dimensions of the geometry, that are closest to the specified edgelength.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant