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.

Diamonds in the sky with lucy

Started by samdavo, April 19, 2013, 08:47:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

On another thread ("Aligning a 3dplate stack in X and Z, and Y-stretching") I mentioned a problem I had finding a point midface of a plate.

Since then ( well this morning lol) I have written a macro called "diamond" which draws a diamond with points on the "midface" of each of the 6 faces of the bounding box.

' Diamond.d3m - sets 6 points centres of bounding box faces
' the points in an array, then sets points to draw a line.

' Allocate storage for the points.
Dim X(14), Y(14), Z(14)

Message "You should have something selected - ideally a 3D solid (or 2D shape) - this will draw a diamond in bounding box, with axes similar to the resizing handle"

X(1) = (sys(196)+sys(198))/2 'A top dead centre
Y(1) = sys(199) 'A top dead centre
Z(1) = (sys(200)+sys(201))/2 'A top dead centre

X(2) = sys(196)'B left dead centre
Y(2) = (sys(197)+sys(199))/2 'B left dead centre
Z(2) = (sys(200)+sys(201))/2 'B left dead centre

X(3) = (sys(196)+sys(198))/2 'C btm dead centre
Y(3) = sys(197) 'C btm dead centre
Z(3) = (sys(200)+sys(201))/2 'C btm dead centre

X(4) = sys(198)'D right dead centre
Y(4) = (sys(197)+sys(199))/2 'D right dead centre
Z(4) = (sys(200)+sys(201))/2 'D right dead centre

X(5) = (sys(196)+sys(198))/2 'A top dead centre
Y(5) = sys(199) 'A top dead centre
Z(5) = (sys(200)+sys(201))/2 'A top dead centre

X(6) = (sys(196)+sys(198))/2 'E front dead centre
Y(6) = (sys(197)+sys(199))/2 'E front dead centre
Z(6) = sys(200) 'E front dead centre

X(7) = (sys(196)+sys(198))/2 'C btm dead centre
Y(7) = sys(197) 'C btm dead centre
Z(7) = (sys(200)+sys(201))/2 'C btm dead centre

X(8) = (sys(196)+sys(198))/2 'F back dead centre
Y(8) = (sys(197)+sys(199))/2 'F back dead centre
Z(8) = sys(201) 'F back dead centre

X(9) = (sys(196)+sys(198))/2 'A top dead centre
Y(9) = sys(199) 'A top dead centre
Z(9) = (sys(200)+sys(201))/2 'A top dead centre

X(10) = sys(196)'B left dead centre
Y(10) = (sys(197)+sys(199))/2 'B left dead centre
Z(10) = (sys(200)+sys(201))/2 'B left dead centre

X(11) = (sys(196)+sys(198))/2 'E front dead centre
Y(11) = (sys(197)+sys(199))/2 'E front dead centre
Z(11) = sys(200) 'E front dead centre

X(12) = sys(198)'D right dead centre
Y(12) = (sys(197)+sys(199))/2 'D right dead centre
Z(12) = (sys(200)+sys(201))/2 'D right dead centre

X(13) = (sys(196)+sys(198))/2 'F back dead centre
Y(13) = (sys(197)+sys(199))/2 'F back dead centre
Z(13) = sys(201) 'F back dead centre

X(14) = sys(196)'B left dead centre
Y(14) = (sys(197)+sys(199))/2 'B left dead centre
Z(14) = (sys(200)+sys(201))/2 'B left dead centre

>Line
{
    For i = 1 to 14
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }
End


My intention was to use it in 3D, i.e. to then have corners of said diamond for setting pointmarks,  and/or setting handles,  etc.  (for resizing, stretching, repositioning, duplicating with handles etc);

However I notice it also works in 2D.

Can I suggest you run it with resizing handles selected, as it will help show you the points it is picking up for the diamond shape.

I enclose the drawing I used to do the jpegs/png's also enclosed.  Also a zipped version of the macro.

PS The diamond is just a 3d line ( or 2d I guess), which can be selected, deleted if you don't like it,  moved etc. etc. 

Cheers
sam

If this macro is totally unnecessary, i.e. already covered by standard commands, then I'll "bow out".  Just that it had proved a problem for me , as per the first mentioned thread.

