Skip to main content
edited tags
Link
user21
  • 40.7k
  • 8
  • 114
  • 170
Tweeted twitter.com/StackMma/status/1103671654343999490
Became Hot Network Question
added 1 character in body
Source Link
Ulrich Neumann
  • 56.8k
  • 2
  • 26
  • 60

As a simple example for applying stl-files I took "cow" out of MMA example data. I'm able to discretize the Graphic without problems

kuh = ExampleData[{"Geometry3D", "Cow"}]
mesh=DiscretizeGraphics[kuh,MeshCellStyle -> {{1, All} -> Red}] (* MeshRegion *)

enter image description here

to get an stl-like triangle surface, which seems to be ok

ConstantRegionQ[mesh]
(*True*)    

for further meshing, but my attempt to create a volumemesh fails

Needs["NDSolve`FEM`"]
ToElementMesh[RegionBoundary[mesh]ToElementMesh[RegionBoundary[mesh]]
(*$Failed*)
 

What's wrong with my attempt? Thanks!

As a simple example for applying stl-files I took "cow" out of MMA example data. I'm able to discretize the Graphic without problems

kuh = ExampleData[{"Geometry3D", "Cow"}]
mesh=DiscretizeGraphics[kuh,MeshCellStyle -> {{1, All} -> Red}] (* MeshRegion *)

enter image description here

to get an stl-like triangle surface, which seems to be ok

ConstantRegionQ[mesh]
(*True*)    

for further meshing, but my attempt to create a volumemesh fails

Needs["NDSolve`FEM`"]
ToElementMesh[RegionBoundary[mesh]
(*$Failed*)
 

What's wrong with my attempt? Thanks!

As a simple example for applying stl-files I took "cow" out of MMA example data. I'm able to discretize the Graphic without problems

kuh = ExampleData[{"Geometry3D", "Cow"}]
mesh=DiscretizeGraphics[kuh,MeshCellStyle -> {{1, All} -> Red}] (* MeshRegion *)

enter image description here

to get an stl-like triangle surface, which seems to be ok

ConstantRegionQ[mesh]
(*True*)    

for further meshing, but my attempt to create a volumemesh fails

Needs["NDSolve`FEM`"]
ToElementMesh[RegionBoundary[mesh]]
(*$Failed*)
 

What's wrong with my attempt? Thanks!

Source Link
Ulrich Neumann
  • 56.8k
  • 2
  • 26
  • 60

Meshing the cow

As a simple example for applying stl-files I took "cow" out of MMA example data. I'm able to discretize the Graphic without problems

kuh = ExampleData[{"Geometry3D", "Cow"}]
mesh=DiscretizeGraphics[kuh,MeshCellStyle -> {{1, All} -> Red}] (* MeshRegion *)

enter image description here

to get an stl-like triangle surface, which seems to be ok

ConstantRegionQ[mesh]
(*True*)    

for further meshing, but my attempt to create a volumemesh fails

Needs["NDSolve`FEM`"]
ToElementMesh[RegionBoundary[mesh]
(*$Failed*)
 

What's wrong with my attempt? Thanks!