Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
133 Updated ProcessSofastFringe to work with new FacetEnsemble.
Browse files Browse the repository at this point in the history
braden6521 committed Aug 21, 2024
1 parent 11b3fa5 commit d1a4734
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions opencsp/app/sofast/lib/ProcessSofastFringe.py
Original file line number Diff line number Diff line change
@@ -649,6 +649,7 @@ def get_optic(
Optic object
"""
facets = []
trans_list = []
for idx_mirror, data in enumerate(self.data_characterization_facet):
# Get surface points
pts: Vxyz = data.v_surf_points_facet
@@ -673,16 +674,18 @@ def get_optic(
mirror = MirrorPoint(pts, norm_vecs, shape, interp_type)
# Create facet
facet = Facet(mirror)
# Locate facet
# Locate facet within ensemble
if self.optic_type == 'multi':
trans: TransformXYZ = self.data_characterization_ensemble[idx_mirror].trans_facet_ensemble
facet._self_to_parent_transform = TransformXYZ.from_R_V(trans.R, trans.V)
trans_list.append(trans)
# Save facets
facets.append(facet)

# Return optics
if self.optic_type == 'multi':
return FacetEnsemble(facets)
ensemble = FacetEnsemble(facets)
ensemble.set_facet_transform_list(trans_list)
return ensemble
else:
return facets[0]

0 comments on commit d1a4734

Please sign in to comment.