【问题标题】:python call the meshlab snapshot functionpython调用meshlab快照函数
【发布时间】:2021-12-27 07:06:30
【问题描述】:

我是meshlab新手,在meshlabseverpymeshlab中找不到函数,我想在obj文件中拍摄快照。enter image description here p>

【问题讨论】:

    标签: python meshlab pymeshlab


    【解决方案1】:

    该功能是meshlab独有的,在pymeshlab和meshlabserver中都不存在。不可能实现它,因为它们避免创建渲染上下文。这意味着他们缺乏像相机位置、背景颜色或灯光数量这样的概念,这是渲染的基础。 如果确实需要批量渲染一组obj文件,可以尝试使用blender3D或者pov-ray。

    【讨论】:

    • 你是对的,但是我可以通过blender import bpy ob = bpy.context.active_object tex = bpy.data.textures.new(name="Tex_Altura", type="IMAGE" ) img = bpy.data.images.load("/home/orlando/Documentos/ProyectosBlender/TextureforSTL/heighmap.png") tex.image = img tex.extension = 'EXTEND' mod = ob.modifiers.new("" , 'DISPLACE') mod.strength = 0.1 mod.mid_level = 0 mod.texture = tex
    猜你喜欢
    • 2019-06-06
    • 1970-01-01
    • 2014-01-14
    • 2020-02-09
    • 1970-01-01
    • 1970-01-01
    • 2015-05-05
    • 2020-06-05
    • 2016-03-31
    相关资源
    最近更新 更多