2
$\begingroup$

Hope you're having a great day!

I made another post in regard of how to insert an image onto a face of a Polyhedron. I hope you could help me on this one too!

I want to change the length of the edges of my netimage polyhedron without changing his 3D model. Is it possible?

My polyhedron is:

PolyhedronData["DuerersSolid", "NetImage"] 

I want to change its edges. Is it possible?

$\endgroup$
4
  • 1
    $\begingroup$ To clarify, for my own interest: you want to have essentially the base 3D model be modified? But still remain the same? This is pedagogically opposed in my brain, can you explain what you are looking for slightly more? You can most definitely change the length of sides as you wish (I do not know how off-hand) but you would then change the model into a new one? (To my understanding then, the 3D model would be different.) $\endgroup$ Commented May 21, 2019 at 12:49
  • $\begingroup$ yeah! The first thing you said! I want to modify the lenght of the edges without changing the actual Polyhedron $\endgroup$ Commented May 21, 2019 at 12:58
  • $\begingroup$ so, do you mean to enlarge it? $\endgroup$ Commented May 21, 2019 at 12:58
  • $\begingroup$ Yeah, I actually want to change its size and lenght :) $\endgroup$ Commented May 21, 2019 at 13:05

1 Answer 1

2
$\begingroup$

Since the "NetImage" property of PolyhedronData is just an Image, you can only ImageResize it:

ImageResize[PolyhedronData["DuerersSolid", "NetImage"], Scaled@2] 

This can cause rasterization artefacts and defects, which is probably not what you want.

You may want "Net" instead:

PolyhedronData["DuerersSolid", "Net"] 

This outputs a scaleable Graphics object. You can see in the InputForm of this object (InputForm@PolyhedronData["DuerersSolid", "Net"]) that it does not have specific units in mind, and is scaleable. To scale it from the notebook interface, simply click on it and drag the handles. To scale it from code, you can use Show and ImageSize like the following:

Show[PolyhedronData["DuerersSolid", "Net"], ImageSize -> Full] 

enter image description here

You can also get other types of output from "Net", including "Graph" and a list of coordinates.

You can also do things such as create a MeshRegion from the Graphics object using DiscretizeGraphics:

enter image description here

It's important to note that these properties ("Net" and "NetImage") are not computed directly from a 3D object - they are pre-computed.

$\endgroup$
6
  • $\begingroup$ Thanks! I want to change the image directly (Moving one edge and twist a triangle, for example), is it possible? $\endgroup$ Commented May 21, 2019 at 13:50
  • $\begingroup$ Perhaps, but you may not be able to easily "reassemble" the polyhedron - is this your ultimate goal? $\endgroup$ Commented May 21, 2019 at 13:51
  • $\begingroup$ Yes, it is! Could you please show me how to do it? $\endgroup$ Commented May 21, 2019 at 13:58
  • $\begingroup$ Unfortunately, I don't know how you might best do that. Perhaps if you spend some time searching on this site, you might have some luck! $\endgroup$ Commented May 21, 2019 at 14:36
  • $\begingroup$ Thank you anyway! If i found something interesting I'll let you know then!! :) $\endgroup$ Commented May 21, 2019 at 14:38

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.