Visio Guy

Visio Guy Website & General Stuff => User-submitted Stuff => Topic started by: JuneTheSecond on November 17, 2012, 01:04:00 PM

Title: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on November 17, 2012, 01:04:00 PM
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.

Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: Paul Herber on November 17, 2012, 01:25:06 PM
Amazing, Junichi, just amazing.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: cliff50 on November 17, 2012, 11:31:02 PM
 ;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
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on November 24, 2012, 11:15:10 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on November 25, 2012, 11:47:36 PM
And here is 3D rectangle with 4 round corners.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: cliff50 on November 26, 2012, 03:02:12 AM
 :o awesome Junichi ....  my compliments to the chef  ;D
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 06, 2012, 06:29:29 AM
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?
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 10, 2012, 12:06:40 PM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 12, 2012, 06:57:50 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: cliff50 on December 13, 2012, 06:11:52 AM
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
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 13, 2012, 07:38:02 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 19, 2012, 11:20:46 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 20, 2012, 01:46:10 AM
Here are Shapes generated from Polygons with Visio Guy's Polygon Maker.
http://www.visguy.com/2006/11/24/polygon-maker/
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 20, 2012, 08:05:46 AM
And here is a 20 teeth gear.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 21, 2012, 12:41:23 PM
The macro is improved for more complicated concave polygons.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 21, 2012, 11:50:40 PM
From more complicated concave polygon.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 22, 2012, 11:47:36 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 27, 2012, 10:39:39 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: vojo on December 28, 2012, 05:07:38 AM
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!!!
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 28, 2012, 12:16:34 PM
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.

Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on December 29, 2012, 06:21:21 AM
For another type of polygon.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 07, 2013, 04:33:01 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 07, 2013, 04:34:26 AM
Another type of shading on page 2.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 08, 2013, 11:05:07 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 08, 2013, 01:34:02 PM
Here are more 2 examples.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 08, 2013, 01:35:37 PM
And second image.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 09, 2013, 01:50:23 AM
And enjoy another types of shaded 3D shapes.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 09, 2013, 01:53:37 AM
Here is an example or animation gif.
Shaded on concaved 3D shapes.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: cliff50 on January 09, 2013, 03:57:25 AM
excellant ideas and creativity
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 11, 2013, 11:05:05 AM
Here are 3D shapes for character like C, G and S.
A, B, O are my next target.
Please, wait.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 11, 2013, 12:17:43 PM
Animation gif for character S.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 21, 2013, 01:21:55 AM
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)
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 21, 2013, 01:22:52 AM
And its gif animation.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: Yacine on January 21, 2013, 07:40:58 AM
impressive
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 21, 2013, 11:53:59 PM
P, another character.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 22, 2013, 05:04:09 AM
This macro can be applied up to 4 holes.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 22, 2013, 05:05:19 AM
And here is the animated gif.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: Visio Guy on January 22, 2013, 11:08:51 AM
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)
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 23, 2013, 04:51:43 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: Visio Guy on January 23, 2013, 01:11:15 PM
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!
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 24, 2013, 01:46:15 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 28, 2013, 10:31:06 AM
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.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 28, 2013, 10:47:51 AM
And here is the Visio drawing that is zipped
because it'size is over 500kB.
Please download and unzip the file.
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: Hey Ken on January 28, 2013, 01:52:16 PM
   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
Title: Re: 3D Rotation Shapes in Visio 2007 or 2010
Post by: JuneTheSecond on January 29, 2013, 06:33:02 AM
The author, Thaves, may have read the book "Flatland: A Romance of Many Dimensions " last night.