Skip to content

Latest commit

 

History

History
122 lines (111 loc) · 3.32 KB

bearing-flange.md

File metadata and controls

122 lines (111 loc) · 3.32 KB

Flange Bearing


List of Functions

FlangeBearingProfile( ... )create profile
FlangeBearing( profile )generate flange bearing
FlangeBearingPanelHoles( profile, omitCenterHole, enlargeShaft, enlargeBolt )generate 2D holes for panel mounting

FlangeBearingProfile( ... )

model user defined model name
shaftDiameter shaft diameter
boltDiameter = 5 size of bolts
boltDistance bolt to bolt distance
boltCount = 2 number of bolts, 2 or 4 only
height height of central part
ringHeight height of ring around the center
baseHeight thickness of base
width overall width
depth overall depth
returnKVTree profile

FlangeBearing( profile )

profileflange bearing profile to display

FlangeBearingPanelHoles( profile )

profile flange bearing profile to generate panel holes for
omitCenterHole = true skip hole for center shaft
enlargeShaft = 1 increase hole size for center shaft
enlargeBolt = 1 increase hole size for bolts

Data Structure

type         : "flange bearing"
model        : "FB-100"
shaftDiameter: 10
bolt         = diameter: 5
               distance: 50
               count   : 4
width        : 100
depth        : 80
height       = center: 32
               ring  : 25
               base  : 10

Sample Code

photo

profile2a = FlangeBearingProfile(
    shaftDiameter =  8,
    boltDistance  = 37,
    height        = 12 );
PartAndPanel() {
    FlangeBearing( profile2a );
    FlangeBearingPanelHole( profile2a );
}

profile2b = FlangeBearingProfile(
    shaftDiameter =  10,
    boltDiameter  =   5, 
    boltDistance  =  80,
    boltCount     =   2, 
    height        =  20,
    width         = 100,
    depth         =  60 );
translate( [150,0,0] )
PartAndPanel() {
    FlangeBearing( profile2b );
    FlangeBearingPanelHole( profile2b, enlargeBolt=3 );
}

profile4a = FlangeBearingProfile( 
    shaftDiameter =  8,
    boltDistance  = 37,
    boltCount     =  4, 
    height        = 12 );
translate( [300,0,0] )
PartAndPanel() {
    FlangeBearing( profile4a );
    FlangeBearingPanelHole( profile4a, omitCenterHole=false, enlargeShaft=5 );
}

profile4b = FlangeBearingProfile(
    shaftDiameter =  10,
    boltDiameter  =   5,
    boltDistance  =  50,
    boltCount     =   4, 
    height        =  32,
    ringHeight    =  25, 
    baseHeight    =  10,
    width         = 100,
    depth         =  80 );
translate( [450,0,0] )
PartAndPanel() {
    FlangeBearing( profile4b );
    FlangeBearingPanelHole( profile4b );
}

kvEchoAligned( profile4b );

module PartAndPanel() {
    children(0);
    translate( [0,-100,0] )
        linear_extrude( 3 )
        difference() {
            square( [120,100], center=true );
            children(1);
        }
}