Skip to content

Instantly share code, notes, and snippets.

patmo141

Block or report user

Report or block patmo141

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View limit location
class OPENDENTAL_OT_limit_movements(bpy.types.Operator):
'''Add constraints to limit movements in simulation'''
bl_idname = "opendental.limit_physics_movements"
bl_label = "Limit Physics Movements"
bl_options = {'REGISTER','UNDO'}
buc_ling = bpy.props.FloatProperty(name = 'Facial/Lingual', default = 2)
mes_dis = bpy.props.FloatProperty(name = 'Mesial/Distal', default = 2)
occlusal = bpy.props.FloatProperty(name = 'Occluso/Gingival', default = 0)
View refractory model script
import math
import time
import bpy
import bmesh
from mathutils import Vector, Matrix
def dyntopo_remesh(ob, dyntopo_resolution):
#TODO, may try context override!
'''
View D3Tool Model Base Former
import bpy
import bmesh
import math
class D3PLINT_OT_ortho_model_base_former(bpy.types.Operator):
"""Make Ortho Model Base Former"""
bl_idname = "d3splint.ortho_base_former"
View Physics Stuff
class INDEFPHYS_physics_scene(bpy.types.Operator):
'''Take selected objects into a separate scene for physics simulation'''
bl_idname = "indefphys.add_physics_scene"
bl_label = "Physics Scene for Simulation"
bl_options = {'REGISTER','UNDO'}
@classmethod
def poll(self,context):
if context.scene.name == "Physics Sim":
return False
@patmo141
patmo141 / ModelUndercutRemoval.py
Created Jun 19, 2017
Slicer Scripted Module for Undercut Removal
View ModelUndercutRemoval.py
from __main__ import vtk, qt, ctk, slicer
import os
import math
class ModelUndercutRemoval:
def __init__(self, parent):
parent.title = "Model Undercut Removal"
parent.categories = ["Examples"]
View meshCurvatureTensors.py
import Rhino
import scriptcontext
import System.Guid
#import System.Drawing
import math
from matrix import Matrix
def Torus(R, r, toroidal, poloidal):
"""Returns a parametrically constructs a torus mesh."""
mesh = Rhino.Geometry.Mesh()
You can’t perform that action at this time.