-
Notifications
You must be signed in to change notification settings - Fork 0
/
phobject.py
38 lines (29 loc) · 916 Bytes
/
phobject.py
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
30
31
32
33
34
35
36
37
38
# Define basic classes for handling things that should be added to Blender.
import mathutils
import .constants
import .generate_text
class Phobject:
"""Class to handle general Blender object.
Most of this will probably be a wrapper to real Blender's object class.
"""
def __init__(self):
pass
def add_to_Blender(self):
"""Implemented by the specific class."""
pass
class Text(Phobject):
"""LaTeX text object.
"""
def __init__(self,
position = mathutils.Vector((0,0,0))
anchor = "LBase"
text = "Text",
)
self.text = text
super().__init__(self)
generate_text(text) # Should catch a return value here.
class Square:
"""Square with rounded corners.
"""
def __init__(self, x, y, rx=0, ry=0, color=None, fillcolor=None, rotation=None):
pass