Skip to content

Set camera inside box #860

Open
Open
@StaffanHaglund

Description

@StaffanHaglund

Hi,
I have a simple question/issue and I have been trying to get it to work without success.
I want to put a camera inside a box so I can see the inside of it, let's say the box is 1000x1000x1000 and I want to place the camera at 500x500x500, how can I do that?
I use the class Graphic3d_Camera:

camera=display.View.Camera().GetObject()
camera.setEye(gp_Pnt(500,500,500)) 

(as well as testing with setCetner, setDistance etc...).

Perhaps it has something with view coordinates vs world coordinates that I don't quite understand.
Regards
Staffan

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions