There is quite a bit of powerful functionality built in to MeshRegion, but it seems to be lacking in some areas. For example: extracting a list of edges that live on the boundary, or an adjacency list of cell connectivity, etc. There appears to be quite a few of these properties hidden inside of MeshRegion:
mr = MeshRegion[{{0, 0}, {1, 0}, {2, 0}, {0, 1}, {1, 1}, {2,
1}}, {Polygon[{1, 2, 5, 4}], Polygon[{3, 6, 5, 2}]}]
mrProps = mr["Properties"]
For comparison, using properties with SparseArray is well documented What are SparseArray Properties? How and when should they be used?. But, trying to use the same notation on a MeshRegion doesn't appear to work:
mr["BoundaryCells"]
Any thoughts on this, or other useful tips/tricks on using MeshRegion would prove helpful.
Edit:
Unfortunately there is no method "Methods" in MeshRegion, so instead here are the outputs to mr["Properties"] instead:
{AbsoluteDimension,AdjacencyMatrix,AlternateVertexCoordinates,Boundary,BoundaryCellFaceConnectivity,BoundaryCells,BoundaryCellsIds,BoundaryCellsRenderingPrimitives,BoundaryEdges,BoundaryFaces,BoundaryGroups,BoundaryMeshObject,BoundaryNesting,BoundaryPolygons,BoundaryVertices,BoundingBox,BSPTree,Centroid,ClearRepresentation,CompGeomData,ComponentDimensions,ConnectedEdges,ConnectedElements,ConnectedFaces,ConnectedVertices,Connectivity,ConnectivityMatrix,ConvexHullVolume,Coordinates,DataLabels,DeepCopy,Dimension,EdgeCoordinates,EdgeCount,EdgeEdgeConnectivity,EdgeFaceConnectivity,EdgeFaceConnectivityRules,EdgeLabelRules,EdgeLengths,EdgeRules,Edges,EdgesIDs,EdgesRules,EdgeVertexConnectivity,EdgeVertexConnectivityRules,Elements,FaceAreas,FaceCoordinates,FaceCount,FaceEdgeConnectivity,FaceEdgeConnectivityRules,FaceEdgesCount,FaceFaceConnectivity,FaceOutline,Faces,FacesClosed,FacesIDs,FacesRules,FaceVertexConnectivity,FaceVertexConnectivityClosed,FaceVertexConnectivityRules,Frontier,GatherCellsByPropertyValue,GetRegionSpecification,Graphics,Graphics3D,GraphicsComplex,HalfEdgeRules,Index,IndexedBoundaryPolygons,InnerBoundary,InnerFaces,InputForm,Interior,InteriorBoundary,InteriorEdges,InteriorFaces,InteriorVertices,MakeLinear,MakeRepresentation,Measure,MeshBoundaryElements,MeshCellCount,MeshCells,MeshCellTypes,MeshConnectivity,MeshConnectivityRules,MeshCoordinates,MeshElementCount,MeshElements,MeshElementsData,MeshElementsDataRule,MeshElementsIds,MeshElementsMarker,MeshElementsMarkerRules,MeshElementsProperty,MeshElementsPropertyRules,MeshElementsQuality,MeshElementsQualityRules,MeshElementsTags,MeshLinesEdges,MeshLinesElementsTags,MeshLinesVertices,MeshMulticells,MeshObjectID,MeshOrder,MeshSimpleLinesEdges,MeshSimpleLinesVertices,Normals,OuterBoundary,OuterFaces,ParameterCoordinates,Persistence,PointInFaces,Properties,PropertyBoundary,PropertyValueCells,RawCoordinates,RegionCentroid,RegionDimension,RegionEmbeddingDimension,RegionHoles,RegionMeasure,RegularFacesIds,Representations,SetDimension,SetMeshElementsMarker,SetMeshElementsProperty,SetRegionSpecification,Show,SimpleVertices,SimplexMeshQ,SolidCoordinates,SolidCount,SolidsIDs,SparseAdjacencyMatrix,SparseConnectivity,SpatialTree,StrictBoundaryFaces,StrictInteriorFaces,TotalArea,VertexCoordinateRules,VertexCoordinates,VertexCount,VertexEdgeConnectivity,VertexEdgeConnectivityRules,VertexFaceConnectivity,VertexFaceConnectivityRules,VertexIDs,VertexNormals,VertexVertexConnectivity,VertexVertexConnectivityRules,WingData}
"MethodInformation"might clue you in on how to use it. – J. M.'s missing motivation Jun 06 '15 at 21:40"MethodInformation"correctly, but it doesn't seem thatMeshRegionhas such a method. – leibs Jun 06 '15 at 22:01mr["Methods"]for reference? – J. M.'s missing motivation Jun 06 '15 at 22:04