cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Fractals

idanila
5-Regular Member

Fractals

Hi!

I would like to send this data to Creo, to create a 3D Model, is there a way to do so?

Many thanks,

Ioana

17 REPLIES 17
-MFra-
21-Topaz II
(To:idanila)

Hello Ioana, I did everything I could do. With the data available, in fact, I could not do much. In the picture I give you some suggestions.

Greetings

FM

forLoana.jpg

VladimirN
24-Ruby II
(To:idanila)

Please find in attachment some examples of creating fractals.

idanila
5-Regular Member
(To:VladimirN)

These are amazing!

VladimirN
24-Ruby II
(To:idanila)

This Mathcad Prime worksheet can be found in attachment as a PDF document for a preview (for those who have trouble with opening Prime 3.1 worksheet).

See please Video Link : 2426

> I would like to send this data to Creo,

Which data?? The sheet you posted is faulty and unfinished. It does not create any data!

Here is, following the lines you provided, a solution in Mathcad 15. In Mathcad 15 we have a picture operator and so we can immediately see the result of our calculation (as you provide only one value per point its just  gray-scale image.

In Prime you can just save the image using the WRITEBMP command (as shown in the picture) and display it externally.

The Matrix with the values can be exported in a couple of different formats, if this helps importing them in Creo.

In Mathcad 15 you could also create a 3D-Plot or a Contour-Plot using the very same data matrix and color it using a colormap of your choice.

Regards

Werner

idanila
5-Regular Member
(To:idanila)

Initially, I have been inserting by mistake the wrong worksheet. Here is the one I meant, sorry for all the trouble.

One more thing: In order to send it to Creo I would need Prime 3.1, and moving from MC15 to Prime can be harsh sometimes, since some of the old functionalities have changed and get lost during conversion. I will try to see if it works with bmp first.

Thank you all for your responses!

Ioana

> and moving from MC15 to Prime can be harsh sometimes

you mean that there are times when its not harsh? 😉

> I will try to see if it works with bmp first.

If you just want to transfer the data, generating an Excel file, a CSV file, some other binary file type or even ASCII might be a better way to exchange the data.

Lookup WRITEEXCEL, WRITECSV, WRITEBIN or WRITEPRN in the help.

WE

>Lookup WRITEEXCEL, WRITECSV, WRITEBIN or WRITEPRN in the help.

...And WRITERGB function.

Fractal_Prime3_1.png

Viktor

> ...And WRITERGB function.

Not sure if this is better suited to input the raw data into Creo, as was initially demanded. Don't know Creo, so I can't tell.

Guess you mixed up the order of the arguments! Zero should be the last one, not the first. The way you have written it, the first argument is evaluated and is always false (0). So in every case the last expression is chosen. You don't get 0 for the inner area that way.

Moreover it does not make much sense to make the value dependent on the width. Either use counter or counter/iterations on its own and let Creo do the rest or replace width width in that expression for the maximal color number in use (255).

WE

VladimirN
24-Ruby II
(To:idanila)

In attachment can be found the worksheet that record matrix data into STL file format as a 3D model, which can easily be used later in Creo Parametric. But I have at the last moment of calculation when writing STL file the following error - "Not enough memory for this operation". I test it on Win 8.1 x64 with 8Gb of RAM. Can someone please check it?


Pic_1.png


P.S. For a viewing STL file format you can easily use "Online STL viewer", here: Free online STL viewer

rgunwaldsen
14-Alexandrite
(To:VladimirN)

Same Problem: Windows 10 64-bit, 8GB.

StuartBruff
23-Emerald II
(To:VladimirN)

Vladimir,

As covered below, it looks as though the STL matrix is large enough that converting it to binary puts it near some memory limit.  Predefining the binary vector size seems to help, although not consistently.  I suspect that it would be better to use binary STL rather than text for a file of this size.  I would be interesting to see if Prime could handle the conversion to binary without problem (it should).

Stuart

Forgot to add ...

Running on Windows 7 Enterprise, 8 GiB

Both the WRITEFILE2 and File Output component (.prn) STL files render seemingly correctly on the STL viewer (neat!) (and after renaming the .prn file to .stl).

Stuart

Stuart,

Thank you for investigation.

idanila
5-Regular Member
(To:idanila)

 

Objective achieved!

 

 

Last week I also continued to play with Mathcad and Creo in order to create a 3D fractal model to be 3D printed later.

 

It may sound harsh to transform a matrix of 300 rows into a 3D-converted readable, modifiable graph but not quite as harsh as it really is. And interesting!

 

There were many ideas, one of them being to make a matrix of 3 strings with those strings containing some informational values from the given function, another one was to write a .stl custom function,  and other ideas such as these 2 that were driven by the Community responses to my proposed question:

 

After trying to create a STL file from Mathcad Prime 3.1 that I saw to be possible, according to this Demo:

 

http://www.ptc.com/video?id=4002771978001&account=Demos

1.JPG

2.JPG

 

I found out that this customized function would require a .dll with background programming so I skipped directly to this life saver tool that converts 2D images in 3D objects, aka .stl files.

 

http://app.selva3d.com/transform (5 free trials)

 

3.JPG

 

After transforming it, I still had some more steps to do - to make it solid, in order to extrude it afterwards.

Some of the steps, if anyone ever interested, can be found here: https://www.youtube.com/watch?v=ho-t5OgEbJY

which lead to 4.JPG that is set at a level that contains not too many details, because otherwise, when printing, it would be very messy and many of those details would be lost anyway.

 

 

After some finishing strokes, I moved the part through MakerBot, that transformed as you may now see below: 5.JPG

 

And the tangible result:

  6.JPG

Tada!!!

   

As I have previously mentioned, this was a personal project, resulted from both my passion for fractals (there are even college classes about them nowadays) and because I wanted to verify if we can create a Model/Part that uses big data (sort of) with the Mathcad-Creo Integration.

   

As so I have seen it works!

 

Other interesting 3D printed models can be found here:

 

https://3dprint.com/50133/3d-printed-fractals-2/

 

& here:

 

http://www.thingiverse.com/glitchpudding/collections/fractals/page:2

 

I have also printed 2 of them the other week:

 

This one http://www.thingiverse.com/thing:1123004

  7.JPG  

And this one:

8.JPG

 

Best regards,

 

Ioana

 

VladimirN
24-Ruby II
(To:idanila)

Continue in the same spirit!

Top Tags