Class that represents a general primitive.
|
__init__(self)
Initializes the Primitive instance object with a unique ID. |
|
|
|
__neg__(self)
Returns a view onto the curve with reversed ordering. |
|
|
|
|
|
|
|
getDirectedID(self)
Returns the primitive ID where a negative sign means that reversed
ordering is used. |
|
|
|
getID(self)
Returns the primitive ID. |
|
|
|
getUnderlyingPrimitive(self)
Returns the underlying primitive. |
|
|
|
hasSameOrientation(self,
other)
Returns True if other is the same primitive and has the
same orientation, False otherwise. |
|
|
|
isColocated(self,
primitive)
Rreturns True if the two primitives are located at the same position. |
|
|
|
substitute(self,
sub_dict)
Returns a copy of self with substitutes for the primitives used to
construct it given by the dictionary sub_dict . |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|