DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Projections of solid into planes

Started by j-wetzel, March 25, 2015, 01:50:45 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

#15
prl
ok, thanks, I found I had downloaded that one after all - in the end I have ended up (usually) using your vct.d3m, (OR bdeck's vdd.d3m) - and running it each time from the spacebar command line.   I might change "hotkey Y" to that, (vct), or maybe vch.

interesting to compare
1. vct = view centre this (object)
2. vch = view centre here (point set with left or right-click),  and
3. vc = similar to vch.

Sometimes you add "setview" to the script, and sometimes not.

Trouble with vch and vc imho (hope I'm right) is that you can't be confident of the depth into the page that the view centre is set  - UNLESS you right-click on the corner of an object or point or end of line etc.   

Let's face it, unless there are objects (to qualify as "this" in vct), you don't need to inspect anything.    And, taking JW's example here, then vct would be perfect yes?

AND ,,,  not to forget bd's vdd.d3m  - what a ripper of a macro that is. 
Details of its genesis here :- 
http://forum.designcad.com/index.php?topic=5522.45
post #48 = vdd09d.d3m  is the version I add below.

Dr PR

Sam,

I have been using vc.d3m for quite a while and it is far superior to the "Set View by ..." functions. You are right that it works best by gravity snapping to a point on an object, but that's what makes it so special. The view rotates around the object you are interested in. With the other "Set View ..." function the object you are interested in either moves off screen (that's really useful!) or the view zooms out.

I replaced the default "Y" function with vc.d3m. If I need that "Set View by View Center" function it is still available on the View Toolbox.

The only fault with vc.d3m is that it is a macro. That means it cannot be used "inside" another function the way real commands can be used. For example, you can't start the "Line" function, set a point and then use vc.d3m to center the view on an object and rotate the view. A macro will terminate any function in progress when it starts.

I really wish DT and company would implement vc as a true command. That would be a major improvement.

Phil
DesignCAD user since 1987

samdavo

#17
Phil
great thanks - I will amend my Y hotkey for sure.

To others who are happy to use truly possessive macros (and this one is more possessive than most ) ...

On the subject of vdd09b.d3m,  (BRILLIANT MACRO IMHO), if I were you,  then I would rename it vd.d3m  - and then it is easily called up with spacebar-vd-enter, 

and as soon as you do that, you press H for help , and then experiment with the multiple options that are presented - just be real careful with pressing "esc"  (or maybe "esc"x2).  That will get you back your normal commands and normal hotkeys (which have been temporarily 'kidnapped').
cheers
.....................
ps - Status bar will tell you that the macro is running - and that H= help will give you the altered hotkeys ( to suit the new "View Destination" ).  It will also tell you to hit anykey to exit Help menu ...  and esc  to exit the macro ...
brilliant stuff.

samdavo

#18
prl has posted macros SpinL, R, U and D elsewhere  - and these are really convenient.
http://forum.designcad.com/index.php?topic=6167.msg43948#new

But just for fun, I mention bdeck's macro vdd09b.d3m again - (posted above) - and his most unusual option of the "eccentric spin"...

To try it out, do a 3D drawing of a cube and a sphere beside it  (more or less filling the screen in main view), then run the macro, then press E for eccentric view,  then finally press the arrow keys left and right, up and down.
Eccentric is well named lol.

Another thing I quite like - certainly interesting -  is that the up and down arrows only go as far as +90 and -90 respectively.   I find that this helps keep me oriented.   (or otherwise yuo can do somersaults, and it is hard to imagine what's going on when you are 3/4 the way through a somersault, and - suppose you are looking face on to a horse - then otherwise you could be looking up at the horses tail, etc.  Disconcerting :)

PS Hence, to see the "back" (top to bottom) with bdeck's macro, you have to spin left or right, and THEN run up and down (2 cents)

PS , to set the view centre with bdeck's macro, I find it best to hit X twice. 

Bottom line here ...  You can have BOTH
a) reassigned arrows for SpinL R U and D, and yet
b) STILL have the option of using vdd09d.d3m   as required ( which I have renamed vd.d3m incidentally), i.e. turning this macro on and off as required, with "vd" and "esc" resp.  And whilst this is running it overrides SpinL etc - i.e. you can get "eccentric spin left" rather than just normal spinL when using the left arrow.
 

samdavo

#19
and finally I have amended bdeck's macro so that arrows APPEAR to rotate the object(s) not the camera  - as per prl's philosophy,  (spinL.d3m,  spinR, U and D likewise).   Attachment vd2.d3m refers.

dead simple lol, just needed a change of sign for da, now = -5, angular increment;
and also Pgangle, now = -30  (2 cents).

Having thought about it, I agree with prl (and hence I disagree with the direction of the default DCAD viewbox)  - this is not dissimilar to panning really.

j-wetzel

  Thanks again to you all.  Let me explain briefly what I am trying to do.
  As is very well known, it is possible to cut a tunnel through a cube of unit side large enough that a second cube of unit side can slide through it.  That passage would make an interesting animation, if someone has the time and energy.
  A convex solid is said to have the Rupert property, or to be Rupert, if a tunnel can be cut through it (without its falling to pieces) that is large enough that a second solid of the same type and size can be slid though it.  (Prince Rupert, who lived in the 1600s, is said to have won a bet that such a cube passage was possible.)  Richard Jerrard and I have managed to show that all five Platonic solids (tetrahedron, cube, octahedron, dodecahedron, and icosahedron) have this property and so are "Rupert."
  Sometime between 2000 and 2005, Jerrard wrote up some very detailed notes using coordinates (especially for the dodecahedron and the icosahedron) to prove these claims, and then most unfortunately he went into a long period of slowly failing health, leading to his death last year.  What I'm trying to do is to write a mathematical article for publication proving his assertions, with suitable illustrations that I'm now trying to draw using DesignCAD.
