level 4
Import["22.ply", "MeshRegion"]
Import["22.stl", "MeshRegion"]主要是这俩条代码为啥运行失败,已经设定当前目录了
生成模型的代码
pp = Show[
ParametricPlot3D[{(R1 - r1*Cos[u]) Cos[v] -
800, (R1 - r1*Cos[u]) Sin[v], r1*Sin[u]}, {u, 0,
2 Pi}, {v, -Pi/6, Pi/6}, AxesLabel -> {x, y, z},
PlotPoints -> 100,
RegionFunction -> Function[{x, y, z}, 400 < y < 470],
BoundaryStyle -> Red, PlotTheme -> "ThickSurface"]]
Export["C:\\Users\\86158\\Desktop\\Mathematica \
Document\\模型文件\\22.ply", pp, "PLY"]
Export["C:\\Users\\86158\\Desktop\\Mathematica \
Document\\模型文件\\22.stl", pp, "STL"]
Export["C:\\Users\\86158\\Desktop\\Mathematica \
Document\\模型文件\\33.stl", pp, "MeshRegion"]
2022年12月08日 14点12分



