MCPcopy
hub / github.com/a1studmuffin/SpaceshipGenerator / scale_face

Function scale_face

spaceship_generator.py:69–75  ·  view source on GitHub ↗
(bm, face, scale_x, scale_y, scale_z)

Source from the content-addressed store, hash-verified

67
68# Scales a face in local face space. Ace!
69def scale_face(bm, face, scale_x, scale_y, scale_z):
70 face_space = get_face_matrix(face)
71 face_space.invert()
72 bmesh.ops.scale(bm,
73 vec=Vector((scale_x, scale_y, scale_z)),
74 space=face_space,
75 verts=face.verts)
76
77# Returns a rough 4x4 transform matrix for a face (doesn't handle
78# distortion/shear) with optional position override.

Callers 4

ribbed_extrude_faceFunction · 0.85
add_exhaust_to_faceFunction · 0.85
add_grid_to_faceFunction · 0.85
generate_spaceshipFunction · 0.85

Calls 1

get_face_matrixFunction · 0.85

Tested by

no test coverage detected