PS trade you for some help please, lol.  (I'm only half way up this learning ladder)  :)

Q1. How would I make sure the "Solid define" did not destroy the diamond line.  Would I need to add pointmarks to reinforce those points?
Q2. Just for interest, how would I turn that diamond into a solid?
Q3. Then how would I add something to that macro that deleted the diamond from the original solid?  (just for fun).

samdavo

#1
No sooner posted, than I wish I had added the centrepoint as another point of the diamond.
i.e. a 15th point called
X(15) =(sys(196)+sys(198))/2 'diamond centre,  average of min and max X values in the selection
Y(15), second try  = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(15) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values

Obviously this macro works on the SYS functions, effectively defined above.

Next question, - easily checked, but I haven't done so yet - and I might as well throw it into the ether so that we are all on the same wavelength...

But I assume that, in general for an asymmetrical shape , eg a C-shape,  "CG" is different to "centre of diamond", because this latter point is just the average of the extremes of the bounding box, whereas the CG is presumably true to the centre of the actual volume of the solid in question (?)
PPS - YES , I have confirmed that to be the case.

and I have amended the macro to diamond2, attached.

PS. I realise that, with resizing handles, you are given the option - in a window - of selecting the corners of the bounding box.  BUT the DIAMOND shape = midfaces, is more useful imo, - at least for the way I do 3D drawings - for all of 1 week lol). 


samdavo

#2
PPS. I would like to repeat the problem I started with - that I wanted to stretch the red plate in the Y direction from 25 to 100mm, and I wanted that to be 75mm downwards. Refer reply #2 in the following thread if you're interested :-
http://forum.designcad.com/index.php?topic=4951.0

Now I realise that you can grab one of the resizing handles in say front elevation, and (with mouse left-clicked), simply stretch it down.    BUT I don't think you can do this by an exact amount  (Yes??)

And more important, my problem was always a pseudo - problem, i.e.  If you stretch with the "Use 3D selection box" unticked, (doh),  then you can stretch just the part you want.  (and incidentally, you can quantify the stretch by using the Point Relative command to set the fourth point a known distance and direction from the third point - all pretty common knowledge I would have thought - 1.5 cents)

By way of example, I include a jpeg of the original piston, i.e. a circular cylinder on an octagonal flange,  and also after I thickened
a) the cylinder, or
b) the flange
by 75mm.
(No rocket science here folks - but it was a revelation to me when I discovered it, and something I KNEW must be possible,  but just couldn't do till I learned to unclick 'Use 3D Selection Box').

I also indicate the CG and the centre in each case.

The jpeg is called "stretching exercises", and demonstrates all of these points (I think)

PPS In each case, there is a gold piston, a white diamond, and a purple line to the CG.  I obviously re-drew the diamond (to get the centre) AFTER I stretched the shape - just as I also re-found the CG then as well.

samdavo

#3
Quote from: samdavo on April 19, 2013, 09:00:37 PM
No sooner posted, than I wish I had added the centrepoint as another point of the diamond.
i.e. a 15th point ...

and I have amended the macro to diamond2, attached.

well I didn't enclose the macro "diamond2.d3m" with that post as I said I would ...  and I enclose it here , 
BUT,
I also add to that macro the setting of three handles to that shape.    If you look at the jpegs,
firstly "immed after diamond2 macro - note handles"
Note a) the three blue handles are evident, and also
b) the line to the centre from one point of the diamond
(ps I have turned off the resizing handles to let that line be visible)

secondly "and after deleting the diamond - again note handles"
Note c) the 3 handles are still there.
(and I have turned the resizing handles back on - completely optional - the handles are the important points here)
(ps I Suspect you will need to have sticky handles turned on to retain those handles).

