Author |
Topic |
|
mptenner
Germany
4 Posts |
Posted - 11/30/2015 : 07:47:19 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): Origin2015G b9.2.257 Operating System: Win10 64bit
Hello everyone,
I would like to use a 3D cylinder plot and visualize two sets of data with it: 1. irregularities of the surface of my test specimen 2. The resulting magnetic fields of the specimen
I already know how to create a basic 3D-cylinder and project the results of my magnetic measurements onto the surface (as a coloured surface diagram).
It would be great if I could now alter the geometry of the cylinder so that it shows the actual irregularites of my specimen as three-dimensional variations of the cylinder surface.
Is that possible?
I hope my request was somewhat comprehensible...
Happy for any feedback!
|
|
KenLefebvre
USA
66 Posts |
Posted - 11/30/2015 : 2:08:55 PM
|
Hey mptenner-
I'm not entirely sure I understand what you're trying to create. Could you clarify a few points, namely, are you trying to display some kind of an error margin for your data? Rather, do you have your data plotted but you would like to compare it's variation with that of an ideal cylinder (showing some kind of a surface based on the difference in values between the two)?
If you could provide us with any kind of visual example of what it is you're trying to accomplish that could be helpful too, and otherwise feel free to send the OPJ you're working with to tech@originlab.con
Best regards,
Ken Lefebvre Technical Service Representative OriginLab |
|
|
mptenner
Germany
4 Posts |
Posted - 12/01/2015 : 11:34:58 AM
|
Hey KenLefebvre,
first of all I would like to thank you for your quick reply.
In the first picture you can see the actual geometry of my specimen as a simple surface plot.
In the other picture you can see the results of my magnetic measurements projected on a basic 3d cylinder.
It would now be great if I could combine the geometry data of my specimen with the cylinder so that the cylinder is no longer a basic "flat" cylinder but shows the actual geometry of my specimen with its "elevation levels" in a 3-dimensional form.
On top of that I still want to see the coloured areas from my magnetic measurements as depicted in the lower picture so that I can see the effect that the geometry of the specimen has on the measurement results. |
|
|
KenLefebvre
USA
66 Posts |
Posted - 12/01/2015 : 4:36:07 PM
|
Kein problem mptenner.
This can easily be done by using Origin's 3D parametric plotter. First go to OriginLab.com/3DFunctions and download the cylinder file in the second to last row (click on the image and the link will be in its caption).
This will give you an OFP file which can be installed by dragging and dropping it over an open Origin window (make sure you're not running Origin as admin). Once you've done this, go to the icon that looks like a graph with a lowercase f that should be to the right of the New Matrix button. This is, by default set to create a new 2D plot, but click and hold this button to go to the alternate option the "New 3D Parametric Plot".
Once the dialog box opens, you can set this to the cylinder template by going to the arrow to the right of the "Theme" box and selecting the Cylinder option. You can adjust the number of columns and rows to reflect your data and the XY radius of this cylinder can be defined in the Labtalk box down below (default is "double r=1;"). This will generate a 3D cylindrical surface and its corresponding values as a new matrix.
To add your data to this cylinder, go into this matrix and by clicking on the D button in the upper right corner of the window and selecting "Add", you can create another matrix for this object to paste your data into. To easily navigate between the data and the xyz matrices of the cylinder I'd also recommend right-clicking on the window's title bar, and selecting Show Image Thumbnails.
Once you've brought your values into this fourth matrix set, double click on your cylinder to open Plot Details, and in the Fill tab set the Front Surface option to "Contour fill from matrix". Select the matrix with your data (the 4th one by default) and after adjusting colors, etc. you should have a cylinder that resembles the one you posted here.
If you have any trouble with this or other questions, just let us know! Ken
|
|
|
mptenner
Germany
4 Posts |
Posted - 12/01/2015 : 5:10:23 PM
|
Hey KenLefebvre,
Looks like your german is better than my english :)
Thanks for the detailed tutorial - but I'm afraid this only gets me to a point at which I am already at --> which is something like picture 2.
What I would love to do now is alter the basic flat surface of the 3d cylinder that i created with the ofp file according to the measurement data of the actual geometry of my specimen (as can be seen in the upper picture of my former post).
So that the cylinder does no longer have a flat surface but actually looks more like the very rough scetch that I attached (plus colored surface according to my other measurements)
I hope I got my point accross somehow. A colleague of mine allegedly did something like this in MATLAB. I will try to get hold of him and post a picture of what he did, however this might take a little while.
|
|
|
snowli
USA
1388 Posts |
Posted - 12/01/2015 : 6:07:31 PM
|
Hello,
From Plot Details dialog Surface tab, you can tell the X Matrix is from Mat(2) and Y Matrix is from Mat(3).
You can do some adjustment to X and Y Matrix data to achieve this.
E.g. Add two more matrix objects in MSheet1. They will be called 5 and 6.
Then with Matrix object 5 selected (click it on Image Thumbnail panel), choose Matrix: Set Values... You can set the value to be e.g. Mat(2)+Mat(4)
With Matrix object 6 selected, set the value to be Mat(3)+Mat(4)
Then double click the graph created and on Surface tab, set X Matrix to be Mat(5), Y Matrix to be Mat(6).
The best would be you send the data to tech@originlab.com so we can see how to create new x matrix and y matrix to fit your data since if your Mat(4) values may be much bigger than mat(2) and (3) or much smaller which may affect the effect.
Or there may be parametric function for such cylindar.
Thanks, Snow |
|
|
mptenner
Germany
4 Posts |
Posted - 12/18/2015 : 03:09:10 AM
|
Hello,
sorry for the delayed answer.
I had to fumble around with my data a little bit, namely transform my coordinates but it all worked out great in the end thanks to your help.
So I just wanna say thank you!
Best regards
|
|
|
|
Topic |
|
|
|