--Jack

prl

#21
Quote from: j-wetzel on March 28, 2015, 10:36:51 PM
What I'm trying to do is to write a mathematical article for publication proving his assertions, with suitable illustrations that I'm now trying to draw using DesignCAD.

That is a wonderful tribute to Richard J. and a good mission to keep yourself going too.  I will gladly help you.

If we have polluted your thread too much, feel free to start another topic and we the forum members will keep it focused on this mission of yours.

By the way Jack, you can attach hand sketches to the posts provided you have a scanner.   What may be clear and obvious to you because of your familiarity with the mathematics is new and unknown to me and others.  And we may have the answers for how to get DC to show/prove things.

Are the tunnels always a cube, meaning a square hole as opposed to a round tunnel as in a drilled hole? 

Dr PR

For us non-mathematicians it might help if you define "falling apart."

Passing one virtual object through another is trivial in DesignCAD because the objects always maintain their integrity.

Also, apparently the "tunnel" can pass through edges and vertices of the solids - otherwise you wouldn't even consider multifaceted objects like the dodecahedron and icosahedron.

Phil
DesignCAD user since 1987

prl

#23
Quote from: Dr PR on March 29, 2015, 07:39:15 AM
For us non-mathematicians it might help if you define "falling apart."

Having looked up what Jack is describing, "not falling apart" means  "no free-standing pieces or corners of the original".  See http://forum.designcad.com/index.php?topic=6168  The red cube is "not falling apart".

j-wetzel

#24
  Gorgeous, prl.  Amazing.  I wish I could handle DC as well as you and your friends!

  So, what is a "tunnel"?  We (the editorial "we") seek a straight hole in the solid through which the (other) solid can be "slid."  We're looking for "straight" sides; screw motions or other changes of direction are not permitted.
  A little thought shows this is the same as the following.  We want two directions in space (3-D or, the mathematician in me asks, n dimensions) so that the projection Pi of the solid in one direction fits completely "inside" (i.e., does not touch the boundary of) the projection Po in the other direction.  When such directions exist, the solid is said to have the "Rupert property" or to "be" "Rupert."
  It is far from obvious that the dodecahedron and the icosahedron are Rupert.  Jerrard sometime between 2000 and 2005 worked out the passage of each, working entirely by hand, paper and pencil and mental visualization, and verifying his insights using coordinates.  It was a tour de force.
  Here is an easy exercise for anyone who is still reading.  The cuboctahedron is the solid formed by cutting off each of the eight corners of a cube by the plane determined by the midpoints of the adjacent edges of the cube.  (A google search turned up the attached jpg.)  Is the cuboctahedron Rupert?


 
--Jack

prl

Quote from: j-wetzel on March 29, 2015, 10:39:35 AM
Is the cuboctahedron Rupert?[/size]

Jack, I've be doing my homework assignment and so far I would say NO.  The cubo. . . is not Rupert.  But I'm still looking at this (literally at all various DC angles).

A DesignCAD cubo model is attached.

DrollTroll

#26
So, if I have a proper handle on this, it looks like (from purely visual examination of a "d20" that I have for playing D&D), that the minimal planar projection of an icosahedron is a hexagon (viewed straight down while it's flat on the tabletop). The maximal planar projection seems to be an octagon decagon (if the icosahedron is oriented so that it's "point-down" instead of "face-down". So I would presume that proper tunneling of a hexagonal hole through the point-up solid would give you the necessary result?

Similarly a dodecahedron gives 5 or 10-sided projections depending on orientation.
25 years with DesignCAD

prl

Quote from: DrollTroll on April 01, 2015, 11:44:47 AM
So I would presume that proper tunneling of a hexagonal hole through the point-up solid would give you the necessary result?

You folks and your love of word problems.  DesignCAD CAN! show it.

j-wetzel

Quote from: DrollTroll on April 01, 2015, 11:44:47 AM
So, if I have a proper handle on this, it looks like (from purely visual examination of a "d20" that I have for playing D&D), that the minimal planar projection of an icosahedron is a hexagon (viewed straight down while it's flat on the tabletop). The maximal planar projection seems to be an octagon decagon (if the icosahedron is oriented so that it's "point-down" instead of "face-down". So I would presume that proper tunneling of a hexagonal hole through the point-up solid would give you the necessary result?

Unfortunately, neither of the projections you describe fits inside the other, DT.  It's close, but no cigar.  It is true that the outer projection P0 is the "face down" projection.  But the other involves tilting the projection into a coordinate plane by about 3 degrees to get the interior projection Pi.

I'm finding this a bitch to draw, with my limited DesignCAD skills.

And by the way, the Cuboctahedron really is Rupert.
--Jack

DrollTroll

So, I took your icosa drawing, added the missing planes, made it a solid, and duplicated it in front of the original. I oriented the original using SetWorkingPlane along three vertices of a face so that the front view is the hexagonal projection. I then fiddled around with rotating the duplicate so that its projection in the front view fit inside the original projection. It's tight, but this appears to work.

Attached drawing has front view maximized. The green is the original, the blue is the duplicate. I did not scale the duplicate at all, just rotated it various ways until the projection fit. It's tight, but it's Rupert. (I think that will be my new catch-phrase! "It's tight, but it's Rupert.")
25 years with DesignCAD