Topology
TOPOLOGY_getAdjacentFacelet
Summary
Get a facelet neighbor in the given direction.
Description
Facelet can have neighbors on the same cube face or neighbors by module. This function provide a neighbor of the given facelet in the given direction. Connection status indicates if there is a connection between modules on which given facelet and its neighbor are located.
Inputs
- facelet - a facelet which neighbor is requested
- direction - a direction in which neighbor is requested
- result - resulting facelet
Return value
Neighbor facelet in a given direction with its connection status. The module ID will be MODULES_MAX and the screen number will be SCREENS_MAX in case of an error (e.g. incorrect arguments or the topology malfunction).
Synopsis
TOPOLOGY_getFacelet
Summary
Get a facelet located at the given position of the face.
Inputs
- face - a face of a cube for which the facelet is requested
- position - a position of the module screen on the face
- mode - the face orientation mode
- result - resulting facelet
Return value
Facelet located at the given position.
Synopsis
TOPOLOGY_getPlace
Summary
Get a place of the facelet.
Inputs
- module - an index of a module
- screen - corresponding screen number
- result - resulting place
Return value
Place on cube surface where the given facelet located. Face will be TOPOLOGY_FACES_MAX and position will be TOPOLOGY_POSITIONS_MAX in case of an error (e.g. incorrect arguments or topology malfunction)
Synopsis
TOPOLOGY_getOppositeFacelet
Summary
Get an opposite facelet located on a diagonal counterpart module.
Inputs
- module - an index of a module
- screen - corresponding screen number
- result - resulting facelet
Return value
Diagonal opposite counterpart facelet. Connection status indicates if there any connection to the module on which that facelet resides. The module ID will be MODULES_MAX and the screen number will be SCREENS_MAX in case of an error (e.g. incorrect arguments or topology malfunction).
Synopsis
TOPOLOGY_getAngle
Summary
Get an angle to align images on a face according to the orientation mode.
Description
Display coordinates system is persistent on a module screen. Different angles are needed to align images on all modules with screens on the same face. This function returns the angle for the screen specified by the facelet. The angle is relative to the position 0 on the same face where the facelet is located in the given orientation mode.
Inputs
- module - an index of a module
- screen - corresponding screen number
- mode - an orientation mode in which an angle is requested
Return value
Angle to align images on the same face according to the orientation mode, 0 in case of an error (e.g. incorrect arguments or the topology malfunction).
Synopsis
TOPOLOGY_getFaceletOrientation
Summary
Get a face orientation on which the given facelet resides.
Inputs
- module - an index of a module
- screen - corresponding screen number
Return value
Face orientation on which the given facelet resides, ORIENTATION_MAX in case of an error (e.g. incorrect arguments or the topology malfunction).
Synopsis
TOPOLOGY_getPlaceOrientation
Summary
- face - an index of a face
- position - position of the place
Inputs
place - a place for which the face orientation is requested
Return value
Face orientation on which the given place resides, ORIENTATION_MAX in case of an error (e.g. incorrect arguments or the topology malfunction).
Synopsis
TOPOLOGY_getFace
Summary
Get a face number which has the given orientation.
Inputs
- orientation - an orientation of the requested face
Return value
Face number which has the given orientation, TOPOLOGY_FACES_MAX in case of an error (e.g. incorrect arguments or the topology malfunction).
Synopsis
TOPOLOGY_isAssembled
Summary
Checks if all modules in a system are connected to each other.
Synopsis
TOPOLOGY_getTwist
Summary
Returns direction of the last twist
Inputs
- twist - a twist direction
Synopsis