Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add asymptote-formatted dodecahedron, icosahedron, octahedron and tetrahedron #1345

Merged
merged 14 commits into from
Feb 4, 2025

Conversation

rocky
Copy link
Member

@rocky rocky commented Feb 1, 2025

No description provided.


<dl>
<dt>'Dodecahedron[]'
<dd>a regular dodecahedron centered at the origin with unit edge length.

<dt>'Dodecahedron[$l$]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Dodecahedron'[$1$]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is "l" for length. See https://reference.wolfram.com/language/ref/Dodecahedron.html or the "dd" description.

<dt>'Dodecahedron[$l$]'
<dd>a regular dodecahedron centered at the origin with edge length $l$.

<dt>'Dodecahedron[{$x$, $y$, $z$}, ...]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Dodecahedron'[{$x$, $y$, $z$}, ...]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Good. Docstrings have been revised here.

<dd>a regular dodecahedron centered at the origin with edge length $l$.

<dt>'Dodecahedron[{$x$, $y$, $z$}, ...]'
<dd>a regular dodecahedron centered at {$x$ $y$, $z$}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{$x$, $y$, $z$}

@rocky rocky force-pushed the add-asy-dodecahedron branch from 517b4c8 to 5740dde Compare February 2, 2025 00:04
@mmatera
Copy link
Contributor

mmatera commented Feb 2, 2025

Notice that now the format of the docstrings is checked by the consistency tests.
This code helps to put the docstrings in order:
fix_docstrings_py.txt

@rocky rocky force-pushed the add-asy-dodecahedron branch from 1db94c4 to eb8ca09 Compare February 2, 2025 00:12
@rocky
Copy link
Member Author

rocky commented Feb 2, 2025

I will be adding octahedron soon.

@rocky rocky changed the title Add asy dodecahedron Add asy dodecahedron, and tetrahedron Feb 2, 2025
@rocky rocky changed the title Add asy dodecahedron, and tetrahedron Add asymptote-formattted dodecahedron, octahedron and tetrahedron Feb 2, 2025
@rocky rocky force-pushed the add-asy-dodecahedron branch 11 times, most recently from 526d563 to 4dc7012 Compare February 3, 2025 01:10
@@ -42,12 +80,21 @@ class Dodecahedron(Builtin):

class Icosahedron(Builtin):
"""
<url>:WMA link:
https://reference.wolfram.com/language/ref/Icosahedron.html</url>
<url>:Icosahedron:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still produces a sphere in ASY

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. This is the last one to do.

@rocky rocky changed the title Add asymptote-formattted dodecahedron, octahedron and tetrahedron Add asymptote-formatted dodecahedron, icosahedron, octahedron and tetrahedron Feb 4, 2025
rocky added 5 commits February 4, 2025 03:38
Use a less bright light.
split off asymptote polyhedra code
Add cube
@rocky rocky force-pushed the add-asy-dodecahedron branch from 1999ddb to b5a8435 Compare February 4, 2025 08:39
@rocky rocky force-pushed the add-asy-dodecahedron branch from b5a8435 to cf0513e Compare February 4, 2025 08:42
@rocky rocky merged commit 8874890 into master Feb 4, 2025
14 checks passed
@rocky rocky deleted the add-asy-dodecahedron branch February 4, 2025 17:30
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.

2 participants