Fix launch bug for cone.
This commit is contained in:
parent
422f458469
commit
f5f8a6640a
13 changed files with 19 additions and 22 deletions
|
@ -84,33 +84,30 @@ def generate_pendant_shade(shape_parameters):
|
|||
if division_type == "straight":
|
||||
vert.co.x = division_radius*math.sin(theta)
|
||||
vert.co.y = division_radius*math.cos(theta)
|
||||
# elif division_type == "square":
|
||||
# mapped_rad = division_radius + (delta/3.0)**2
|
||||
# vert.co.x = mapped_rad*math.sin(theta)
|
||||
# vert.co.y = mapped_rad*math.cos(theta)
|
||||
elif division_type == "square":
|
||||
mapped_rad = division_radius + (frac)**2
|
||||
vert.co.x = mapped_rad*math.sin(theta)
|
||||
vert.co.y = mapped_rad*math.cos(theta)
|
||||
# elif division_type == "inv_square":
|
||||
# mapped_rad = division_radius + 1.0/(0.01+delta**2)
|
||||
# mapped_rad = division_radius + 1.0/(0.01+frac**2)
|
||||
# vert.co.x = mapped_rad*math.sin(theta)
|
||||
# vert.co.y = mapped_rad*math.cos(theta)
|
||||
else:
|
||||
# elif division_type == "sine":
|
||||
|
||||
elif division_type == "sine":
|
||||
mapped_rad = division_radius + math.sin(math.pi/2.0*frac)
|
||||
vert.co.x = mapped_rad*math.sin(theta)
|
||||
vert.co.y = mapped_rad*math.cos(theta)
|
||||
# elif division_type == "inv_sine":
|
||||
# mapped_rad = division_radius + 1.0/math.sin(delta)
|
||||
# vert.co.x = mapped_rad*math.sin(theta)
|
||||
# vert.co.y = mapped_rad*math.cos(theta)
|
||||
# else:
|
||||
# #elif division_type == "ramp":
|
||||
# mapped_rad = division_radius + delta
|
||||
# vert.co.x = mapped_rad*math.sin(theta)
|
||||
# vert.co.y = mapped_rad*math.cos(theta)
|
||||
# elif division_type == "inv_ramp":
|
||||
# mapped_rad = division_radius + delta
|
||||
# mapped_rad = division_radius + 1.0/math.sin(math.pi/2.0*frac)
|
||||
# vert.co.x = mapped_rad*math.sin(theta)
|
||||
# vert.co.y = mapped_rad*math.cos(theta)
|
||||
elif division_type == "ramp":
|
||||
mapped_rad = division_radius + frac
|
||||
vert.co.x = mapped_rad*math.sin(theta)
|
||||
vert.co.y = mapped_rad*math.cos(theta)
|
||||
elif division_type == "inv_ramp":
|
||||
mapped_rad = division_radius + frac
|
||||
vert.co.x = mapped_rad*math.sin(theta)
|
||||
vert.co.y = mapped_rad*math.cos(theta)
|
||||
|
||||
for face in bm.faces:
|
||||
if UpOrDown(face.normal):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue