FreeCAD C++
Classes | Functions
Part Namespace Reference

Detailed Description

AttachExtensionh, .cpp contain a extension class to derive other features from, to make them attachable.

Classes

class  AttachExtension
 The AttachableObject class is the thing to extend an object with that should be attachable. It includes the required properties, and shortcuts for accessing the attachment math class. More...
 
class  BodyBase
 
class  BRepOffsetAPI_MakeOffsetFix
 The BRepOffsetAPI_MakeOffsetFix class This class works around a limitation of the BRepOffsetAPI_MakeOffset which returns unexpected results when an input wire has set a placement and consists of a single edge only. More...
 
class  CustomFeature
 
struct  cutFaces
 
class  FaceMaker
 FaceMaker class is the base class for implementing various "smart" face making routines. This was created to address the problem of multiple private implementations of making faces with holes, which are quite complex. The two most important facemaking routines then was: one in Part Extrude, and one in PartDesign (there, it is used in every sketch-based feature). Plus, another one (new) was needed for filling 2D offset. More...
 
class  FaceMakerBullseye
 The FaceMakerBullseye class is a tool to make planar faces with holes, where there can be additional faces inside holes and they can have holes too and so on. More...
 
class  FaceMakerCheese
 The FaceMakerCheese class is a legacy face maker that was extracted from Part Extrude. It is used by almost all PartDesign. More...
 
class  FaceMakerExtrusion
 FaceMakerExtrusion provides legacy compounding-structure-ignorant behavior of facemaker of Part Extrude. Strengths: makes faces with holes Weaknesses: can't make islands in holes. Ignores compounding nesting. All faces must be on same plane. More...
 
class  FaceMakerPublic
 The FaceMakerPublic class: derive from it if you want the face maker to be listed in tools that allow choosing one. More...
 
class  FaceMakerSimple
 The FaceMakerSimple class: make plane faces from all closed wires supplied, ignoring overlaps. More...
 
class  Feature
 
class  FeatureExt
 
class  FeatureReference
 
struct  FilletElement
 
class  Part2DObject
 
class  PropertyPartShape
 
class  TopoShape
 

Functions

PartExport int ImportStepParts (App::Document *pcDoc, const char *Name)
 
PartExport bool checkIntersection (const TopoDS_Shape &first, const TopoDS_Shape &second, const bool quick, const bool touch_is_intersection)
 

Function Documentation

◆ checkIntersection()

PartExport bool Part::checkIntersection ( const TopoDS_Shape &  first,
const TopoDS_Shape &  second,
const bool  quick,
const bool  touch_is_intersection 
)

Check for intersection between the two shapes. Only solids are guaranteed to work properly There are two modes:

  1. Bounding box check only - quick but inaccurate
  2. Bounding box check plus (if necessary) boolean operation - costly but accurate Return true if the shapes intersect, false if they don't The flag touch_is_intersection decides whether shapes touching at distance zero are regarded as intersecting or not
  1. If set to true, a true check result means that a boolean fuse operation between the two shapes will return a single solid
  2. If set to false, a true check result means that a boolean common operation will return a valid solid If there is any error in the boolean operations, the check always returns false

◆ ImportStepParts()

PartExport int Part::ImportStepParts ( App::Document pcDoc,
const char *  Name 
)

The part shape property