ose3dprinter.model¶
Models for 3D Printer parts.
Name |
Description |
---|---|
Encapsulates the data (i.e. topography and shape) for a Axis, |
|
Encapsulates the data (i.e. topography and shape) for a Extruder, |
|
Encapsulates the data (i.e. topography and shape) for a Frame, |
|
Encapsulates the data (i.e. topography and shape) for a Heated Bed, |
-
class
AxisModel
(obj, length=304.8, carriage_position=50, orientation='x', side='top', placement=Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(0,0,0)], origin_translation_offset=Vector (0.0, 0.0, 0.0))¶ Bases:
osecore.app.model.Model
Encapsulates the data (i.e. topography and shape) for a Axis, and is separate from the “view” or GUI representation.
Name
Type
Default Value
Description
Carriage Position Percent
50
Position of carriage relative to available rod.
Length Length
304.8 mm
Length of axis corresponds to rod length.
Orientation String
x
Orientation of axis: X, Y, or Z.
Rod Diameter Length
8.0 mm
Diameter of rod.
Side String
top
Which side the bottom of the axis faces.
-
Type
= 'OSEAxis'¶
-
calculate_carriage_box_x
()¶
-
calculate_top_of_carriage_box_for_z_axis
()¶
-
execute
(obj)¶ Execute on document recompute.
-
is_x
()¶ Return whether or not this axis is a X axis.
This assumes the axis is parallel to the XY, YZ, or XZ planes, and not rotated in a weird diagonal or skewed way.
- Returns
Whether this axis is a X axis.
- Return type
-
is_y
()¶ Return whether or not this axis is a Y axis.
This assumes the axis is parallel to the XY, YZ, or XZ planes, and not rotated in a weird diagonal or skewed way.
- Returns
Whether this axis is a Y axis.
- Return type
-
-
class
ExtruderModel
(obj, placement=Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(0,0,0)], origin_translation_offset=Vector (0.0, 0.0, 0.0))¶ Bases:
osecore.app.model.Model
Encapsulates the data (i.e. topography and shape) for a Extruder, and is separate from the “view” or GUI representation.
- Based on:
https://wiki.opensourceecology.org/wiki/File:Simpleextruderassy.fcstd
- See:
https://wiki.opensourceecology.org/wiki/File:Finalextruder.png
Name
Type
Default Value
Description
-
Type
= 'OSEExtruder'¶
-
execute
(obj)¶ Execute on document recompute.
-
class
FrameModel
(obj, size=304.8, width=38.1, thickness=3.175, has_corners=False, placement=Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(0,0,0)], origin_translation_offset=Vector (0.0, 0.0, 0.0))¶ Bases:
osecore.app.model.Model
Encapsulates the data (i.e. topography and shape) for a Frame, and is separate from the “view” or GUI representation.
See D3D Frame on the Open Source Ecology Wiki: https://wiki.opensourceecology.org/wiki/D3D_Frame
Name
Type
Default Value
Description
Has Corners Bool
False
Whether the frame has 3d printed corners or not.
Size Length
304.8 mm
Size or dimension of cubic frame.
Thickness Length
3.175 mm
Thickness of frame.
Width Length
38.1 mm
Width of frame.
-
Type
= 'OSEFrame'¶
-
property
XMax
¶
-
property
XMin
¶
-
property
YMax
¶
-
property
YMin
¶
-
property
ZMax
¶
-
property
ZMin
¶
-
property
distance_between_axis_side_mount_holes
¶
-
execute
(obj)¶ Execute on document recompute.
-
get_face_side
(face, axis_orientation)¶ Get the side of a frame corresponding to a given face and axis orientation.
-
get_faces_for_side
(side)¶ Get a list of face objects for a given side of the frame.
- Parameters
side (str) – Side of frame to get the faces for.
- Returns
List of faces objects corresponding to
side
.- Return type
List[Part.Face]
-
get_outer_faces
()¶ Get a list of face objects corresponding to the outer-most faces of the frame.
- Returns
List of outer frame face objects.
- Return type
List[Part.Face]
-
-
class
HeatedBedModel
(obj, placement=Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(0,0,0)], origin_translation_offset=Vector (0.0, 0.0, 0.0))¶ Bases:
osecore.app.model.Model
Encapsulates the data (i.e. topography and shape) for a Heated Bed, and is separate from the “view” or GUI representation.
Name
Type
Default Value
Description
Size Length
203.2 mm
Size or dimension of heated bed.
-
Type
= 'OSEHeatedBed'¶
-
execute
(obj)¶ Execute on document recompute.
-