Skip to content

Commit

Permalink
Update targets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tf17270 authored May 16, 2024
1 parent fc33a87 commit 24ebbee
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions lyceanem/geometry/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,32 +300,11 @@ def meshedHorn(
majorsize, minorsize, 1e-6, grid_resolution, sides
)

mesh_points = GF.translate_mesh(mesh_points, [0, 0, 1e-6])

return structure, mesh_points

def coneReflector(radius, height):
"""
create a primative of the right size, assuming always orientated
with normal aligned with zenith, and major axis with x,
adjust position so the face is centred on (0,0,1)
"""
resolution = 200000
split = 1
reflector1 = o3d.geometry.TriangleMesh.create_cone(
radius, height, resolution, split
)
translate_dist = np.array([0, 0, 3])
reflector1 = GF.open3drotate(
reflector1,
o3d.geometry.TriangleMesh.get_rotation_matrix_from_axis_angle(
np.array([0.0, np.radians(180), 0.0])
),
center=True,
)
reflector1.compute_vertex_normals()
reflector1.paint_uniform_color([0.79, 0.50, 0.24])
reflector1.translate(translate_dist, relative=True)

return reflector1



Expand Down

0 comments on commit 24ebbee

Please sign in to comment.