-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwdbexample.py
More file actions
29 lines (24 loc) · 797 Bytes
/
wdbexample.py
File metadata and controls
29 lines (24 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from sys import settrace
from brlcad.vmath import Transform
from brlcad.database import Database
from brlcad import primitives
# An example of the Database class
database = Database("i dont have names to give.g", "No title as usual")
# Makes a sphere with default arguments
database.sphere("default_sph")
# Makes a sphere with given arguments
database.sphere("sph_with_args", (10, 10, 10), 2)
database.region(
'region',
region_id = 16,
tree = 'sph_with_args',
shader="plastic {di .9 sp .4}",
rgb_color=(66,102,0)
)
#db.region(
# 'default_sph_region',
# region_id = 16,
# tree = 'default_sph',
# shader="plastic {di .9 sp .4}",
# rgb_color=(66,102,0)
# )