Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export ContourPlot3D surface and regenerate it in Excel, Originlab or some other similar softwares

I tried this, but failed.

fig3D = ContourPlot3D[ x^2 + y^3 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, 
                       PlotPoints -> 100]
pts = (InputForm@fig3D)[[1, 1, 1]];
ListSurfacePlot3D[pts]

The regenerated surface is very poor. Any suggestions? thanks!

like image 865
FreshApple Avatar asked Sep 10 '11 03:09

FreshApple


1 Answers

Not too bad if you specify MaxPlotPoints

ListSurfacePlot3D[pts, Mesh -> None, MaxPlotPoints -> 100]

enter image description here

Compare with

ListSurfacePlot3D[pts]

enter image description here

Edit

Regarding the export to Excel, please consider that the Excel surface plot is a very basic construction and requires a matrix whose first file and column are the XY values with the Z values in the inner cells. Example:

enter image description here

So, exporting a working dataset to Excel may require (an unspecified amount of) data massaging.

like image 122
Dr. belisarius Avatar answered Oct 30 '22 04:10

Dr. belisarius