On a minor point, you will also note ( eg in the colour of the resizing handle axes) that I use red, white and blue for
X axis, Y axis and Z axis resp  (2 cents). 
Makes it easy to orient oneself.  (i.e. easiest way is to select something with resizing handle on - or otherwise just start to draw a line, either way, you get the tricolour axes as a guide to what's what - heck, just type "U" will give you the 3D cursor / compass).

' Diamond.d3m - sets 6 points centres of bounding box faces PLUS the geometric centre
' records the points in an array, then draws a line.
'AND sets three handles for the solid or selection etc

' Allocate storage for the points.
Dim X(15), Y(15), Z(15)

Message "You should have something selected - ideally a 3D solid (or 2D shape) - this will draw a diamond in bounding box, with axes similar to the resizing handle"

X(1) = (sys(196)+sys(198))/2 'A top dead centre
Y(1) = sys(199) 'A top dead centre
Z(1) = (sys(200)+sys(201))/2 'A top dead centre

X(2) = sys(196)'B left dead centre
Y(2) = (sys(197)+sys(199))/2 'B left dead centre
Z(2) = (sys(200)+sys(201))/2 'B left dead centre

X(3) = (sys(196)+sys(198))/2 'C btm dead centre
Y(3) = sys(197) 'C btm dead centre
Z(3) = (sys(200)+sys(201))/2 'C btm dead centre

X(4) = sys(198)'D right dead centre
Y(4) = (sys(197)+sys(199))/2 'D right dead centre
Z(4) = (sys(200)+sys(201))/2 'D right dead centre

X(5) = (sys(196)+sys(198))/2 'A top dead centre
Y(5) = sys(199) 'A top dead centre
Z(5) = (sys(200)+sys(201))/2 'A top dead centre

X(6) = (sys(196)+sys(198))/2 'E front dead centre
Y(6) = (sys(197)+sys(199))/2 'E front dead centre
Z(6) = sys(200) 'E front dead centre

X(7) = (sys(196)+sys(198))/2 'C btm dead centre
Y(7) = sys(197) 'C btm dead centre
Z(7) = (sys(200)+sys(201))/2 'C btm dead centre

X(8) = (sys(196)+sys(198))/2 'F back dead centre
Y(8) = (sys(197)+sys(199))/2 'F back dead centre
Z(8) = sys(201) 'F back dead centre

X(9) = (sys(196)+sys(198))/2 'A top dead centre
Y(9) = sys(199) 'A top dead centre
Z(9) = (sys(200)+sys(201))/2 'A top dead centre

X(10) = sys(196)'B left dead centre
Y(10) = (sys(197)+sys(199))/2 'B left dead centre
Z(10) = (sys(200)+sys(201))/2 'B left dead centre

X(11) = (sys(196)+sys(198))/2 'E front dead centre
Y(11) = (sys(197)+sys(199))/2 'E front dead centre
Z(11) = sys(200) 'E front dead centre

X(12) = sys(198)'D right dead centre
Y(12) = (sys(197)+sys(199))/2 'D right dead centre
Z(12) = (sys(200)+sys(201))/2 'D right dead centre

X(13) = (sys(196)+sys(198))/2 'F back dead centre
Y(13) = (sys(197)+sys(199))/2 'F back dead centre
Z(13) = sys(201) 'F back dead centre

X(14) = sys(196)'B left dead centre
Y(14) = (sys(197)+sys(199))/2 'B left dead centre
Z(14) = (sys(200)+sys(201))/2 'B left dead centre

X(15) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(15) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(15) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values


>Line
{
    For i = 1 to 15
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }


'next set three handles, at the centre and midface of the top and right faces, as seen when looking along the z axis
'i.e the normal default direction for 2D viewing, which means it also works in 2D

>SetHandle
{
    <Pointxyz [x(15), y(15), z(15)]
    <Pointxyz [x(1), y(1), z(1)]
    <Pointxyz [x(4), y(4), z(4)]
  }

End



samdavo

Some would say I'm just trying to get my post count up, but in reality I'm just forgetful.
Herewith that macro.

PS If you run it in 2D, (with XY as the working plane), it gives 2 handles, the centre and the top - I enclose a snip of the screen - 2 cents.

samdavo

ok - here's a block wall - took me all of a few minutes, mating the corners of those diamonds.
(dead simple).  I've made it a variable block size so I couldn't be accused of using the array command.

Incidentally, I've made the diamond and the brick a Group, but didn't make them a Block (which I should have, sorry minstrel lol).  And the file size is much bigger as a result.
Cheers, sam.

samdavo

#6
OK, I've decided to take it one step further.
Herewith macro "diabox4.d3m"  which (after selecting something - eg a 3D solid ( or 2D part etc), 
but REALLY intended for 3D, 

and draws a single line which has points at :-
all 8 corners of the bounding box, plus
all 12 midpoints of all edges of this box, plus
the 6 midpoints of every one of the faces.
PS plus the centre = 27 points in all (count the blue dots in the jpeg)


The enclosed jpeg (screen-snipped whilst in point-select mode to let you see all the 27 points) refers.

I find it pretty handy for controlling handles ( and you can pick any of them - you obviously don't have to accept the ones set by the macro, which has the bottom face, top face , and a side).  But you do need to have sticky handles set if you want to keep them ( 2 cents).

cheers
sam

PS I post it here, but I warn you, it's a marathon, and you'll probably fall to sleep before you come to terms with it.    Note that:-
corners of the diamond are called ABCDEF,
and corners of the box are called JKLMNPQR,
and midpoints of edges are called  JK, KL, LM, etc.  ( refer jpeg, where I indicate a few of them, but not all).

PS It is easy to delete once you set the hadles for the original solid - because it is a single line - i.e. just "click it, and flick it". 

- unless of course you want to keep it, in which case set it as a "group" with the original solid  ( but it is easy to rebuild later - especially if you use spacebar for "command line" - then click "diabox4") -  and all you do is press spacebar, then, second time, (because it is still the latest macro , and still current), just click enter.

samdavo

' Diabox4.d3m - sets points centres of bounding box faces PLUS the geometric centre
'PLUS the corners of the bounding box, PLUS the midpoints of all edges
' records the points in an array, then draws a line.
'AND sets three handles for the solid or selection etc, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis

' Allocate storage for the points.
Dim X(43), Y(43), Z(43)

Message "You should have something selected - ideally a 3D solid (or 2D shape) - this will draw a diamond in bounding box, with axes similar to the resizing handle - PLUS the bounding box and midpoint of all edges"

X(1) = (sys(196)+sys(198))/2 'A top dead centre
Y(1) = sys(199) 'A top dead centre
Z(1) = (sys(200)+sys(201))/2 'A top dead centre

X(2) = sys(196) 'B left dead centre
Y(2) = (sys(197)+sys(199))/2 'B left dead centre
Z(2) = (sys(200)+sys(201))/2 'B left dead centre

X(3) = (sys(196)+sys(198))/2 'C btm dead centre
Y(3) = sys(197) 'C btm dead centre
Z(3) = (sys(200)+sys(201))/2 'C btm dead centre

X(4) = sys(198) 'D right dead centre
Y(4) = (sys(197)+sys(199))/2 'D right dead centre
Z(4) = (sys(200)+sys(201))/2 'D right dead centre

X(5) = (sys(196)+sys(198))/2 'A top dead centre
Y(5) = sys(199) 'A top dead centre
Z(5) = (sys(200)+sys(201))/2 'A top dead centre

X(6) = (sys(196)+sys(198))/2 'E front dead centre
Y(6) = (sys(197)+sys(199))/2 'E front dead centre
Z(6) = sys(200) 'E front dead centre

X(7) = (sys(196)+sys(198))/2 'C btm dead centre
Y(7) = sys(197) 'C btm dead centre
Z(7) = (sys(200)+sys(201))/2 'C btm dead centre

X(8) = (sys(196)+sys(198))/2 'F back dead centre
Y(8) = (sys(197)+sys(199))/2 'F back dead centre
Z(8) = sys(201) 'F back dead centre

X(9) = (sys(196)+sys(198))/2 'A top dead centre
Y(9) = sys(199) 'A top dead centre
Z(9) = (sys(200)+sys(201))/2 'A top dead centre

X(10) = sys(196)'B left dead centre
Y(10) = (sys(197)+sys(199))/2 'B left dead centre
Z(10) = (sys(200)+sys(201))/2 'B left dead centre

X(11) = (sys(196)+sys(198))/2 'E front dead centre
Y(11) = (sys(197)+sys(199))/2 'E front dead centre
Z(11) = sys(200) 'E front dead centre

X(12) = sys(198)'D right dead centre
Y(12) = (sys(197)+sys(199))/2 'D right dead centre
Z(12) = (sys(200)+sys(201))/2 'D right dead centre

X(13) = (sys(196)+sys(198))/2 'F back dead centre
Y(13) = (sys(197)+sys(199))/2 'F back dead centre
Z(13) = sys(201) 'F back dead centre

X(14) = sys(196)'B left dead centre
Y(14) = (sys(197)+sys(199))/2 'B left dead centre
Z(14) = (sys(200)+sys(201))/2 'B left dead centre

X(15) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(15) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(15) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values

'continuing

X(16) = sys(196) 'J small small small
Y(16) = sys(197)
Z(16) = sys(200)

X(17) = sys(196) 'JK
Y(17) = sys(197)
Z(17) = (sys(200)+sys(201))/2

X(18) = sys(196) 'K ssb
Y(18) = sys(197)
Z(18) = sys(201)

X(19) = sys(196) 'KL
Y(19) = (sys(197)+sys(199))/2
Z(19) = sys(201)

X(20) = sys(196) 'L sbb
Y(20) = sys(199)
Z(20) = sys(201)

X(21) = sys(196) 'K ssb
Y(21) = sys(197)
Z(21) = sys(201)

X(22) = (sys(196)+sys(198))/2 'KM
Y(22) = sys(197)
Z(22) = sys(201)

X(23) = sys(198) 'M bsb
Y(23) = sys(197)
Z(23) = sys(201)

X(24) = sys(198) 'MN
Y(24) = (sys(197)+ sys(199))/2
Z(24) = sys(201)

X(25) = sys(198) 'N bbb
Y(25) = sys(199)
Z(25) = sys(201)

X(26) = (sys(196)+sys(198))/2 'NL
Y(26) = sys(199)
Z(26) = sys(201)

X(27) = sys(196) 'L sbb
Y(27) = sys(199)
Z(27) = sys(201)

X(28) = sys(196) 'LP
Y(28) = sys(199)
Z(28) = (sys(200)+sys(201))/2

X(29) = sys(196) 'P sbs
Y(29) = sys(199)
Z(29) = sys(200)

X(30) = sys(196) 'PJ
Y(30) = (sys(197)+sys(199))/2
Z(30) = sys(200)

X(31) = sys(196) 'J sss
Y(31) = sys(197)
Z(31) = sys(200)

X(32) = (sys(196)+sys(198))/2 'JQ
Y(32) = sys(197)
Z(32) = sys(200)

X(33) = sys(198) 'Q bss
Y(33) = sys(197)
Z(33) = sys(200)

X(34) = sys(198) 'QM
Y(34) = sys(197)
Z(34) = (sys(200)+sys(201))/2

X(35) = sys(198) 'M bsb
Y(35) = sys(197)
Z(35) = sys(201)

X(36) = sys(198) 'N bbb
Y(36) = sys(199)
Z(36) = sys(201)

X(37) = sys(198) 'NR
Y(37) = sys(199)
Z(37) = (sys(200)+sys(201))/2

X(38) = sys(198) 'R bbs
Y(38) = sys(199)
Z(38) = sys(200)

X(39) = sys(198) 'RQ
Y(39) = (sys(197)+sys(199))/2
Z(39) = sys(200)

X(40) = sys(198) 'Q bss
Y(40) = sys(197)
Z(40) = sys(200)

X(41) = sys(198) 'R bbs
Y(41) = sys(199)
Z(41) = sys(200)

X(42) = (sys(196)+sys(198))/2 'RP
Y(42) = sys(199)
Z(42) = sys(200)

X(43) = sys(196) 'P sbs
Y(43) = sys(199)
Z(43) = sys(200)

>Line
{
    For i = 1 to 43
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }


'next set three handles, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis
'i.e the normal default direction for 2D viewing, which means it also works in 2D

>SetHandle
{
    <Pointxyz [x(3), y(3), z(3)] 'C
    <Pointxyz [x(1), y(1), z(1)] 'A
    <Pointxyz [x(4), y(4), z(4)] 'D
  }

End

samdavo

#8
.... maybe try the macro and see if you like it -  2 cents.

Dempsey

Sam,

You are allowed/able to remove one or more of your own replies if you feel so inclined. No moderator is needed for that.
Dempsey

samdavo

#10
Thanks Dempsey -
ok , just to summarise , and here's a simple method of referring to all those 27 points ( corners, mid-edge, and midface)   all now available for selection as handles ...

(and this reminds me of learning how to do a Rubik's cube lol;) 
It's called the "smb" naming system (christened very recently lol) - which stands for small mean and big.  (nothing to do with the good bad and the ugly btw).

If you look at the attachment, you will see that there are effectively 9 little totem poles, each with 3 points.  Likewise you could express this as 9 lines that go into the distance from the front face.

If this were just 2D, then you would have the 9 points on the front face only, and I'm gonna call them 3 vertical totem  poles
ss, sm, sb;   (see points J, PJ, and P)
ms, mm, mb; (JQ, E, and PR)
bs, bm, and bb. (Q, QR and R).

when you go to 3D, you get these lines going off into the middle and big distance from each of those points; 
so the 27 points become:-

sss, ssm, ssb  (where sss =small small small, i.e. the origin of this "3D object")
sms, smm, smb
sbs, sbm, sbb   (i.e. P, LP, and L - just to give another example, can't be bothered naming all of them lol - it's not rocket science)
(all those points are in the YZ plane incidentally - relative to this object - and you will see I have lefthand system, with Z into the page)

then
mss, msm, msb.
mms, mmm, mmb (where mmm is the mean mean mean = the centre)
etc.
I'm sure you get the picture.

PS although I've included text etc in the selection in the jpegs I'm attaching, (because I was playing around with Paperspace at the time),  it is obviously intended for 3D solids which have to me manipulated to be flush with this or that surface, i.e. mimicking the "mate" command in say Solidworks ...   that's where I'm coming from, for any out there who are confused as to these ramblings.
Cheers
sam

PS Is it true that, on a real totem pole (Red Indian style), the most important position is at the base?

PS - so to start with the Rubik's cube again, you rotate the sob about the smm, and ... etc). 

PPS In hindsight, I should have called that macro "RubikCubeHandles" or some such - or just RCH, which is so much easier to type on the Command line.

samdavo

#11
I'll post this (thought I'd already done so - but damned if I remember where lol)

But it is relevant to this thread.   And also, it compares the CG to the centre of a block (which was discussed briefly on the nostalgia thread - which reminded me).

It's called "stretching exercises".   And applies to a "piston plate" with a rectangular flange and a a circular  part.   And I wanted to demonstrate the ability to stretch the height of one or other  in 3D mode - which is easy provided you turn off the "Use 3D selection Box" option. 

But equally, and more relevant to this thread,  the use of the diamond macro ( or better still the diabox macro ) is really helpful - try it please lol.
You can make them a group (i.e. the line with the solid), but usually I just use it to
a) set handles
b) mate faces, or edges or corners
c) sort out orientations
etc
...
and move the solid and leave the line behind, which I then delete.

