If I have a data set in R, what would be a good way to export it so I could get it to a service like Shapeways for 3D printing?
如果我在R中有一个数据集,那么导出它的好方法是什么,所以我可以将它用于像Shapeways这样的3D打印服务?
I don't have any "real" CAD software, but I've used Google Sketchup before.
我没有任何“真正的”CAD软件,但我之前使用过Google Sketchup。
In my case the object can be described by two surface plots, something like this:
在我的例子中,对象可以用两个表面图来描述,如下所示:
x <- y <- seq(0,1,by=0.01)
persp(x, y, outer(x, y, function(x,y) (x+y)^2))
persp(x, y, outer(x, y, function(x,y) rep(0,length(x))), zlim=c(-1,1))
...which I would like to appear together as one object to be printed. Any ideas?
...我希望一起出现作为一个要打印的对象。有任何想法吗?
2 个解决方案
#1
8
Shapeways says it can take output from MeshLab: http://sourceforge.net/projects/meshlab/files/meshlab
Shapeways说它可以从MeshLab获取输出:http://sourceforge.net/projects/meshlab/files/meshlab
MeshLab, an open-source, free-as-in-beer project, is able to import this file using its .asc
format option:
MeshLab是一个开源,免费的啤酒项目,能够使用.asc格式选项导入该文件:
dat <- data.frame(x=x, # will be recycled 101 times
y=rep(y, each=101),
z=as.vector(outer(x, y, function(x,y) (x+y)^2)))
write.table(dat, file="out.asc", row.names=FALSE, col.names=FALSE)
I probably should have done an sos-search;
我可能应该做一个sos-search;
library(sos)
findFn("3d printing")
.... did bring up the r2stl
package whose sole function has the same name. It also found other convex hull functions that might be useful to others that want to build other 3D shapes from data.
....确实调出了r2stl包,其唯一的功能具有相同的名称。它还发现了其他凸包功能,这些功能可能对其他想要从数据构建其他3D形状的人有用。
#2
5
DWin has already made one suggestion for the mesh. If you need to export the resulting object from Meshlab and manipulate it in an extraordinarily intuitive 3D application that doesn't cost the earth then you should try MoI 3D.
DWin已经为网格做了一个建议。如果您需要从Meshlab导出结果对象并在一个非常直观的3D应用程序中操作它,而不需要花费地球,那么您应该尝试使用MoI 3D。
I mention this because MoI has a very competent mesh engine and many of MoI's users seem to be involved in 3D printing (see for example this thread).
我之所以提到这一点,是因为MoI拥有非常称职的网格引擎,许多MoI用户似乎都参与了3D打印(例如参见此主题)。
The developer Michael Gibson often responds to forum questions in, literally, minutes and other users in the forum are very supportive. There is a full 30-day trial version that allows you to experiment at no cost. MoI can also be scripted using JavaScript.
开发人员Michael Gibson经常回答论坛问题,从字面上看,分钟和论坛中的其他用户都非常支持。有一个完整的30天试用版,允许您免费试用。 MoI也可以使用JavaScript编写脚本。
By its nature 3D printing is irrevocably real so it pays to be sure before you commit!
就其本质而言,3D打印是不可改变的真实,因此在您提交之前确保付费是值得的!
#1
8
Shapeways says it can take output from MeshLab: http://sourceforge.net/projects/meshlab/files/meshlab
Shapeways说它可以从MeshLab获取输出:http://sourceforge.net/projects/meshlab/files/meshlab
MeshLab, an open-source, free-as-in-beer project, is able to import this file using its .asc
format option:
MeshLab是一个开源,免费的啤酒项目,能够使用.asc格式选项导入该文件:
dat <- data.frame(x=x, # will be recycled 101 times
y=rep(y, each=101),
z=as.vector(outer(x, y, function(x,y) (x+y)^2)))
write.table(dat, file="out.asc", row.names=FALSE, col.names=FALSE)
I probably should have done an sos-search;
我可能应该做一个sos-search;
library(sos)
findFn("3d printing")
.... did bring up the r2stl
package whose sole function has the same name. It also found other convex hull functions that might be useful to others that want to build other 3D shapes from data.
....确实调出了r2stl包,其唯一的功能具有相同的名称。它还发现了其他凸包功能,这些功能可能对其他想要从数据构建其他3D形状的人有用。
#2
5
DWin has already made one suggestion for the mesh. If you need to export the resulting object from Meshlab and manipulate it in an extraordinarily intuitive 3D application that doesn't cost the earth then you should try MoI 3D.
DWin已经为网格做了一个建议。如果您需要从Meshlab导出结果对象并在一个非常直观的3D应用程序中操作它,而不需要花费地球,那么您应该尝试使用MoI 3D。
I mention this because MoI has a very competent mesh engine and many of MoI's users seem to be involved in 3D printing (see for example this thread).
我之所以提到这一点,是因为MoI拥有非常称职的网格引擎,许多MoI用户似乎都参与了3D打印(例如参见此主题)。
The developer Michael Gibson often responds to forum questions in, literally, minutes and other users in the forum are very supportive. There is a full 30-day trial version that allows you to experiment at no cost. MoI can also be scripted using JavaScript.
开发人员Michael Gibson经常回答论坛问题,从字面上看,分钟和论坛中的其他用户都非常支持。有一个完整的30天试用版,允许您免费试用。 MoI也可以使用JavaScript编写脚本。
By its nature 3D printing is irrevocably real so it pays to be sure before you commit!
就其本质而言,3D打印是不可改变的真实,因此在您提交之前确保付费是值得的!