PyVMF.Side

class Side(dic: Optional[dict] = None, children: Optional[list] = None)

Corresponds to a face/side of a solid. Sides are defined by 3 vertices, the combination of which define an infinitely large plane, source calculates the intersection between these planes to determine where the edges are. This is not currently calculated in PyVMF, so some methods may behave unpredictably.

Parameters:
  • dic (dict) – All the values to be initialized, if empty default values are used.
  • children (list) – Holds a potential displacement DispInfo to be initialized
__init__(dic: Optional[dict] = None, children: Optional[list] = None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(dic, children) Initialize self.
copy() Copies the class using deepcopy()
export() Gets all the variables than need to be exported into the .VMF file
export_children() Gets all the children classes
flip([x, y, z])
get_displacement()
return:The current displacement, only 1 per side
get_vector()
get_vertices()
return:All 3 vertices that define the plane
ids()
move(x, y, z) Moves the side by the given amount
remove_displacement() Removes the diplacement from the side
rotate_x(center, angle) Rotates the side around the x axis
rotate_y(center, angle) Rotates the vertex around the y axis
rotate_z(center, angle) Rotates the vertex around the z axis

Attributes

ID
NAME