ALSO, it is convenient for the following procedure...
Suppose you want to drill a hole near the middle of a face of a highly faceted shape  (with heaps of points to confuse the cursor in gravity snap mode)...
say it's 20mm SW of the centre of one face
and suppose you do a diamond in the shape

then copy that diamond to the side,
then it's easy to draw a cylindrical shape relative to the relevant midface point of said diamond (unencumbered by distracting close points)
and , using the diamond corner (or box corner if you prefer ) as handle,  copy it back to the "jungle of lines" (where the diamond is still available as reference points).
And after this, a simple click on each diamond will delete them.

(I'm sure you can all understand what I'm getting at).
But the attachment simply shows
a) three examples of that piston plate (with stretching in the rectangle or the cylinder)
b) CG versus centre ( i.e. centre of diamond), and
c) just the use of the diamond in general

Try it , MONEY BACK GUARANTEED you'll like it , lol
cheers

samdavo

I enclose the latest drafts of those "diamond4" and "diabox4" macros, and this summary :-

- all as posted above , except that the first one posted (called diamond.d3m) didn't go the extra yards of putting the centre of the diamond as well - which is big mistake - and which I immediately twigged to, and  I reposted as diamonds2.d3m.  After that I've made more drafts, but the changes are not important.  All they do that is different to diamond2 is set some handles at various locations.   But it is dead simple to choose new handles once you've drawn the diamond - or diabox (7 choices) if you really want some choices (27 points to choose from)

Diamond4 concentres on the centre and the axes to the midfaces . 

Diabox4 gives you the diamond (as above) but also all midedge and corners ( 27 points in total available for choosing handles).  The disadvantage would be that you may not want that many, and the risk of choosing the wrong point increases (especially with multiple solids, all with diaboxes chosen.   

A.   "Diamond4.d3m" - sets 6 points centres of bounding box faces PLUS the geometric centre
' records the points in an array, then draws a line.
'AND sets three handles for the solid or selection etc
'these are the centre of the diamond and midface of the top and right faces, as seen when looking along the z axis
'i.e the normal default direction for 2D viewing, which means it also works in 2D


B. Likewsie the latest draft of diabox
' Diabox4.d3m - sets points centres of bounding box faces PLUS the geometric centre
'PLUS the corners of the bounding box, PLUS the midpoints of all edges
' records the points in an array, then draws a line.
'AND sets three handles for the solid or selection etc, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis.

Incidentally, I could have called this macro "RubiksCubeHandleOptions" because there are similarities. 

C.  incidentally also an early draft of "Calc and draw perspective views.d3m" on  the Paperspace thread was called "diamonds with max Paperspace scale.d3m".  Then I realised the emphasis should be on the scaling , and to give the diamonds a break lol.