create_viewport method

create_viewport

Create a viewport in specified camera perspective.

Returns

def create_viewport(self, camera):
    ...
ParameterTypeDescription
cameraaspose.threed.entities.CameraThe camera

create_viewport

Create a viewport with position/size in specified camera perspective.

Returns

def create_viewport(self, camera, rect):
    ...
ParameterTypeDescription
cameraaspose.threed.entities.CameraThe camera
rectaspose.threed.utilities.RelativeRectanglePosition and size of the viewport

create_viewport

Create a viewport with specified background color and position/size in specified camera perspective.

Returns

def create_viewport(self, camera, background_color, rect):
    ...
ParameterTypeDescription
cameraaspose.threed.entities.CameraThe camera
background_coloraspose.threed.utilities.Vector3The background of the viewport
rectaspose.threed.utilities.RelativeRectanglePosition and size of the viewport

See Also