def __init__(self, scene, shade):
SnapUtilityBase.__init__(self)
convert_types = {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META'}
self.cache = MeshCache(scene, convert_types)
# ? seems that dict is enough
self.bbox_cache = {}#collections.OrderedDict()
self.sys_matrix_key = [0.0] * 9
bm = prepare_gridbox_mesh(subdiv=2)
mesh = bpy.data.meshes.new(tmp_name)
bm.to_mesh(mesh)
mesh.update(calc_tessface=True)
#mesh.calc_tessface()
self.bbox_obj = self.cache._make_obj(mesh, None)
self.bbox_obj.hide = True
self.bbox_obj.draw_type = 'WIRE'
self.bbox_obj.name = "BoundBoxSnap"
self.shade_bbox = (shade == 'BOUNDBOX')
space_view3d_enhanced_3d_cursor.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录