Project

General

Profile

Recommendation #4580

Code speed and readability improvement

Added by Stuart Sides 11 months ago.

Status:
Acknowledged
Priority:
Normal
Assignee:
-
Category:
API
Impact:
Software Version:

Description

The ShapeModelFactory opens a temporary cube and a projection to identify what type of shape model to create (line 166). This code should be moved to the EquatorialCylindricalShape where the cube is already open and the projection will be needed if the factory succeeds. This will speed up the creation of cameras, reduce the open file resource requirements, and make the code easier to read and better encapsulated.

Also available in: Atom PDF