Skip to content

Camera Data

camera_data

get_field_height() -> float

get field height

Returns:

Type Description
float

float

get_field_of_view() -> float

get field of view

Returns:

Type Description
float

float

get_field_width() -> float

get field width

Returns:

Type Description
float

float

get_position() -> point_3d

get position

Returns:

Type Description
point_3d

point_3d

get_projection_type() -> projection_type

get projection type

Returns:

Type Description
projection_type

projection_type

get_target() -> point_3d

get target

Returns:

Type Description
point_3d

point_3d

get_up_vector() -> point_3d

get up vector

Returns:

Type Description
point_3d

point_3d

set_field_height(field_height: float) -> None

set field height

Parameters:

Name Type Description Default
field_height float

field_height

required

Returns:

Type Description
None

None

set_field_of_view(field_of_view: float) -> None

set field of view

Parameters:

Name Type Description Default
field_of_view float

field_of_view

required

Returns:

Type Description
None

None

set_field_width(field_width: float) -> None

set field width

Parameters:

Name Type Description Default
field_width float

field_width

required

Returns:

Type Description
None

None

set_position(position: point_3d) -> None

set position

Parameters:

Name Type Description Default
position point_3d

position

required

Returns:

Type Description
None

None

set_projection_type(projection_type: projection_type) -> None

set projection type

Parameters:

Name Type Description Default
projection_type projection_type

projection_type

required

Returns:

Type Description
None

None

set_target(target: point_3d) -> None

set target

Parameters:

Name Type Description Default
target point_3d

target

required

Returns:

Type Description
None

None

set_up_vector(up_vector: point_3d) -> None

set up vector

Parameters:

Name Type Description Default
up_vector point_3d

up_vector

required

Returns:

Type Description
None

None

projection_type

Bases: IntEnum

projection type

Examples:

1
2
>>> cadwork.projection_type.Perspective
Perspective

Orthographic = 2 class-attribute instance-attribute

Perspective = 1 class-attribute instance-attribute