| 1 | #
|
|---|
| 2 | # Example script that creates a surface by stitching marker chains.
|
|---|
| 3 | #
|
|---|
| 4 | path = "/Users/goddard/test.cmm"
|
|---|
| 5 |
|
|---|
| 6 | # Read markers from file.
|
|---|
| 7 | from chimera import openModels
|
|---|
| 8 | openModels.open(path) # Unfortunately this does not return the marker set.
|
|---|
| 9 |
|
|---|
| 10 | # Create an empty surface.
|
|---|
| 11 | from _surface import SurfaceModel
|
|---|
| 12 | surf = SurfaceModel()
|
|---|
| 13 | openModels.add([surf], baseId = 5) # Make surface have id number 5.
|
|---|
| 14 |
|
|---|
| 15 | # Calculate surface by stitching marker chains
|
|---|
| 16 | from VolumePath import marker_sets, surface
|
|---|
| 17 | for mset in marker_sets():
|
|---|
| 18 | surface.make_marker_surface(mset.markers(), surf, caps = True)
|
|---|