-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset Support Volume Generated with STL File. #51
Comments
I cannot understand or resolve issue because I cannot determine the orientation of the supports from the attached picture. Please provide a full example with the model to verify the issue, including the versions of the libraries (including PySLM) that have been used in order to reproduce this. |
I am using the given code. I have attached the model stl file along with the image : import numpy as np from matplotlib import pyplot as plt import vispy """ vispy.set_log_level('debug')logging.getLogger().setLevel(logging.INFO) CONSTANTSOVERHANG_ANGLE = 55 # deg - Overhang angle """ myPart.scaleFactor = 1.0 """ Extract the overhang mesh - don't explicitly split the mesh""" overhangMesh.visual.face_colors = [254.0, 0., 0., 254] """ First generate point and edge supportspointOverhangs = pyslm.support.BaseSupportGenerator.findOverhangPoints(myPart) """ The GridBlockSupportGenerator class is initialised and the parameters below are specified as a reasonable starting Support teeth parameterssupportGenerator.useUpperSupportTeeth = True supportGenerator.splineSimplificationFactor = 10 # - Specify the smoothing factor using spline interpolation for the support boundaries """ for block in supportBlockRegions: blockSupports = [block.supportVolume for block in supportBlockRegions] """ if True:
Make the normal part transparentmyPart.geometry.visual.vertex_colors = [80,80,80, 125] """ """ Identify the sides of the block extrudes """ """ with open('overhangSupport.glb', 'wb') as f: """ if DISPLAY_BLOCK_VOLUME: |
When generating the support volume for an STL file using PySLM, the resulting support volume appears to be offset from the expected position. This misalignment makes the generated support geometry unusable for further operations like slicing or additive manufacturing.
Expected Behavior
The support volume should align perfectly with the base STL geometry.
Actual Behavior
The generated support volume is offset relative to the input STL file.
Parameters I am using:
supportGenerator.innerSupportEdgeGap = 0.3 # [mm] - Inner support offset used between adjacent support distances
supportGenerator.outerSupportEdgeGap = 2.0 # [mm] - Outer support offset used for the boundaries of overhang regions
supportGenerator.simplifyPolygonFactor = 0.5 # - Factor used for simplifying the overall support shape
supportGenerator.triangulationSpacing = 2.0 # [mm] - Used for triangulating the extruded polygon for the bloc
supportGenerator.minimumAreaThreshold = 0.2 # Minimum area threshold to not process support region'
supportGenerator.triangulationSpacing = 4 # [mm^2] - Internal parameter used for generating the mesh of the volume
supportGenerator.supportBorderDistance = 1.0 # [mm]
supportGenerator.numSkinMeshSubdivideIterations = 2
Support teeth parameters
supportGenerator.useUpperSupportTeeth = True
supportGenerator.useLowerSupportTeeth = True
supportGenerator.supportWallThickness = 1.0 # [mm] - The thickness of the upper and support walls to strengthen teeth regions
supportGenerator.supportTeethTopLength = 0.1 # [mm] - The length of the tab for the support teeth
supportGenerator.supportTeethHeight = 1.5 # [mm] - Length of the support teeth
supportGenerator.supportTeethBaseInterval = 1.5 # [mm] - The interval between the support teeth
supportGenerator.supportTeethUpperPenetration = 0.2 # [mm] - The penetration of the support teeth into the part
supportGenerator.splineSimplificationFactor = 0.01 # - Specify the smoothing factor using spline interpolation for the support boundaries
supportGenerator.gridSpacing = [5,5] # [mm] The Grid
The text was updated successfully, but these errors were encountered: