triro 1.3.0
A Python Ray-Mesh Intersector in OptiX
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
2import triro.backend.ops as hops
3
4import os
5
6if os.name == 'nt':
7 # add cl.exe to path
8 from setuptools import msvc
9 msvc_env = msvc.EnvironmentInfo('amd64')
10 msvc_dir_candidates = msvc_env.VCTools
11 for d in msvc_dir_candidates:
12 if 'bin' in d:
13 msvc_dir = d
14 break
15 os.environ['Path'] = os.environ['Path'] + f';{msvc_dir}'
16
17# initialize optix
18hops.init_optix()
19hops.create_optix_context()
20hops.create_optix_module()
21hops.create_optix_pipelines()
22hops.build_sbts()