|
|
|||
File indexing completed on 2026-04-10 07:49:45
0001 #!/usr/bin/env python 0002 # 0003 # Copyright (c) 2019 Opticks Team. All Rights Reserved. 0004 # 0005 # This file is part of Opticks 0006 # (see https://bitbucket.org/simoncblyth/opticks). 0007 # 0008 # Licensed under the Apache License, Version 2.0 (the "License"); 0009 # you may not use this file except in compliance with the License. 0010 # You may obtain a copy of the License at 0011 # 0012 # http://www.apache.org/licenses/LICENSE-2.0 0013 # 0014 # Unless required by applicable law or agreed to in writing, software 0015 # distributed under the License is distributed on an "AS IS" BASIS, 0016 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0017 # See the License for the specific language governing permissions and 0018 # limitations under the License. 0019 # 0020 0021 """ 0022 To regenerate the OpticksCSG.py:: 0023 0024 sysrap-;sysrap-cd 0025 c_enums_to_python.py OpticksCSG.h # check 0026 c_enums_to_python.py OpticksCSG.h > OpticksCSG.py 0027 0028 0029 """ 0030 from opticks.sysrap.OpticksCSG import CSG_ 0031 0032 0033 if __name__ == '__main__': 0034 0035 for k, v in CSG_.raw_enum(): 0036 vv = getattr(CSG_, k) 0037 print k, v, vv 0038 0039 0040 0041 for i in range(20): 0042 d = CSG_.desc(i) 0043 i2 = CSG_.fromdesc(d) 0044 0045 print "%3d %15s %d " % (i, d, i2) 0046 0047 0048
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|