Reputation
521
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 11
Impact
~4k people reached

Jul
29
accepted List connectivity of points in discretized mesh
Jul
28
comment List connectivity of points in discretized mesh
You're quite correct, my last needs some tidying up to remove duplicates
Jul
28
revised List connectivity of points in discretized mesh
added 6 characters in body
Jul
28
revised List connectivity of points in discretized mesh
[Edit removed during grace period]
Jul
28
answered List connectivity of points in discretized mesh
Jul
28
comment List connectivity of points in discretized mesh
Doesn't quite extract them, I've manually copied them out and created the list with some Riffle and Partitioning... just need to automate the extraction of the Polygons now.... thanks for the help
Jul
28
comment List connectivity of points in discretized mesh
I think you're right I could probably parse the list with some sorting and removal of duplicates, is there a way of extracting the output into a list?
Jul
28
comment List connectivity of points in discretized mesh
Yes, if P is the point on the boundary that you've connected the lines too, and those points are 1-4, then the connectivity list would be {{p,1},{p,2},{p,3},{p,4}} if point p was indeed connected to all four points...
Jul
28
comment List connectivity of points in discretized mesh
I've hacked out some of the co-ordinates and shortened the list on the Polygon run to let the output fit...
Jul
28
comment List connectivity of points in discretized mesh
MeshCellMarker -> {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, Default} -> MeshCellMarker -> 0}, Method -> {"EliminateUnusedCoordinates" -> True, "DeleteDuplicateCoordinates" -> Automatic, "VertexAlias" -> Identity, "CheckOrientation" -> True, "CoplanarityTolerance" -> Automatic, "CheckIntersections" -> Automatic, "BoundaryNesting" -> Automatic, "SeparateBoundaries" -> False, "PropagateMarkers" -> True, "Hash" -> 7008025742547179298}]
Jul
28
comment List connectivity of points in discretized mesh
MeshRegion[{{1., 0.}, {0.900968867902419, 0.4338837391175581}……… {Polygon[{{9, 10, 23}, {35, 8, 9}, {29, 20, 16}, ….. Properties -> {{0, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}} -> MeshCellMarker -> {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {0, Default} -> MeshCellMarker -> 0, {1, {42, 47, 10, 85, 78, 49, 5, 52, 1, 65, 18, 72, 63, 58}} -> MeshCellMarker -> {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, Default} -> MeshCellMarker -> 0},
Jul
28
comment List connectivity of points in discretized mesh
Thanks for the answer, but it's not quite what I was looking for. Essentially I've got a shape that's been discretized into triangles which has introduced lots of additional points. I'm looking to create a list of the nodes that a each node is directly connected to. I've edited the example in the original question a little to help make it clearer what I'm hoping to achieve. Thanks for answering though.
Jul
28
revised List connectivity of points in discretized mesh
Slight edit on the example to make it clearer re: connectivity and required output
Jul
28
comment List connectivity of points in discretized mesh
I'm not sure how I would check that in all honesty... I'll dig into it and see if I can work out how to check the output
Jul
28
revised List connectivity of points in discretized mesh
added 52 characters in body
Jul
28
asked List connectivity of points in discretized mesh
Jun
24
comment Making a black bar in BarChart when using GlassRectangle
Works as expected on 10.1 Windows 8.1 64 bit.
Jun
18
accepted Add values from a list, at positions from a list, to a matrix
Jun
16
comment Add values from a list, at positions from a list, to a matrix
No, every day is a school day, thanks for the pointer... I'm going to have a busy afternoon working through and deconstructing all of the solutions below. I'm genuinely grateful for them it's given me a lot to think about and tinker with.
Jun
16
comment Add values from a list, at positions from a list, to a matrix
I think the question that you've linked to provides a solution to the question that I've asked, however the methods provided are specific ONLY for SparseArray (a function I was unaware of yesterday). The answers to my question have shown several different ways of achieving the same behaviour as my question was not function specific. I personally find the answers to my question to be broad and show comparisons between methods and style which has to be positive for someone learning Mathematica by creating behaviour using several different methods. Please can you reopen.