Meshing the cowDetermine whether points lie within a cowCreating a 2D meshing algorithm in MathematicaHow to...

Is divide-by-zero a security vulnerability?

How do you make a gun that shoots melee weapons and/or swords?

Giving a talk in my old university, how prominently should I tell students my salary?

Are small insurances worth it

Getting field type in ArcPy?

How do we objectively assess if a dialogue sounds unnatural or cringy?

Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?

What is the oldest European royal house?

What can I do if someone tampers with my SSH public key?

What is the meaning of "producing negative zeroes" in a system that doesn't support it?

ESPP--any reason not to go all in?

Should I use HTTPS on a domain that will only be used for redirection?

Is "cogitate" an appropriate word for this?

Where is this quote about overcoming the impossible said in "Interstellar"?

Who is at the mall?

Remove object from array based on array of some property of that object

In the world of The Matrix, what is "popping"?

Is being socially reclusive okay for a graduate student?

Is every open circuit a capacitor?

Naming Characters after Friends/Family

Why are special aircraft used for the carriers in the United States Navy?

Searching for a string that contains the file name

How can friction do no work in case of pure rolling?

Are Wave equations equivalent to Maxwell equations in free space?



Meshing the cow


Determine whether points lie within a cowCreating a 2D meshing algorithm in MathematicaHow to control the order of meshing?Meshing the surface of a non-convex objectMeshing of a cubeWhat is the difference between getting a boundary mesh from ToBoundaryMesh vs doing it with ToElementMesh?Behaviour of meshing in BoundaryDiscretizeRegionHexagonal meshing in Plot3DMeshing a thin tubeMeshing a cylindrical geometry with a notchTrouble meshing a Corbino disc













6












$begingroup$


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!










share|improve this question











$endgroup$












  • $begingroup$
    Just drop the RegionBoundary and it should work.
    $endgroup$
    – Pinti
    9 hours ago










  • $begingroup$
    Unfortunately no: ToElementMesh[mesh] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    9 hours ago








  • 1




    $begingroup$
    Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
    $endgroup$
    – J. M. is computer-less
    8 hours ago






  • 1




    $begingroup$
    @ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
    $endgroup$
    – Ulrich Neumann
    8 hours ago






  • 1




    $begingroup$
    However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
    $endgroup$
    – J. M. is computer-less
    8 hours ago
















6












$begingroup$


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!










share|improve this question











$endgroup$












  • $begingroup$
    Just drop the RegionBoundary and it should work.
    $endgroup$
    – Pinti
    9 hours ago










  • $begingroup$
    Unfortunately no: ToElementMesh[mesh] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    9 hours ago








  • 1




    $begingroup$
    Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
    $endgroup$
    – J. M. is computer-less
    8 hours ago






  • 1




    $begingroup$
    @ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
    $endgroup$
    – Ulrich Neumann
    8 hours ago






  • 1




    $begingroup$
    However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
    $endgroup$
    – J. M. is computer-less
    8 hours ago














6












6








6





$begingroup$


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!










share|improve this question











$endgroup$




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!







mesh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 9 hours ago







Ulrich Neumann

















asked 9 hours ago









Ulrich NeumannUlrich Neumann

9,488516




9,488516












  • $begingroup$
    Just drop the RegionBoundary and it should work.
    $endgroup$
    – Pinti
    9 hours ago










  • $begingroup$
    Unfortunately no: ToElementMesh[mesh] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    9 hours ago








  • 1




    $begingroup$
    Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
    $endgroup$
    – J. M. is computer-less
    8 hours ago






  • 1




    $begingroup$
    @ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
    $endgroup$
    – Ulrich Neumann
    8 hours ago






  • 1




    $begingroup$
    However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
    $endgroup$
    – J. M. is computer-less
    8 hours ago


















  • $begingroup$
    Just drop the RegionBoundary and it should work.
    $endgroup$
    – Pinti
    9 hours ago










  • $begingroup$
    Unfortunately no: ToElementMesh[mesh] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    9 hours ago








  • 1




    $begingroup$
    Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
    $endgroup$
    – J. M. is computer-less
    8 hours ago






  • 1




    $begingroup$
    @ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
    $endgroup$
    – Ulrich Neumann
    8 hours ago






  • 1




    $begingroup$
    However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
    $endgroup$
    – J. M. is computer-less
    8 hours ago
















