Author Topic: Matrix3d and TransformBy help  (Read 56037 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #45 on: July 28, 2008, 09:17:58 AM »
more fun  8-)



Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #46 on: July 28, 2008, 09:52:51 AM »
Well... since this, it is just an exercise for my brain and before I lost the 1/2 brain cell left....

I have the bounding box (min-max aligned or on the solid not the projected ones as my previous arx function)... now what do I needed for? or use them for....  :ugly:

Well, there are many industries that would benefit from having such an animal, example the commercial casework industry deals with mostly square parts. If one could build a library that would generate a bill of materials or data to feed to a sheet optimizer from a 3d drawing, companies might buy it.. ie think ($$$) :angel:

I need to read (later at home) all what you guys have been doing... and will continue debugging the function, still it is work in progress.


Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #47 on: July 28, 2008, 10:25:06 AM »
companies might buy it.. ie think ($$$) :angel:

Thanks Daniel,

I had tried that in the past, on some other projects, that I did, and it is not easy as it sounds....  :wink:

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #48 on: July 28, 2008, 10:42:35 AM »
companies might buy it.. ie think ($$$) :angel:

Thanks Daniel,

I had tried that in the past, on some other projects, that I did, and it is not easy as it sounds....  :wink:

Yes I know,  I have one product out there, generates little income and big headaches  :-o

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #49 on: July 28, 2008, 12:35:24 PM »
companies might buy it.. ie think ($$$) :angel:

Thanks Daniel,

I had tried that in the past, on some other projects, that I did, and it is not easy as it sounds....  :wink:

Yes I know,  I have one product out there, generates little income and big headaches  :-o

Yep...

Now, getting back to this topic, it is good idea to post the solution as open source?... I will upload an animated image, later from home or when I have something more useful.

But, I am using for example for this GetOBB(); function a lot of my own geometry library, and there are things, that I want to keep away from the public....

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #50 on: July 28, 2008, 12:47:09 PM »
companies might buy it.. ie think ($$$) :angel:

Thanks Daniel,

I had tried that in the past, on some other projects, that I did, and it is not easy as it sounds....  :wink:

Yes I know,  I have one product out there, generates little income and big headaches  :-o

Yep...

Now, getting back to this topic, it is good idea to post the solution as open source?... I will upload an animated image, later from home or when I have something more useful.

But, I am using for example for this GetOBB(); function a lot of my own geometry library, and there are things, that I want to keep away from the public....

Only post what your comfortable posting  :-)

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #51 on: July 31, 2008, 06:09:04 PM »
Only post what your comfortable posting  :-)

I will....


Now, what it is the status on this?.... have something that it is working?


LE!

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #52 on: August 01, 2008, 11:21:34 AM »
By the way...

Look/google for:

Stefan Gottschalk's Separating Axis Theorem thesis.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #53 on: August 01, 2008, 11:38:11 AM »
I am trying to do some of the brep stuff  in ARX, so I can p/invoke from C#.

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #54 on: August 01, 2008, 11:55:13 AM »
I am trying to do some of the brep stuff  in ARX, so I can p/invoke from C#.


See if you can extract all the vectors for each face and get the min and max.

And then.... maybe you can do something like:

edit: for swampers... only

Code: [Select]
public OrientedBoundingBox(
« Last Edit: August 01, 2008, 12:02:54 PM by Luis E. »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #55 on: August 02, 2008, 07:22:03 AM »
I think I tried something like that once before using lisp and Owen’s secret decoder ring (decoding the SAT),
the problem is that the points are returned in WCS so you end up with a standard bounding box.

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #56 on: August 02, 2008, 12:44:47 PM »
This is what I have done so far.

Tested on AutoCAD 2007 only.

Command: OOB

Draws:

1. Solid points points in Yellow.
2. Centroid & AcGeBoundBlock3d min max in Magenta.
3. Min Max on solid in Cyan.
« Last Edit: August 02, 2008, 12:51:26 PM by Luis E. »

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #57 on: August 02, 2008, 01:07:49 PM »
I  created a cuboid  100 x 100 x 10 rotated by 45* in both Z and X. as you can see your points are correct but they are not transformed to the orientation of the object so when you get the min, max it’s in WCS.

« Last Edit: August 02, 2008, 01:11:50 PM by Daniel »

Spike Wilbury

  • Guest
Re: Matrix3d and TransformBy help
« Reply #58 on: August 02, 2008, 01:15:02 PM »
I  created a cuboid  100 x 100 x 10 rotated by 45* in both Z and X. as you can see your points are correct but they are not transformed to the orientation of the object so when you get the min, max it’s in WCS.



As I said it here previously.... it is my first time playing with 3D stuff.

I downloaded your sample, ran the command OOB, and I get the two min-max points (the ones in cyan) on the solid.

Now, I am confused....  :oops:

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8690
  • AKA Daniel
Re: Matrix3d and TransformBy help
« Reply #59 on: August 02, 2008, 01:26:16 PM »
I had moved the solid so I could see the points  :-o
Have a look at these two objects, they are the same size, but the min max results are different