ose3dprinter.attachment

Attachment functions to make 3D Printer parts appear attached to each other.

Name

Description

get_axis_frame_attachment_kwargs

Get a dictionary describing how to attach an axis to a frame.

get_default_axis_creation_kwargs

Get default kwargs to create an axis with when not attaching to a frame.

get_extruder_axis_attachment_kwargs

Get a dictionary describing how to attach an extruder to an axis.

get_heated_bed_frame_axis_attachment_kwargs

Get a dictionary describing how to attach a heated bed to a frame and axis.


get_axis_frame_attachment_kwargs(frame, selected_frame_face, axis_orientation)

Get a dictionary describing how to attach an axis to a frame.

Keys include length, placement, and origin translation offset for making an axis object appear attached to a selected frame face.

Parameters
  • frame – Frame object to attach axis to.

  • selected_frame_face (Part.Face) – Selected face of frame to attach axis to.

  • axis_orientation (str) – Orientation of axis.

Returns

Dictionary describing how to attach an axis to a frame.

Return type

dict

get_default_axis_creation_kwargs(axis_orientation)

Get default kwargs to create an axis with when not attaching to a frame.

Parameters

axis_orientation (str) – Orientation of axis.

Returns

Default kwargs to create an axis with when not attaching to a frame.

Return type

dict

get_extruder_axis_attachment_kwargs(axis, selected_axis_face)

Get a dictionary describing how to attach an extruder to an axis.

Parameters
  • axis – Axis object to attach extruder to.

  • selected_axis_face (Part.Face) – Selected face of axis to attach extruder to.

Returns

Dictionary describing how to attach an extruder to an axis.

Return type

dict

get_heated_bed_frame_axis_attachment_kwargs(frame, axis)

Get a dictionary describing how to attach a heated bed to a frame and axis.

Parameters
  • frame – Frame object to attach heated bed to.

  • axis – Axis object to attach heated bed to.

Returns

Dictionary describing how to attach a heated bed to a frame and axis.

Return type

dict