$begingroup$
Just drop the RegionBoundary and it should work.
$endgroup$
– Pinti
9 hours ago




$begingroup$
Just drop the RegionBoundary and it should work.
$endgroup$
– Pinti
9 hours ago












$begingroup$
Unfortunately no: ToElementMesh[mesh] (*$Failed*)
$endgroup$
– Ulrich Neumann
9 hours ago






$begingroup$
Unfortunately no: ToElementMesh[mesh] (*$Failed*)
$endgroup$
– Ulrich Neumann
9 hours ago






1




1




$begingroup$
Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
$endgroup$
– J. M. is computer-less
8 hours ago




$begingroup$
Did you know that you can just do ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]?
$endgroup$
– J. M. is computer-less
8 hours ago




1




1




$begingroup$
@ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
$endgroup$
– Ulrich Neumann
8 hours ago




$begingroup$
@ Piniti Thanks, it seems to be a problem of MMA version 11.0.1
$endgroup$
– Ulrich Neumann
8 hours ago




1




1




$begingroup$
However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
$endgroup$
– J. M. is computer-less
8 hours ago




$begingroup$
However, FindMeshDefects[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]] shows that a conversion to a volume mesh might not be straightforward.
$endgroup$
– J. M. is computer-less
8 hours ago










2 Answers
2






active

oldest

votes


















5












$begingroup$

The cow mesh is an example of a "broken" mesh. Try



mesh =  RepairMesh[mesh]


before sending it to ToElementMesh.






share|improve this answer









$endgroup$













  • $begingroup$
    Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    8 hours ago








  • 2




    $begingroup$
    @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
    $endgroup$
    – J. M. is computer-less
    8 hours ago










  • $begingroup$
    Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
    $endgroup$
    – Henrik Schumacher
    8 hours ago










  • $begingroup$
    Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
    $endgroup$
    – Ulrich Neumann
    8 hours ago






  • 1




    $begingroup$
    @Ulrich By the way, a good and clean mesh is the "Triceratops".
    $endgroup$
    – Henrik Schumacher
    8 hours ago



















1












$begingroup$

As other's have stated, the issue is self intersecting facets:



mr = RepairMesh[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]];

FindMeshDefects[mr]




If we could determine if a point is 'inside' the cow, we could use a naive variant of the powercrust algorithm. Here 'inside' is not necessarily well defined.



Luckily we can use isInside defined specifically for this model here!



dm = DelaunayMesh[MeshCoordinates[mr]];

powercrust = BoundaryMesh @ MeshRegion[
MeshCoordinates[dm],
Pick[MeshCells[dm, 3], isInside /@ PropertyValue[{dm, 3}, MeshCellCentroid]]
];

Needs["NDSolve`FEM`"]

ToElementMesh[powercrust]



ElementMesh[{{-0.410816, 0.410816}, {-0.133851, 0.133851}, {-0.251619, 0.251619}}, {TetrahedronElement["<" 25368 ">"]}]






