Public Member Functions | |
None | cameraLookAlong (self, meshlib.mrmeshpy.Vector3f dir, meshlib.mrmeshpy.Vector3f up) |
None | cameraRotateAround (self, meshlib.mrmeshpy.Line3f axis, float angle) |
meshlib.mrmeshpy.Vector3f | projectToViewportSpace (self, meshlib.mrmeshpy.Vector3f arg0) |
meshlib.mrmeshpy.ViewportId | id (self) |
Static Protected Member Functions | |
_pybind11_conduit_v1_ (*args, **kwargs) | |
Viewport is a rectangular area, in which the objects of interest are going to be rendered. An application can have a number of viewports each with its own ID.
|
staticprotected |
None mrviewerpy.Viewport.cameraLookAlong | ( | self, | |
meshlib.mrmeshpy.Vector3f | dir, | ||
meshlib.mrmeshpy.Vector3f | up ) |
Set camera look direction and up direction (they should be perpendicular) this function changes camera position and do not change camera spot (0,0,0) by default to change camera position use setCameraTranslation after this function
None mrviewerpy.Viewport.cameraRotateAround | ( | self, | |
meshlib.mrmeshpy.Line3f | axis, | ||
float | angle ) |
Rotates camera around axis +direction applied to axis point note: this can make camera clip objects (as far as distance to scene center is not fixed)
meshlib.mrmeshpy.ViewportId mrviewerpy.Viewport.id | ( | self | ) |
meshlib.mrmeshpy.Vector3f mrviewerpy.Viewport.projectToViewportSpace | ( | self, | |
meshlib.mrmeshpy.Vector3f | arg0 ) |
Project world space point to viewport coordinates (in pixels), (0,0) will be at the top-left corner of the viewport.