Mathematica code?

18 views
Skip to first unread message

Roger Kaufman

unread,
Aug 27, 2024, 12:48:15 PM8/27/24
to antiprism
Hi All,

From Anton's discussion I found this web page. There is a model I'd
like to convert to off.

https://community.wolfram.com/groups/-/m/t/1301599

This seems to be a subset of a mathematica subject

https://mathworld.wolfram.com/TetragonalAntiwedge.html

Cutting and pasting, I can't get seem to get the right file type for
Mathematica to open it and it just crashes. I had Windows Copilot take a
crack at it but the coordinates it produced weren't correct.

Roger

Adrian Rossiter

unread,
Aug 27, 2024, 2:25:01 PM8/27/24
to antiprism
Hi Roger
I don't understand the vertex data, but the face data can have its numbers
reduced by one and written as OFF, and the model can then be unscambled
and canonicalised. I have attached the basic OFF file

poly_form -a u tet_wedge.off | poly_form -a U | canonical | off_report

volume = 3.1410585339225663

Adrian.
--
Adrian Rossiter - adr...@antiprism.com
http://www.instagram.com/adrian_rossiter
http://antiprism.com/adrian
tet_wedge.off

Roger Kaufman

unread,
Aug 27, 2024, 3:48:33 PM8/27/24
to anti...@googlegroups.com
Hi Adrian,

On 8/27/2024 2:24 PM, Adrian Rossiter wrote:
> I don't understand the vertex data, but the face data can have its
> numbers
> reduced by one and written as OFF, and the model can then be unscambled
> and canonicalised. I have attached the basic OFF file
>
>    poly_form -a u tet_wedge.off | poly_form -a U | canonical | off_report
>
>    volume = 3.1410585339225663

I was making it too complicated. I already had the base model (made the
hexahedrons a while ago). When output with its reciprocal it makes the
model he has. I rather foolishly thought what he was showing was a
single polyhedra.

poly_form -a u tet_wedge.off | poly_form -a U | canonical -O bd -l 16 |
off_trans -y full | off_color -f S -e lightgrey -v gold | antiview

He claims it is self dual and it that is verified.

poly_form -a u tet_wedge.off | poly_form -a U | canonical -O b -l 16 |
off_trans -y full | pol_recip -c M -a | antiview

It is interesting that AI tried to calculated the coordinates and didn't
refuse to do it. Even though it was wrong it stated the steps it took to
calculate the vertices and it seemed legit.

Roger


Reply all
Reply to author
Forward
0 new messages