75 |
""" |
""" |
76 |
returns the points used to construct the primitive |
returns the points used to construct the primitive |
77 |
""" |
""" |
78 |
out=set() |
out=[] |
79 |
for i in self.getPrimitives(): |
for i in self.getPrimitives(): |
80 |
if isinstance(i,Point): out.add(i) |
if isinstance(i,Point): out.append(i) |
81 |
return list(out) |
return out |
82 |
|
|
83 |
def getPrimitives(self): |
def getPrimitives(self): |
84 |
""" |
""" |
85 |
returns a list of primitives used to construct the primitive with no double entries |
returns a list of primitives used to construct the primitive with no double entries |
86 |
""" |
""" |
87 |
out=set() |
out=[] |
88 |
return list(set([p for p in self.collectPrimitiveBases()])) |
for p in self.collectPrimitiveBases(): |
89 |
|
if not p in out: out.append(p) |
90 |
|
return out |
91 |
|
|
92 |
def copy(self): |
def copy(self): |
93 |
""" |
""" |