share|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "387"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192781%2fmeshing-the-cow%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5












    $begingroup$

    The cow mesh is an example of a "broken" mesh. Try



    mesh =  RepairMesh[mesh]


    before sending it to ToElementMesh.






    share|improve this answer









    $endgroup$













    • $begingroup$
      Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
      $endgroup$
      – Ulrich Neumann
      8 hours ago








    • 2




      $begingroup$
      @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
      $endgroup$
      – J. M. is computer-less
      8 hours ago










    • $begingroup$
      Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
      $endgroup$
      – Henrik Schumacher
      8 hours ago










    • $begingroup$
      Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
      $endgroup$
      – Ulrich Neumann
      8 hours ago






    • 1




      $begingroup$
      @Ulrich By the way, a good and clean mesh is the "Triceratops".
      $endgroup$
      – Henrik Schumacher
      8 hours ago
















    5












    $begingroup$

    The cow mesh is an example of a "broken" mesh. Try



    mesh =  RepairMesh[mesh]


    before sending it to ToElementMesh.






    share|improve this answer









    $endgroup$













    • $begingroup$
      Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
      $endgroup$
      – Ulrich Neumann
      8 hours ago








    • 2




      $begingroup$
      @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
      $endgroup$
      – J. M. is computer-less
      8 hours ago










    • $begingroup$
      Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
      $endgroup$
      – Henrik Schumacher
      8 hours ago










    • $begingroup$
      Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
      $endgroup$
      – Ulrich Neumann
      8 hours ago






    • 1




      $begingroup$
      @Ulrich By the way, a good and clean mesh is the "Triceratops".
      $endgroup$
      – Henrik Schumacher
      8 hours ago














    5












    5








    5





    $begingroup$

    The cow mesh is an example of a "broken" mesh. Try



    mesh =  RepairMesh[mesh]


    before sending it to ToElementMesh.






    share|improve this answer









    $endgroup$



    The cow mesh is an example of a "broken" mesh. Try



    mesh =  RepairMesh[mesh]


    before sending it to ToElementMesh.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 8 hours ago









    Henrik SchumacherHenrik Schumacher

    55.6k576154




    55.6k576154












    • $begingroup$
      Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
      $endgroup$
      – Ulrich Neumann
      8 hours ago








    • 2




      $begingroup$
      @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
      $endgroup$
      – J. M. is computer-less
      8 hours ago










    • $begingroup$
      Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
      $endgroup$
      – Henrik Schumacher
      8 hours ago










    • $begingroup$
      Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
      $endgroup$
      – Ulrich Neumann
      8 hours ago






    • 1




      $begingroup$
      @Ulrich By the way, a good and clean mesh is the "Triceratops".
      $endgroup$
      – Henrik Schumacher
      8 hours ago


















    • $begingroup$
      Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
      $endgroup$
      – Ulrich Neumann
      8 hours ago








    • 2




      $begingroup$
      @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
      $endgroup$
      – J. M. is computer-less
      8 hours ago










    • $begingroup$
      Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
      $endgroup$
      – Henrik Schumacher
      8 hours ago










    • $begingroup$
      Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
      $endgroup$
      – Ulrich Neumann
      8 hours ago






    • 1




      $begingroup$
      @Ulrich By the way, a good and clean mesh is the "Triceratops".
      $endgroup$
      – Henrik Schumacher
      8 hours ago
















    $begingroup$
    Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    8 hours ago






    $begingroup$
    Thanks, but nothing changes: meshR = RepairMesh[mesh ]; ToElementMesh[meshR] (*$Failed*)
    $endgroup$
    – Ulrich Neumann
    8 hours ago






    2




    2




    $begingroup$
    @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
    $endgroup$
    – J. M. is computer-less
    8 hours ago




    $begingroup$
    @Ulrich, running FindMeshDefects[meshR] should show what may be causing the failure.
    $endgroup$
    – J. M. is computer-less
    8 hours ago












    $begingroup$
    Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
    $endgroup$
    – Henrik Schumacher
    8 hours ago




    $begingroup$
    Apparently version 11.3 can cope both with the unrepaired and the repaired mesh. So I don't know what to do. The mesh has self-intersections so tet-meshing it is nontrivial.
    $endgroup$
    – Henrik Schumacher
    8 hours ago












    $begingroup$
    Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
    $endgroup$
    – Ulrich Neumann
    8 hours ago




    $begingroup$
    Obviously the example isn't as simple as I hoped for. Thank you Henrik and J.M.
    $endgroup$
    – Ulrich Neumann
    8 hours ago




    1




    1




    $begingroup$
    @Ulrich By the way, a good and clean mesh is the "Triceratops".
    $endgroup$
    – Henrik Schumacher
    8 hours ago




    $begingroup$
    @Ulrich By the way, a good and clean mesh is the "Triceratops".
    $endgroup$
    – Henrik Schumacher
    8 hours ago











    1












    $begingroup$

    As other's have stated, the issue is self intersecting facets:



    mr = RepairMesh[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]];

    FindMeshDefects[mr]




    If we could determine if a point is 'inside' the cow, we could use a naive variant of the powercrust algorithm. Here 'inside' is not necessarily well defined.



    Luckily we can use isInside defined specifically for this model here!



    dm = DelaunayMesh[MeshCoordinates[mr]];

    powercrust = BoundaryMesh @ MeshRegion[
    MeshCoordinates[dm],
    Pick[MeshCells[dm, 3], isInside /@ PropertyValue[{dm, 3}, MeshCellCentroid]]
    ];

    Needs["NDSolve`FEM`"]

    ToElementMesh[powercrust]



    ElementMesh[{{-0.410816, 0.410816}, {-0.133851, 0.133851}, {-0.251619, 0.251619}}, {TetrahedronElement["<" 25368 ">"]}]






    share|improve this answer









    $endgroup$


















      1












      $begingroup$

      As other's have stated, the issue is self intersecting facets:



      mr = RepairMesh[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]];

      FindMeshDefects[mr]




      If we could determine if a point is 'inside' the cow, we could use a naive variant of the powercrust algorithm. Here 'inside' is not necessarily well defined.



      Luckily we can use isInside defined specifically for this model here!



      dm = DelaunayMesh[MeshCoordinates[mr]];

      powercrust = BoundaryMesh @ MeshRegion[
      MeshCoordinates[dm],
      Pick[MeshCells[dm, 3], isInside /@ PropertyValue[{dm, 3}, MeshCellCentroid]]
      ];

      Needs["NDSolve`FEM`"]

      ToElementMesh[powercrust]



      ElementMesh[{{-0.410816, 0.410816}, {-0.133851, 0.133851}, {-0.251619, 0.251619}}, {TetrahedronElement["<" 25368 ">"]}]






      share|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        As other's have stated, the issue is self intersecting facets:



        mr = RepairMesh[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]];

        FindMeshDefects[mr]




        If we could determine if a point is 'inside' the cow, we could use a naive variant of the powercrust algorithm. Here 'inside' is not necessarily well defined.



        Luckily we can use isInside defined specifically for this model here!



        dm = DelaunayMesh[MeshCoordinates[mr]];

        powercrust = BoundaryMesh @ MeshRegion[
        MeshCoordinates[dm],
        Pick[MeshCells[dm, 3], isInside /@ PropertyValue[{dm, 3}, MeshCellCentroid]]
        ];

        Needs["NDSolve`FEM`"]

        ToElementMesh[powercrust]



        ElementMesh[{{-0.410816, 0.410816}, {-0.133851, 0.133851}, {-0.251619, 0.251619}}, {TetrahedronElement["<" 25368 ">"]}]






        share|improve this answer









        $endgroup$



        As other's have stated, the issue is self intersecting facets:



        mr = RepairMesh[ExampleData[{"Geometry3D", "Cow"}, "MeshRegion"]];

        FindMeshDefects[mr]




        If we could determine if a point is 'inside' the cow, we could use a naive variant of the powercrust algorithm. Here 'inside' is not necessarily well defined.



        Luckily we can use isInside defined specifically for this model here!



        dm = DelaunayMesh[MeshCoordinates[mr]];

        powercrust = BoundaryMesh @ MeshRegion[
        MeshCoordinates[dm],
        Pick[MeshCells[dm, 3], isInside /@ PropertyValue[{dm, 3}, MeshCellCentroid]]
        ];

        Needs["NDSolve`FEM`"]

        ToElementMesh[powercrust]



        ElementMesh[{{-0.410816, 0.410816}, {-0.133851, 0.133851}, {-0.251619, 0.251619}}, {TetrahedronElement["<" 25368 ">"]}]







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        Chip HurstChip Hurst

        21.9k15790




        21.9k15790






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematica Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192781%2fmeshing-the-cow%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

            Castillo d'Acher Características Menú de navegación

            Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...