Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble using the script command to enable backface culling #301

Open
WestfallDaniel opened this issue May 5, 2021 · 0 comments
Open

Trouble using the script command to enable backface culling #301

WestfallDaniel opened this issue May 5, 2021 · 0 comments

Comments

@WestfallDaniel
Copy link

I have had a similar issue that others have reported, which forcing backface culling seems to fix, referenced here. However, I am having trouble implementing a script fix such as

surf.actor.property.backface_culling = True

I was wondering if anyone could help me using one of the examples from here

import os
from os.path import join as pjoin
from surfer import Brain

print(__doc__)

subject_id = 'fsaverage'
hemi = 'both'
surf = 'inflated'
view = 'frontal'

"""
Bring up the visualization
"""
brain = Brain(subject_id, hemi, surf, views=view,
              cortex="bone", background="ivory")

"""
Display the 'aparc' parcellation borders.
To use annotations that live in your subject's
label directory, just use the annot name.
"""
brain.add_annotation("aparc")

I admit I am not very well versed with scripting so I am having trouble figuring out how to rewrite the surf.actor.property.backface_culling = True code to reference the correct surface (aparc) in the example above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant