Consider examplary a MeshRegion-Object
test = MeshRegion[{{0, 0}, {1, 0}, {2,1/2}, {2, -1/2}}, {Line[{1, 2}], Line[{2, 3}],Line[{3, 4}],Line[{4, 2}]}];
Looking inside test I get
??test
(*Global`test
MeshRegion[...]*)
To extract the arguments of MeshRegion I usually try
test /. MeshRegion->List
which doesn't work in this example?
What might be the reason? Is there a workaround? Thanks
AtomQ[test]givesTrue. – kglr Jan 15 '19 at 07:40MeshCoordinates[test]andMeshCells[test, 1]orMeshCells[test, All]? – kglr Jan 15 '19 at 07:48MeshRegion[...]-expression which??testreturns. – Ulrich Neumann Jan 15 '19 at 07:53MeshRegionis atomic. The "input form" may not even correspond accurately to the internal representation (though I believe in this case it does). Use the documented API if you need guarantees and protection from breakage in special cases or future/past versions. All that said, check out my community wiki answer (or Carl'sNucleus) in the QA I linked above. – Szabolcs Jan 15 '19 at 08:50Meshis an option for Plot3D&Co andMeshRegionis some kind of mesh-object. Sorry, no more insight. – Ulrich Neumann Feb 18 '19 at 08:57