Here are shapes that can rotate like in 3D space.
Select a shape on drawing page, slide vertical and holizontal controll points.
They rotate in both Visio 2007 and Visio 2010.
They are almost same as in Visio 2013 issue.
New shapes are color cube and rectangle with round corner.
They do not rotate in Visio 2003,
because I used EVALCELL function and ARG function
in many cells that Visio 2003 does not support.
Colors of the color cube can be changed with Visio fill menu.
The radius of round corner can be changed in the shape data table.
The curve of corner is elipticalarc.
For me the culculation of ellipticalarc is not easy,
and then it will twists at certain angles when perspective angle
is not zero. When twisted, you can adjust the arc by changing
the aspect ratio of the arc.
Amazing, Junichi, just amazing.
;D Fantastic June, can't wait to download it and take it for a "spin " pardon my pun ;) not having seen 2013 I am thinking it must have shapes that act very similar as you suggested.
The eliptical arc problem I am having trouble with. it seems to me that visio have an in built function in the ( my memory is being taxed here) a b c d cells of shape geometry row -> elipticalarcto which accepts parameters from other cells within the shapesheet :o
Now, the elliptical arc does not twist.
I've got calculation for cells C and D,
correct angle and aspect rario.
Rotate shapes with control points
holizontal and vertical.
Please enjoy.
And here is 3D rectangle with 4 round corners.
:o awesome Junichi .... my compliments to the chef ;D
If you take extremely wide perspective angle, the corner arc twists.
It is because the angle and aspect ratio are regarded as the same for all corner arcs.
But it is approximate assumption.
Here is improved rectangle with 4 corners.
Improved shape has arcs that have different angle and aspect ratio.
Arc does not twist when in 140 degrees in perspective angle.
However, improved shape requires 4 times as much data in the shape sheet.
Which do you like best?
Now I am adding 3D shapes with various color faces.
I am starting with convexed type figures, as the treatment for hidden surface is relatively simple.
But for concaved type figures like a star, I have not yet found any simple way.
I've got an idea for the star shape.
Each edge has multiple faces that have different z-order.
Just one of the faces is turned visible in any rotation angle.
For star shape each edge has only 2 faces,
one is shown in 0-180 degrees in y-direction angle,
another is shown in 180-360 degrees.
I am going to try for other types of shapes.
Hi Junichi, for my curiosity ...are you using the formula -> IF(User.IsPerspective,User.ep7,User.eo7) in the Geometry10.NoFill as a trigger to determine if the "concave" surface is visiable or not ?
Are the coloured rectangles, seperate 2D shapes which are attached to the "concave" areas of the star framework ?
Cheers Cliff
IF(User.IsPerspective,User.ep7,User.eo7)
is checking only a flat plane is visible or invisible
from the viewpoint.
Separate 2 sheets of rectangle are atattched to Geometry10.
Each has the prefixed z-order so that it may be visible under or above other geometry's rectangle.
One of them has correct z-order, if the rotation angle to y-direction is from o to 180 degrees.
Another has z-order for 180 to 360 degrees.
One of them has the formula in Geometry1.NoShow
OR(Sheet.1!Geometry10.NoFill,Sheet.1!User.North).
Another has
OR(Sheet.1!Geometry10.NoFill,Sheet.1!User.North).
If one is visible, another is not visible.
I made a macro to generate 3D rotatable color shapes from Visio shape.
It has 3 options, convex, star and concave.
In option convex it automatically generates 3D shapes.
In other options you need to adjust z-order of the faces once.
Once you adjust z-order generated shapes always rotate normally.
The color of faces are automatically generated by Visio random function.
You can change each face color with Visio fill color menu.
Attatched Visio drawing has many various 3D shapes generated with this macro.
Please, enjoy creating your own 3D shapes.
Here are Shapes generated from Polygons with Visio Guy's Polygon Maker.
http://www.visguy.com/2006/11/24/polygon-maker/
And here is a 20 teeth gear.
The macro is improved for more complicated concave polygons.
From more complicated concave polygon.
I think I met the limit of my method.
This is an example that it is very difficult to fix z-order of the faces.
I've added macro to adjust z-order of side faces of 3D shape.
Right-click menu can adjust z-order semi-automatically,
and selection of 2 overlapping faces can swap z-order manually.
Attached drawing has the detailed description with examples
and the macro to adjust z-order, and of course with macro
to generate 3D shape.
june....this is great stuff
you ought to think about prettying this up and making it an addon
- allow user to set depth of each manifold
- allow user to set color of each manifold
- export as a 2D bit map for others who dont have addon / or use addon for details work and use resulting shape elsewhere
maybe a simple spreadsheet....or...a addon shape sheet kind of thing
really cool stuff!!!
Thank you for your suggestion.
I would begin from the exportation as gif images.
Attached Visio drawing has a macro to export 3D shapes as 24 gif images
that have different rotation angle by 15 degrees.
For another type of polygon.
I've added a macro that makes shading on 3D rotation shape.
You can change the inlet angles of light on the shape data table,
and can limit the maximum and minimum of luminance value on the table.
Default widest limit of luminunce is 0 to 240.
I hope you enjoy shading.
Another type of shading on page 2.
I found some mistakes in my shading macro.
Above shading macro was modified and replaced by new drawing with macro.
Also the animation images were replaced.
Here are more 2 examples.
And second image.
And enjoy another types of shaded 3D shapes.
Here is an example or animation gif.
Shaded on concaved 3D shapes.
excellant ideas and creativity
Here are 3D shapes for character like C, G and S.
A, B, O are my next target.
Please, wait.
Animation gif for character S.
Here is a Visio drawing with macro that makes 3D shapes and shading
like B or R in abc characters.
(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4614)
And its gif animation.
impressive
P, another character.
This macro can be applied up to 4 holes.
And here is the animated gif.
It's nice to see them all at once:
(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4558;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4563;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4571;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4573;image)
(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4576;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4577;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4583;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4592;image)
(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4605;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4614;image)(http://visguy.com/vgforum/index.php?action=dlattach;topic=4368.0;attach=4617;image)
Thank you!
Would you tell me how did you post many image on a page here?
By the way, inspired by your wonderful show,
I am going to added a macro to export many as image.
Your images have already been posted, so I just right-clicked, then placed the link between an IMG tag:
[IMG] ...link... [/IMG]
Normally, there is a limit of two uploads/attachments. But links aren't attachments!
Thank you Visio Guy, now I learnd how to use IMG tag.
And I've added a macro to rotate a string "Visio Guy".
If you click the image below, then animation starts.
It is very good, if there is the Earth at the center.
Fortunately, I found Multi-Earth in Visio Guy's home page at
http://www.visguy.com/2007/06/06/multi-earth-shape/.
I placed at the center and run macro to export as gif image,
and made an animation gif.
Please, click the image below, and animation starts.
And here is the Visio drawing that is zipped
because it'size is over 500kB.
Please download and unzip the file.
Saw this in this morning's comics and it seemed so apropos for this thread. And I always enjoy a good pun (oxymoronic though the concept "good pun" may seem).
(http://assets.amuniversal.com/7fb8df20432101300f4f001dd8b71c47)
http://www.gocomics.com/frankandernest/2013/01/28 (http://www.gocomics.com/frankandernest/2013/01/28)
- Ken
The author, Thaves, may have read the book "Flatland: A Romance of Many Dimensions " last night.