0
$\begingroup$

enter image description here

Do I need to have round vertexes? as standard in a blender.

prop_ps = bpy.context.scene.prop_ps

    theme = bpy.context.preferences.themes['Default'].view_3d
    vertex_size_themes = theme.vertex_size
    theme.wire_edit = prop_ps.edge_color
    theme.vertex_size = 1
    bgl.glEnable(bgl.GL_BLEND)
    bgl.glLineWidth(prop_ps.edge_width)
    bgl.glEnable(bgl.GL_DEPTH_TEST)
    bgl.glDepthMask(bgl.GL_TRUE)
    bgl.glEnable(bgl.GL_LINE_SMOOTH)
    edge.draw(shader)
    if bpy.context.tool_settings.mesh_select_mode[0]:
        bgl.glPointSize(4 + prop_ps.vertex_size)
        vert.draw(shader)
    bgl.glDisable(bgl.GL_DEPTH_TEST)
    bgl.glLineWidth(2)
    bgl.glPointSize(vertex_size_themes)
    bgl.glDisable(bgl.GL_LINE_SMOOTH)
    bgl.glDisable(bgl.GL_BLEND)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.