#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/CAD/CadDocument.hpp>
Classes | |
| struct | MateOption |
| struct | DatumAxis |
| struct | DatumCoordSys |
| struct | Interference |
| struct | Snapshot |
Public Member Functions | |
| int | add_sketch (SketchShape shape, const SketchPlane &plane, double width, double height, double radius, const std::string &name) |
| int | add_sketch_profile (const SketchProfile &profile, const SketchPlane &plane, const std::string &name) |
| int | add_sketch_entities (const std::vector< SketchEntity > &entities, const SketchPlane &plane, const std::string &name, const std::vector< SketchEntityConstraintDef > &constraints={}) |
| int | add_project_edges (int source_body, const std::vector< int > &edge_ids, int face, const SketchPlane &plane, const std::string &name) |
| int | project_edges_into_sketch (int sketch_feature, int source_body, const std::vector< int > &edge_ids, int face) |
| int | add_bridge (int sketch_ref, int ent_a, int end_a, int ent_b, int end_b, const std::string &name) |
| bool | solve_sketch_feature (int index) |
| int | add_extrude (int sketch_ref, double distance, bool symmetric, BooleanMode mode, const std::string &name) |
| int | add_extrude_entities (const std::vector< SketchEntity > &entities, const SketchPlane &plane, double distance, bool symmetric, BooleanMode mode, const std::string &name) |
| int | add_extrude_face (int src_face, double distance, bool symmetric, BooleanMode mode, const std::string &name) |
| int | add_fillet (double radius, FaceGroup faces, const std::string &name) |
| int | add_fillet (double radius, int edge_id, const std::string &name) |
| int | add_fillet (double radius, const std::vector< int > &edge_ids, const std::string &name) |
| int | add_chamfer (double distance, FaceGroup faces, const std::string &name) |
| int | add_chamfer (double distance, int edge_id, const std::string &name) |
| int | add_chamfer (double distance, const std::vector< int > &edge_ids, const std::string &name) |
| int | add_hole (double diameter, double depth, bool through, double x, double y, const SketchPlane &plane, const std::string &name) |
| int | add_hole_styled (double diameter, double depth, bool through, double x, double y, const SketchPlane &plane, int style, double cbore_diameter, double cbore_depth, double csink_diameter, double csink_angle, const std::string &standard, const std::string &name) |
| int | add_hole_standard (const std::string &designation, int style, bool through, double depth, double x, double y, const SketchPlane &plane, const std::string &name) |
| int | add_thread (double radius, double pitch, double height, double depth, bool internal, double x, double y, const SketchPlane &plane, const std::string &name) |
| int | add_revolve (int sketch_ref, double angle, int axis, bool flip, BooleanMode mode, const std::string &name) |
| int | add_revolve_entities (const std::vector< SketchEntity > &entities, const SketchPlane &plane, double angle, int axis, bool flip, BooleanMode mode, const std::string &name) |
| int | add_pattern (bool circular, int count, double spacing, int dir, double angle_deg, int target_body, const std::string &name) |
| int | add_pattern_on_curve (int count, int curve_sketch, int curve_entity, int target, const std::string &name) |
| int | add_sweep (int profile_sketch_ref, int path_sketch_ref, BooleanMode mode, const std::string &name) |
| int | add_loft (const std::vector< int > &profile_refs, bool ruled, BooleanMode mode, const std::string &name) |
| int | add_surface_loft (const std::vector< int > &profile_refs, bool ruled, const std::string &name) |
| int | add_surface_fill (int sketch_ref, const std::string &name) |
| int | add_shell (double thickness, int face, int target_body, const std::string &name) |
| int | add_rib (int sketch_ref, int entity, double thickness, double depth, int target_body, const std::string &name) |
| int | add_draft (double angle, int face, int target_body, const std::string &name) |
| int | add_boolean (BooleanMode op, int target_body, int tool_body, bool keep_tool, double tolerance, int target_face, int tool_face, const std::string &name) |
| int | add_cut (const SketchPlane &plane, double offset, bool flip, bool keep_upper, bool keep_lower, int target_body, const std::string &name) |
| int | add_split_by_face (int target_body, int face_body, int face, bool keep_upper, bool keep_lower, const std::string &name) |
| int | add_mirror (const SketchPlane &plane, int target_body, BooleanMode mode, const std::string &name) |
| int | add_transform (int target_body, const Vec3d &translate, const Vec3d &axis, const Vec3d &pivot, double angle_deg, bool copy, const std::string &name) |
| int | add_thicken (int target_body, int face, double thickness, bool flip, const std::string &name) |
| int | add_thicken_surface (int target_body, double thickness, bool flip, const std::string &name) |
| int | add_surface_offset (int target_body, double offset, const std::string &name) |
| int | add_delete_face (int target_body, const std::vector< int > &faces, const std::string &name) |
| int | add_surface_extrude (int sketch_ref, double distance, const std::string &name) |
| int | add_surface_revolve (int sketch_ref, double angle_deg, int axis, const std::string &name) |
| int | add_plane (int base, double offset, double angle_tilt, int axis, const std::string &name) |
| int | add_axis (AxisType axis_type, const std::string &name) |
| int | add_coordsys (CoordSysType type, const Vec3d &point, const std::string &name) |
| int | add_mate (int kind, int cs_a, int cs_b, double offset, double angle_deg, bool flip, const std::string &name) |
| std::vector< MateOption > | mate_options (int cs_a, int cs_b) const |
| int | add_helix (const SketchPlane &plane, double radius, double pitch, double height, bool left_handed, double taper_deg, const std::string &name) |
| TopoDS_Wire | build_helix_wire (const CadFeature &f, std::string &err) const |
| std::vector< std::pair< std::string, SketchPlane > > | resolve_datum_planes () const |
| bool | plane_of_face (int body_idx, int face_idx, SketchPlane &out) const |
| std::vector< DatumAxis > | resolve_datum_axes () const |
| std::vector< DatumCoordSys > | resolve_datum_coordsys () const |
| void | clear () |
| bool | recompute () |
| std::string | serialize_recipe () const |
| bool | deserialize_recipe (const std::string &blob) |
| bool | export_step (const std::string &path, const std::vector< Transform3d > &body_xforms, std::string &err) const |
| GeometryEngine::MassProps | body_mass_properties (int body_index) const |
| std::vector< Interference > | check_interference (double min_volume=1e-6) const |
| void | checkpoint () |
| void | abandon_checkpoint () |
| bool | can_undo () const |
| bool | can_redo () const |
| size_t | undo_depth () const |
| size_t | redo_depth () const |
| bool | undo () |
| bool | redo () |
| bool | remove_feature (int index) |
| bool | move_feature (int index, int delta) |
| bool | set_feature_enabled (int index, bool enabled) |
| bool | replace_feature (int index, const CadFeature &edited) |
| bool | replace_sketch_extrude (int sketch_idx, int extrude_idx, const CadFeature &edited) |
| int | body_touching_sketch (int sketch_ref) const |
| bool | preview (const CadFeature &candidate, TriangleMesh &out_mesh, std::string &err) const |
| bool | preview (const CadFeature &candidate, TriangleMesh &out_mesh, std::vector< TriangleMesh > &out_body_meshes, std::string &err) const |
| std::vector< std::pair< int, int > > | faces_made_by (int index) const |
Static Public Member Functions | |
| static bool | is_bindable_field (const std::string &field) |
| static bool | produces_body (CadFeatureType t) |
| static bool | is_sheet_shape (const TopoDS_Shape &s) |
Public Attributes | |
| std::vector< CadFeature > | features |
| std::map< std::string, std::string > | variables |
| std::vector< CadBody > | bodies |
| TopoDS_Shape | body |
| TriangleMesh | display_mesh |
| std::vector< TriangleMesh > | display_body_meshes |
| std::vector< int > | display_tri_face |
| std::vector< int > | display_tri_body |
| std::string | error |
| std::vector< std::pair< int, std::string > > | mate_conflicts |
| Vec3d | modeling_origin {Vec3d::Zero()} |
| bool | origin_from_recipe {false} |
| bool | auto_close_loops {true} |
| double | linear_deflection {0.003} |
| double | angular_deflection {0.5} |
| uint64_t | topo_generation {1} |
Static Public Attributes | |
| static constexpr uint32_t | ORCA_CAD_RECIPE_VERSION = 6 |
Private Member Functions | |
| TopoDS_Wire | build_sketch_wire (const CadFeature &sketch, bool closed_only=false) const |
| TopoDS_Face | build_sketch_face (const CadFeature &sketch) const |
| void | apply_feature (TopoDS_Shape &result, bool &have_body, const TopoDS_Shape &context, const CadFeature &f) const |
| void | route_feature (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | bind_expressions () |
| void | replay_feature (size_t fi, std::vector< CadBody > &built) |
| void | apply_boolean (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_cut (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_mirror (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_transform (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_thicken (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_thicken_surface (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_surface_offset (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | apply_project (const std::vector< CadBody > &bodies, CadFeature &f) const |
| void | apply_mate (std::vector< CadBody > &bodies, const CadFeature &f) const |
| void | detect_mate_conflicts () |
Static Private Member Functions | |
| static DatumCoordSys | datum_frame (const std::vector< CadBody > &bodies, const CadFeature &f) |
Private Attributes | |
| std::vector< Snapshot > | m_undo |
| std::vector< Snapshot > | m_redo |
Static Private Attributes | |
| static constexpr size_t | k_undo_cap = 200 |
| struct Slic3r::CadDocument::MateOption |
| struct Slic3r::CadDocument::DatumAxis |
| struct Slic3r::CadDocument::DatumCoordSys |
| struct Slic3r::CadDocument::Interference |
| struct Slic3r::CadDocument::Snapshot |
| Class Members | ||
|---|---|---|
| vector< CadFeature > | features | |
| map< string, string > | variables | |
| void Slic3r::CadDocument::abandon_checkpoint | ( | ) |
| int Slic3r::CadDocument::add_axis | ( | AxisType | axis_type, |
| const std::string & | name ) |
References Slic3r::Axis, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis().
| int Slic3r::CadDocument::add_boolean | ( | BooleanMode | op, |
| int | target_body, | ||
| int | tool_body, | ||
| bool | keep_tool, | ||
| double | tolerance, | ||
| int | target_face, | ||
| int | tool_face, | ||
| const std::string & | name ) |
References Slic3r::Boolean, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean().
| int Slic3r::CadDocument::add_bridge | ( | int | sketch_ref, |
| int | ent_a, | ||
| int | end_a, | ||
| int | ent_b, | ||
| int | end_b, | ||
| const std::string & | name ) |
References features, Slic3r::SketchEngine::make_bridge(), and Slic3r::Sketch.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge().
| int Slic3r::CadDocument::add_chamfer | ( | double | distance, |
| const std::vector< int > & | edge_ids, | ||
| const std::string & | name ) |
References add_chamfer(), Slic3r::Chamfer, Slic3r::f(), and features.
| int Slic3r::CadDocument::add_chamfer | ( | double | distance, |
| FaceGroup | faces, | ||
| const std::string & | name ) |
References Slic3r::Chamfer, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), and add_chamfer().
| int Slic3r::CadDocument::add_chamfer | ( | double | distance, |
| int | edge_id, | ||
| const std::string & | name ) |
References Slic3r::Chamfer, Slic3r::f(), and features.
| int Slic3r::CadDocument::add_coordsys | ( | CoordSysType | type, |
| const Vec3d & | point, | ||
| const std::string & | name ) |
References Slic3r::CoordSys, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys().
| int Slic3r::CadDocument::add_cut | ( | const SketchPlane & | plane, |
| double | offset, | ||
| bool | flip, | ||
| bool | keep_upper, | ||
| bool | keep_lower, | ||
| int | target_body, | ||
| const std::string & | name ) |
References Slic3r::Cut, Slic3r::f(), features, and Slic3r::offset().
| int Slic3r::CadDocument::add_delete_face | ( | int | target_body, |
| const std::vector< int > & | faces, | ||
| const std::string & | name ) |
References Slic3r::DeleteFace, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face().
| int Slic3r::CadDocument::add_draft | ( | double | angle, |
| int | face, | ||
| int | target_body, | ||
| const std::string & | name ) |
References Slic3r::angle(), Slic3r::Draft, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft().
| int Slic3r::CadDocument::add_extrude | ( | int | sketch_ref, |
| double | distance, | ||
| bool | symmetric, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::Extrude, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude().
| int Slic3r::CadDocument::add_extrude_entities | ( | const std::vector< SketchEntity > & | entities, |
| const SketchPlane & | plane, | ||
| double | distance, | ||
| bool | symmetric, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::Extrude, Slic3r::f(), and features.
| int Slic3r::CadDocument::add_extrude_face | ( | int | src_face, |
| double | distance, | ||
| bool | symmetric, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::Extrude, Slic3r::f(), and features.
| int Slic3r::CadDocument::add_fillet | ( | double | radius, |
| const std::vector< int > & | edge_ids, | ||
| const std::string & | name ) |
References add_fillet(), Slic3r::f(), features, and Slic3r::Fillet.
| int Slic3r::CadDocument::add_fillet | ( | double | radius, |
| FaceGroup | faces, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Fillet.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), and add_fillet().
| int Slic3r::CadDocument::add_fillet | ( | double | radius, |
| int | edge_id, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Fillet.
| int Slic3r::CadDocument::add_helix | ( | const SketchPlane & | plane, |
| double | radius, | ||
| double | pitch, | ||
| double | height, | ||
| bool | left_handed, | ||
| double | taper_deg, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Helix.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_helix().
| int Slic3r::CadDocument::add_hole | ( | double | diameter, |
| double | depth, | ||
| bool | through, | ||
| double | x, | ||
| double | y, | ||
| const SketchPlane & | plane, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Hole.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole().
| int Slic3r::CadDocument::add_hole_standard | ( | const std::string & | designation, |
| int | style, | ||
| bool | through, | ||
| double | depth, | ||
| double | x, | ||
| double | y, | ||
| const SketchPlane & | plane, | ||
| const std::string & | name ) |
References _u8L, add_hole_styled(), Slic3r::HoleStdEntry::cbore_d, Slic3r::HoleStdEntry::cbore_depth, Slic3r::HoleStdEntry::clearance, Slic3r::HoleStdEntry::csink_angle, Slic3r::HoleStdEntry::csink_d, Slic3r::HoleStdEntry::desig, Slic3r::format(), Slic3r::hole_std_lookup(), and style.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard().
| int Slic3r::CadDocument::add_hole_styled | ( | double | diameter, |
| double | depth, | ||
| bool | through, | ||
| double | x, | ||
| double | y, | ||
| const SketchPlane & | plane, | ||
| int | style, | ||
| double | cbore_diameter, | ||
| double | cbore_depth, | ||
| double | csink_diameter, | ||
| double | csink_angle, | ||
| const std::string & | standard, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::Hole, and style.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), and add_hole_standard().
| int Slic3r::CadDocument::add_loft | ( | const std::vector< int > & | profile_refs, |
| bool | ruled, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Loft.
| int Slic3r::CadDocument::add_mate | ( | int | kind, |
| int | cs_a, | ||
| int | cs_b, | ||
| double | offset, | ||
| double | angle_deg, | ||
| bool | flip, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::Mate, and Slic3r::offset().
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate().
| int Slic3r::CadDocument::add_mirror | ( | const SketchPlane & | plane, |
| int | target_body, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Mirror.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror().
| int Slic3r::CadDocument::add_pattern | ( | bool | circular, |
| int | count, | ||
| double | spacing, | ||
| int | dir, | ||
| double | angle_deg, | ||
| int | target_body, | ||
| const std::string & | name ) |
References count, Slic3r::f(), features, modeling_origin, Slic3r::Pattern, and Slic3r::SketchPlane::XY().
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern().
| int Slic3r::CadDocument::add_pattern_on_curve | ( | int | count, |
| int | curve_sketch, | ||
| int | curve_entity, | ||
| int | target, | ||
| const std::string & | name ) |
References count, Slic3r::f(), features, and Slic3r::Pattern.
| int Slic3r::CadDocument::add_plane | ( | int | base, |
| double | offset, | ||
| double | angle_tilt, | ||
| int | axis, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::offset(), and Slic3r::Plane.
| int Slic3r::CadDocument::add_project_edges | ( | int | source_body, |
| const std::vector< int > & | edge_ids, | ||
| int | face, | ||
| const SketchPlane & | plane, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Project.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project().
| int Slic3r::CadDocument::add_revolve | ( | int | sketch_ref, |
| double | angle, | ||
| int | axis, | ||
| bool | flip, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::angle(), Slic3r::f(), features, and Slic3r::Revolve.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve().
| int Slic3r::CadDocument::add_revolve_entities | ( | const std::vector< SketchEntity > & | entities, |
| const SketchPlane & | plane, | ||
| double | angle, | ||
| int | axis, | ||
| bool | flip, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::angle(), Slic3r::f(), features, and Slic3r::Revolve.
| int Slic3r::CadDocument::add_rib | ( | int | sketch_ref, |
| int | entity, | ||
| double | thickness, | ||
| double | depth, | ||
| int | target_body, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Rib.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib().
| int Slic3r::CadDocument::add_shell | ( | double | thickness, |
| int | face, | ||
| int | target_body, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Shell.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell().
| int Slic3r::CadDocument::add_sketch | ( | SketchShape | shape, |
| const SketchPlane & | plane, | ||
| double | width, | ||
| double | height, | ||
| double | radius, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Sketch.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), and Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve().
| int Slic3r::CadDocument::add_sketch_entities | ( | const std::vector< SketchEntity > & | entities, |
| const SketchPlane & | plane, | ||
| const std::string & | name, | ||
| const std::vector< SketchEntityConstraintDef > & | constraints = {} ) |
References Slic3r::f(), features, and Slic3r::Sketch.
| int Slic3r::CadDocument::add_sketch_profile | ( | const SketchProfile & | profile, |
| const SketchPlane & | plane, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Sketch.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), and Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve().
| int Slic3r::CadDocument::add_split_by_face | ( | int | target_body, |
| int | face_body, | ||
| int | face, | ||
| bool | keep_upper, | ||
| bool | keep_lower, | ||
| const std::string & | name ) |
References Slic3r::Cut, Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split().
| int Slic3r::CadDocument::add_surface_extrude | ( | int | sketch_ref, |
| double | distance, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, and Slic3r::SurfaceExtrude.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude().
| int Slic3r::CadDocument::add_surface_fill | ( | int | sketch_ref, |
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, and Slic3r::SurfaceFill.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill().
| int Slic3r::CadDocument::add_surface_loft | ( | const std::vector< int > & | profile_refs, |
| bool | ruled, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, and Slic3r::SurfaceLoft.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft().
| int Slic3r::CadDocument::add_surface_offset | ( | int | target_body, |
| double | offset, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, Slic3r::offset(), and Slic3r::SurfaceOffset.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset().
| int Slic3r::CadDocument::add_surface_revolve | ( | int | sketch_ref, |
| double | angle_deg, | ||
| int | axis, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, and Slic3r::SurfaceRevolve.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve().
| int Slic3r::CadDocument::add_sweep | ( | int | profile_sketch_ref, |
| int | path_sketch_ref, | ||
| BooleanMode | mode, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Sweep.
| int Slic3r::CadDocument::add_thicken | ( | int | target_body, |
| int | face, | ||
| double | thickness, | ||
| bool | flip, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Thicken.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken().
| int Slic3r::CadDocument::add_thicken_surface | ( | int | target_body, |
| double | thickness, | ||
| bool | flip, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::New, and Slic3r::ThickenSurface.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface().
| int Slic3r::CadDocument::add_thread | ( | double | radius, |
| double | pitch, | ||
| double | height, | ||
| double | depth, | ||
| bool | internal, | ||
| double | x, | ||
| double | y, | ||
| const SketchPlane & | plane, | ||
| const std::string & | name ) |
References Slic3r::f(), features, and Slic3r::Thread.
| int Slic3r::CadDocument::add_transform | ( | int | target_body, |
| const Vec3d & | translate, | ||
| const Vec3d & | axis, | ||
| const Vec3d & | pivot, | ||
| double | angle_deg, | ||
| bool | copy, | ||
| const std::string & | name ) |
References Slic3r::f(), features, Slic3r::Transform, and Slic3r::translate().
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform().
|
private |
References _u8L, Slic3r::Add, bodies, Slic3r::Cut, Slic3r::f(), Slic3r::Intersect, and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::SketchPlane::from_face(), L, Slic3r::SketchEngine::make_extrude(), Slic3r::SketchPlane::normal, Slic3r::SketchPlane::origin, Slic3r::pick_body(), Slic3r::SketchPlane::x_axis, and Slic3r::SketchPlane::y_axis.
Referenced by route_feature().
|
private |
References _u8L, Slic3r::Add, Slic3r::GeometryEngine::apply_chamfer(), Slic3r::GeometryEngine::apply_fillet(), Slic3r::Blind, Slic3r::Boolean, build_sketch_face(), build_sketch_wire(), Slic3r::Chamfer, Slic3r::Cut, Slic3r::DeleteFace, Slic3r::dot(), Slic3r::Draft, Slic3r::CadFeature::entities, Slic3r::Extrude, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::GeometryEngine::face_centroid_world(), features, Slic3r::Fillet, Slic3r::format(), Slic3r::SketchPlane::from_face(), Slic3r::Helix, Slic3r::Hole, Slic3r::Import, Slic3r::CadFeature::import_offset, Slic3r::CadFeature::import_scale_x, Slic3r::CadFeature::import_scale_y, Slic3r::CadFeature::imported_regions, Slic3r::Intersect, L, Slic3r::SketchEntity::Line, Slic3r::Loft, M_PI, Slic3r::SketchEngine::make_extrude(), Slic3r::SketchEngine::make_extrude_face(), Slic3r::SketchEngine::make_extrude_regions(), Slic3r::SketchEngine::make_extrude_taper(), Slic3r::SketchEngine::make_extrude_two_sided(), Slic3r::make_helix_spine(), Slic3r::make_helix_wire(), Slic3r::SketchEngine::make_loft(), Slic3r::SketchEngine::make_loft_surface(), Slic3r::SketchEngine::make_prism(), Slic3r::SketchEngine::make_revolve(), Slic3r::SketchEngine::make_sweep(), Slic3r::make_thread_profile(), Slic3r::make_thread_v(), Slic3r::New, Slic3r::SketchPlane::normal, Slic3r::SketchPlane::origin, Slic3r::P, Slic3r::SketchEntity::p0, Slic3r::SketchEntity::p1, Slic3r::Pattern, Slic3r::perp(), Slic3r::CadFeature::plane, Slic3r::Project, Slic3r::pull, Slic3r::Revolve, Slic3r::revolve_axis_of(), Slic3r::Rib, Slic3r::sample_entity_2d(), Slic3r::Shell, Slic3r::Sketch, Slic3r::SurfaceExtrude, Slic3r::SurfaceFill, Slic3r::SurfaceLoft, Slic3r::SurfaceRevolve, Slic3r::Sweep, Slic3r::Symmetric, Slic3r::Thread, Slic3r::ThroughAll, Slic3r::SketchPlane::to_world(), Slic3r::transform_regions(), Slic3r::I18N::translate(), Slic3r::TwoSided, Slic3r::CadFeature::type, Slic3r::SketchEntity::type, Slic3r::UpToFace, and Slic3r::UpToVertex.
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::CoordSys, Slic3r::CadFeature::coordsys_body, datum_frame(), Slic3r::dot(), Slic3r::CadFeature::enabled, Slic3r::CadDocument::DatumCoordSys::error, Slic3r::F, Slic3r::f(), features, Slic3r::format(), M_PI, Slic3r::CadDocument::DatumCoordSys::origin, Slic3r::CadFeature::type, Slic3r::CadDocument::DatumCoordSys::x, and Slic3r::CadDocument::DatumCoordSys::y.
Referenced by route_feature().
|
private |
References _u8L, Slic3r::Add, bodies, Slic3r::f(), Slic3r::New, and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::GeometryEngine::edge_by_index(), Slic3r::GeometryEngine::edges_of(), Slic3r::GeometryEngine::edges_of_face(), Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::pick_body(), and Slic3r::project_edges_to_entities().
Referenced by replay_feature().
|
private |
References _u8L, bodies, Slic3r::f(), is_sheet_shape(), and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::f(), is_sheet_shape(), and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References _u8L, bodies, Slic3r::f(), M_PI, and Slic3r::pick_body().
Referenced by route_feature().
|
private |
References Slic3r::assign_field(), Slic3r::eval_expr(), Slic3r::evaluate_variables(), Slic3r::f(), features, and variables.
Referenced by faces_made_by(), and recompute().
| GeometryEngine::MassProps Slic3r::CadDocument::body_mass_properties | ( | int | body_index | ) | const |
References bodies, and Slic3r::GeometryEngine::mass_properties().
| int Slic3r::CadDocument::body_touching_sketch | ( | int | sketch_ref | ) | const |
References bodies, build_sketch_face(), features, is_sheet_shape(), and Slic3r::Sketch.
| TopoDS_Wire Slic3r::CadDocument::build_helix_wire | ( | const CadFeature & | f, |
| std::string & | err ) const |
|
private |
References build_sketch_wire(), Slic3r::CadFeature::entities, Slic3r::SketchEngine::entities_to_wires(), Slic3r::open_loop_message(), Slic3r::CadFeature::plane, and Slic3r::SketchEngine::wires_to_face().
Referenced by apply_feature(), and body_touching_sketch().
|
private |
References _u8L, Slic3r::Circle, Slic3r::SketchProfile::closed, Slic3r::CadFeature::entities, Slic3r::SketchEngine::entities_to_wire(), Slic3r::CadFeature::height, Slic3r::SketchPlane::normal, Slic3r::open_loop_message(), Slic3r::SketchPlane::origin, Slic3r::CadFeature::plane, Slic3r::SketchProfile::points, Slic3r::CadFeature::profile, Slic3r::CadFeature::radius, Slic3r::CadFeature::shape, Slic3r::SketchProfile::to_occt_wire(), and Slic3r::CadFeature::width.
Referenced by apply_feature(), and build_sketch_face().
|
inline |
References m_redo.
|
inline |
| std::vector< CadDocument::Interference > Slic3r::CadDocument::check_interference | ( | double | min_volume = 1e-6 | ) | const |
References bodies, and is_sheet_shape().
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_check_interference().
| void Slic3r::CadDocument::checkpoint | ( | ) |
References features, k_undo_cap, m_redo, m_undo, and variables.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_helix(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_feature_expr(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_variable(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), and Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step().
| void Slic3r::CadDocument::clear | ( | ) |
References auto_close_loops, bodies, body, display_body_meshes, display_mesh, display_tri_body, display_tri_face, error, features, m_redo, m_undo, mate_conflicts, origin_from_recipe, topo_generation, and variables.
|
staticprivate |
References _u8L, bodies, Slic3r::GeometryEngine::edge_by_index(), Slic3r::GeometryEngine::edges_of_face(), Slic3r::CadDocument::DatumCoordSys::error, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::GeometryEngine::face_centroid_world(), Slic3r::GeometryEngine::face_normal_world(), Slic3r::FaceAndDirection, Slic3r::CadDocument::DatumCoordSys::name, Slic3r::CadDocument::DatumCoordSys::origin, Slic3r::PointWorld, Slic3r::GeometryEngine::sample_edge_world(), Slic3r::CadDocument::DatumCoordSys::x, Slic3r::Y, Slic3r::CadDocument::DatumCoordSys::y, and Slic3r::Z.
Referenced by apply_mate(), and resolve_datum_coordsys().
| bool Slic3r::CadDocument::deserialize_recipe | ( | const std::string & | blob | ) |
References _u8L, auto_close_loops, bodies, count, error, Slic3r::f(), features, Slic3r::format(), modeling_origin, ORCA_CAD_RECIPE_VERSION, origin_from_recipe, recompute(), and variables.
|
private |
References _, _u8L, Slic3r::CoordSys, Slic3r::CadFeature::coordsys_body, Slic3r::CadFeature::enabled, Slic3r::f(), features, Slic3r::format(), Slic3r::Mate, mate_conflicts, and Slic3r::CadFeature::type.
Referenced by recompute().
| bool Slic3r::CadDocument::export_step | ( | const std::string & | path, |
| const std::vector< Transform3d > & | body_xforms, | ||
| std::string & | err ) const |
| std::vector< std::pair< int, int > > Slic3r::CadDocument::faces_made_by | ( | int | index | ) | const |
References auto_close_loops, bind_expressions(), bodies, Slic3r::body_id_of(), Slic3r::GeometryEngine::face_count(), features, Slic3r::find_body(), produces_body(), replay_feature(), Slic3r::set_sketch_auto_close(), and variables.
|
static |
References Slic3r::assign_field().
Referenced by Slic3r::GUI::DesignPanel::on_set_expr().
|
static |
Referenced by apply_surface_offset(), apply_thicken_surface(), body_touching_sketch(), check_interference(), Slic3r::GUI::DesignPanel::offer_selection_kind(), Slic3r::GUI::DesignPanel::populate_sheet_body_choices(), and Slic3r::GUI::DesignPanel::show_offer_menu().
| std::vector< CadDocument::MateOption > Slic3r::CadDocument::mate_options | ( | int | cs_a, |
| int | cs_b ) const |
References _u8L, bodies, Slic3r::CoordSys, features, and Slic3r::format().
| bool Slic3r::CadDocument::move_feature | ( | int | index, |
| int | delta ) |
References _u8L, Slic3r::commit_or_rollback(), error, Slic3r::f(), features, Slic3r::for_each_feature_ref(), Slic3r::format(), and Slic3r::stage_history_change().
| bool Slic3r::CadDocument::plane_of_face | ( | int | body_idx, |
| int | face_idx, | ||
| SketchPlane & | out ) const |
References bodies, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::GeometryEngine::face_centroid_world(), Slic3r::GeometryEngine::face_normal_world(), and Slic3r::frame_from().
| bool Slic3r::CadDocument::preview | ( | const CadFeature & | candidate, |
| TriangleMesh & | out_mesh, | ||
| std::string & | err ) const |
References preview().
Referenced by preview().
| bool Slic3r::CadDocument::preview | ( | const CadFeature & | candidate, |
| TriangleMesh & | out_mesh, | ||
| std::vector< TriangleMesh > & | out_body_meshes, | ||
| std::string & | err ) const |
References _u8L, angular_deflection, bodies, Slic3r::TriangleMesh::its, linear_deflection, route_feature(), and Slic3r::tessellate_bodies().
|
static |
References Slic3r::Axis, Slic3r::CoordSys, Slic3r::Helix, Slic3r::Plane, Slic3r::Project, and Slic3r::Sketch.
Referenced by Slic3r::GUI::DesignPanel::can_zoom_to_feature(), Slic3r::commit_or_rollback(), faces_made_by(), and Slic3r::GUI::DesignPanel::feature_faces().
| int Slic3r::CadDocument::project_edges_into_sketch | ( | int | sketch_feature, |
| int | source_body, | ||
| const std::vector< int > & | edge_ids, | ||
| int | face ) |
References bodies, Slic3r::GeometryEngine::edge_by_index(), Slic3r::GeometryEngine::edges_of(), Slic3r::GeometryEngine::edges_of_face(), Slic3r::CadFeature::entities, Slic3r::GeometryEngine::face_by_index(), features, Slic3r::CadFeature::plane, Slic3r::Project, Slic3r::project_edges_to_entities(), Slic3r::Sketch, and Slic3r::CadFeature::type.
| bool Slic3r::CadDocument::recompute | ( | ) |
References _u8L, angular_deflection, auto_close_loops, bind_expressions(), bodies, body, Slic3r::body_id_of(), Slic3r::compound_of(), Slic3r::CoordSys, detect_mate_conflicts(), display_body_meshes, display_mesh, display_tri_body, display_tri_face, Slic3r::GeometryEngine::edges_of_face(), error, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::FaceAndDirection, features, Slic3r::find_body(), Slic3r::format(), linear_deflection, mate_conflicts, replay_feature(), Slic3r::set_sketch_auto_close(), Slic3r::settle_body_refs(), Slic3r::tessellate_bodies(), and topo_generation.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_feature_expr(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_variable(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform(), Slic3r::commit_or_rollback(), deserialize_recipe(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step(), Slic3r::GUI::DesignPanel::populate_body_choices(), redo(), and undo().
| bool Slic3r::CadDocument::redo | ( | ) |
|
inline |
| bool Slic3r::CadDocument::remove_feature | ( | int | index | ) |
References Slic3r::commit_or_rollback(), Slic3r::f(), features, Slic3r::for_each_feature_ref(), Slic3r::CadFeature::rib_sketch_ref, Slic3r::Sketch, Slic3r::CadFeature::sketch_ref, Slic3r::stage_history_change(), and Slic3r::CadFeature::sweep_path_ref.
| bool Slic3r::CadDocument::replace_feature | ( | int | index, |
| const CadFeature & | edited ) |
References Slic3r::commit_or_rollback(), Slic3r::Extrude, Slic3r::f(), and features.
Referenced by Slic3r::GUI::DesignPanel::refresh_preview().
| bool Slic3r::CadDocument::replace_sketch_extrude | ( | int | sketch_idx, |
| int | extrude_idx, | ||
| const CadFeature & | edited ) |
References Slic3r::commit_or_rollback(), Slic3r::CadFeature::distance, features, Slic3r::CadFeature::height, Slic3r::CadFeature::mode, Slic3r::CadFeature::plane, Slic3r::CadFeature::radius, Slic3r::CadFeature::shape, Slic3r::CadFeature::symmetric, and Slic3r::CadFeature::width.
|
private |
References apply_project(), Slic3r::Axis, Slic3r::CoordSys, Slic3r::f(), features, Slic3r::Helix, Slic3r::Plane, Slic3r::Project, route_feature(), Slic3r::settle_body_refs(), and Slic3r::Sketch.
Referenced by faces_made_by(), and recompute().
| std::vector< CadDocument::DatumAxis > Slic3r::CadDocument::resolve_datum_axes | ( | ) | const |
References _u8L, Slic3r::AlongEdge, Slic3r::Axis, Slic3r::GeometryEngine::CylinderFace::axis, Slic3r::GeometryEngine::CylinderFace::base, bodies, Slic3r::GeometryEngine::cylinder_of_face(), Slic3r::CylinderCenterline, Slic3r::CadDocument::DatumAxis::direction, Slic3r::GeometryEngine::edge_by_index(), Slic3r::CadDocument::DatumAxis::error, Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::GeometryEngine::face_centroid_world(), Slic3r::GeometryEngine::face_normal_world(), Slic3r::FaceNormal, features, modeling_origin, Slic3r::CadDocument::DatumAxis::name, Slic3r::normal(), Slic3r::SketchPlane::normal, Slic3r::GeometryEngine::CylinderFace::ok, Slic3r::CadDocument::DatumAxis::origin, Slic3r::SketchPlane::origin, Slic3r::PlaneIntersection, resolve_datum_planes(), Slic3r::GeometryEngine::sample_edge_world(), Slic3r::TwoPoints, Slic3r::SketchPlane::XY(), Slic3r::SketchPlane::XZ(), and Slic3r::SketchPlane::YZ().
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis().
| std::vector< CadDocument::DatumCoordSys > Slic3r::CadDocument::resolve_datum_coordsys | ( | ) | const |
References bodies, Slic3r::CoordSys, datum_frame(), Slic3r::f(), and features.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys().
| std::vector< std::pair< std::string, SketchPlane > > Slic3r::CadDocument::resolve_datum_planes | ( | ) | const |
References _u8L, Slic3r::Angle, Slic3r::GeometryEngine::CylinderFace::axis, Slic3r::GeometryEngine::CylinderFace::base, bodies, Slic3r::Coincident, Slic3r::cross(), Slic3r::GeometryEngine::cylinder_of_face(), Slic3r::GeometryEngine::edge_by_index(), Slic3r::f(), Slic3r::GeometryEngine::face_by_index(), Slic3r::GeometryEngine::face_centroid_world(), Slic3r::GeometryEngine::face_normal_world(), features, Slic3r::format(), Slic3r::frame_from(), M_PI, Slic3r::Midplane, modeling_origin, Slic3r::normal(), Slic3r::SketchPlane::normal, Slic3r::Offset, Slic3r::offset_angle_plane(), Slic3r::GeometryEngine::CylinderFace::ok, Slic3r::SketchPlane::origin, Slic3r::perp(), Slic3r::Plane, Slic3r::GeometryEngine::CylinderFace::radius, Slic3r::GeometryEngine::sample_edge_world(), Slic3r::Tangent, Slic3r::TwoEdges, Slic3r::SketchPlane::XY(), Slic3r::SketchPlane::XZ(), and Slic3r::SketchPlane::YZ().
Referenced by resolve_datum_axes().
|
private |
References _u8L, apply_boolean(), apply_cut(), apply_feature(), apply_mate(), apply_mirror(), apply_surface_offset(), apply_thicken(), apply_thicken_surface(), apply_transform(), Slic3r::Axis, bodies, Slic3r::Boolean, Slic3r::CoordSys, Slic3r::Cut, Slic3r::Extrude, Slic3r::f(), Slic3r::Helix, Slic3r::Hole, Slic3r::Import, Slic3r::Loft, Slic3r::Mate, Slic3r::Mirror, Slic3r::New, Slic3r::pick_body(), Slic3r::Plane, Slic3r::Project, Slic3r::Revolve, Slic3r::solid_volume(), Slic3r::SurfaceExtrude, Slic3r::SurfaceFill, Slic3r::SurfaceLoft, Slic3r::SurfaceOffset, Slic3r::SurfaceRevolve, Slic3r::Sweep, Slic3r::Thicken, Slic3r::ThickenSurface, Slic3r::Thread, and Slic3r::Transform.
Referenced by preview(), and replay_feature().
| std::string Slic3r::CadDocument::serialize_recipe | ( | ) | const |
References auto_close_loops, bodies, Slic3r::f(), features, modeling_origin, ORCA_CAD_RECIPE_VERSION, and variables.
| bool Slic3r::CadDocument::set_feature_enabled | ( | int | index, |
| bool | enabled ) |
References Slic3r::commit_or_rollback(), features, and Slic3r::stage_history_change().
| bool Slic3r::CadDocument::solve_sketch_feature | ( | int | index | ) |
References Slic3r::SketchConstraintDef::a, Slic3r::SketchConstraints::add_point(), Slic3r::Angle, Slic3r::SketchConstraints::angle(), Slic3r::SketchConstraintDef::b, Slic3r::SketchConstraintDef::c, Slic3r::Coincident, Slic3r::SketchConstraints::coincident(), Slic3r::SketchConstraintDef::d, Slic3r::Distance, Slic3r::SketchConstraints::distance(), Slic3r::SketchConstraints::equal_length(), Slic3r::EqualLength, Slic3r::f(), features, Slic3r::Fix, Slic3r::SketchConstraints::fix_point(), Slic3r::SketchConstraints::get_point(), Slic3r::Horizontal, Slic3r::SketchConstraints::horizontal(), Slic3r::SketchConstraints::lock_x(), Slic3r::SketchConstraints::lock_y(), Slic3r::LockX, Slic3r::LockY, Slic3r::Midpoint, Slic3r::SketchConstraints::midpoint(), Slic3r::Parallel, Slic3r::SketchConstraints::parallel(), Slic3r::Perpendicular, Slic3r::SketchConstraints::perpendicular(), Slic3r::SketchConstraints::point_line_distance(), Slic3r::PointOnLine, Slic3r::Sketch, Slic3r::SketchConstraints::solve(), Slic3r::solve_sketch_entities(), Slic3r::Symmetric, Slic3r::SketchConstraints::symmetric(), Slic3r::SketchConstraintDef::type, Slic3r::SketchConstraintDef::value, Slic3r::Vertical, and Slic3r::SketchConstraints::vertical().
| bool Slic3r::CadDocument::undo | ( | ) |
References features, m_redo, m_undo, recompute(), and variables.
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_feature_expr(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_variable(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), and Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step().
|
inline |
| double Slic3r::CadDocument::angular_deflection {0.5} |
Referenced by preview(), and recompute().
| bool Slic3r::CadDocument::auto_close_loops {true} |
Referenced by clear(), deserialize_recipe(), faces_made_by(), recompute(), and serialize_recipe().
| std::vector<CadBody> Slic3r::CadDocument::bodies |
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_helix(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform(), apply_boolean(), apply_cut(), apply_mate(), apply_mirror(), apply_project(), apply_surface_offset(), apply_thicken(), apply_thicken_surface(), apply_transform(), body_mass_properties(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::body_shape(), body_touching_sketch(), check_interference(), clear(), Slic3r::commit_or_rollback(), datum_frame(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::describe_scene(), deserialize_recipe(), export_step(), faces_made_by(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step(), mate_options(), plane_of_face(), Slic3r::GUI::DesignPanel::populate_body_choices(), preview(), project_edges_into_sketch(), recompute(), resolve_datum_axes(), resolve_datum_coordsys(), resolve_datum_planes(), route_feature(), serialize_recipe(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::target_body_arg(), and Slic3r::GUI::anonymous_namespace{McpControl.cpp}::validate_against().
| TopoDS_Shape Slic3r::CadDocument::body |
Referenced by clear(), Slic3r::commit_or_rollback(), and recompute().
| std::vector<TriangleMesh> Slic3r::CadDocument::display_body_meshes |
| TriangleMesh Slic3r::CadDocument::display_mesh |
Referenced by clear(), Slic3r::commit_or_rollback(), and recompute().
| std::vector<int> Slic3r::CadDocument::display_tri_body |
Referenced by clear(), Slic3r::commit_or_rollback(), and recompute().
| std::vector<int> Slic3r::CadDocument::display_tri_face |
Referenced by clear(), Slic3r::commit_or_rollback(), and recompute().
| std::string Slic3r::CadDocument::error |
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_boolean(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_bridge(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_delete_face(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_draft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_helix(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_standard(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_hole_styled(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mate(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_project(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_rib(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_feature_expr(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_variable(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_shell(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_split(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_fill(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_loft(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_offset(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_surface_revolve(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_thicken_surface(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_transform(), clear(), Slic3r::commit_or_rollback(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::describe_scene(), deserialize_recipe(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step(), move_feature(), recompute(), and Slic3r::GUI::DesignPanel::refresh_preview().
| std::vector<CadFeature> Slic3r::CadDocument::features |
Referenced by Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_axis(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_chamfer(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_coordsys(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_extrude(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_fillet(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_mirror(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_pattern(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_set_feature_expr(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::action_sketch_commit(), add_axis(), add_boolean(), add_bridge(), add_chamfer(), add_chamfer(), add_chamfer(), add_coordsys(), add_cut(), add_delete_face(), add_draft(), add_extrude(), add_extrude_entities(), add_extrude_face(), add_fillet(), add_fillet(), add_fillet(), add_helix(), add_hole(), add_hole_styled(), add_loft(), add_mate(), add_mirror(), add_pattern(), add_pattern_on_curve(), add_plane(), add_project_edges(), add_revolve(), add_revolve_entities(), add_rib(), add_shell(), add_sketch(), add_sketch_entities(), add_sketch_profile(), add_split_by_face(), add_surface_extrude(), add_surface_fill(), add_surface_loft(), add_surface_offset(), add_surface_revolve(), add_sweep(), add_thicken(), add_thicken_surface(), add_thread(), add_transform(), apply_feature(), apply_mate(), bind_expressions(), body_touching_sketch(), checkpoint(), clear(), Slic3r::commit_or_rollback(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::describe_scene(), deserialize_recipe(), detect_mate_conflicts(), faces_made_by(), Slic3r::GUI::DesignPanel::fill_body_choice(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_mesh(), Slic3r::GUI::anonymous_namespace{McpControl.cpp}::import_step(), mate_options(), move_feature(), Slic3r::GUI::DesignPanel::populate_body_choices(), project_edges_into_sketch(), recompute(), redo(), remove_feature(), replace_feature(), replace_sketch_extrude(), replay_feature(), resolve_datum_axes(), resolve_datum_coordsys(), resolve_datum_planes(), serialize_recipe(), set_feature_enabled(), solve_sketch_feature(), and undo().
|
staticconstexprprivate |
Referenced by checkpoint().
| double Slic3r::CadDocument::linear_deflection {0.003} |
Referenced by preview(), and recompute().
|
private |
Referenced by can_redo(), checkpoint(), clear(), redo(), redo_depth(), and undo().
|
private |
Referenced by abandon_checkpoint(), can_undo(), checkpoint(), clear(), redo(), undo(), and undo_depth().
| std::vector<std::pair<int, std::string> > Slic3r::CadDocument::mate_conflicts |
Referenced by clear(), detect_mate_conflicts(), and recompute().
| Vec3d Slic3r::CadDocument::modeling_origin {Vec3d::Zero()} |
|
staticconstexpr |
Referenced by deserialize_recipe(), and serialize_recipe().
| bool Slic3r::CadDocument::origin_from_recipe {false} |
Referenced by clear(), and deserialize_recipe().
| uint64_t Slic3r::CadDocument::topo_generation {1} |
| std::map<std::string, std::string> Slic3r::CadDocument::variables |