Click or drag to resize
Body Class
A body is typically a single 3D solid or a 2D surface, but it can also be several disjoint lumps treated as one body. It is the highest level object in the geometric model. Several bodies can be grouped in a Part.
Inheritance Hierarchy

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public sealed class Body : ProjectObject, IHasTransform, 
	ISupportCopy, IHasGeometry

The Body type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Returns a collection of dynamic attributes attached to the object
(Inherited from ProjectObject.)
Public propertyBodyType
Returns the type of the body.
Public propertyCode exampleCenterOfGravity
Gets the center of gravity of the body as a Vector3.
Public propertyChildren
Enumerates all child objects.
(Inherited from ProjectObject.)
Public propertyCode exampleColor
Gets or sets the body color in the graphics.
Public propertyContainingProject
Returns the Project that this object is a part of, or null if it is not part of a Project.
(Inherited from ProjectObject.)
Public propertyDisplayName
Gets the name of the the object that should be displayed in the GUI.
(Inherited from ProjectObject.)
Public propertyFaces
Gets a FaceCollection that contains all the faces in the body.
Public propertyCode exampleMomentOfInertia
Gets the moment of inertia of the body as a Matrix3.
Public propertyName
Gets or sets the name of the object.
(Overrides ProjectObjectName.)
Public propertyOpacity
Gets or sets the opacity of the body
Public propertyCode exampleParent
Gets the parent object of the body.
(Overrides ProjectObjectParent.)
Public propertyPrimitiveSize
Gets the dimensions of the body if the PrimitiveType is known.
Public propertyPrimitiveType
Gets the type of primitive for a body that was created by a method such as CreateSolidBox(Matrix4, Vector3).
Public propertyCode exampleShells
Gets a ShellCollection that contains all the shells in the body.
Public propertyCode exampleSurfaceArea
Gets the surface area of the body.
Public propertyCode exampleTransform
Gets the transform object of the body.
Public propertyTypeDisplayName
Gets a localized name for the type of this object.
(Inherited from ProjectObject.)
Public propertyUIVisible
Gets or sets a value that indicates if this object should be displayed in GUI such as an object browser.
(Inherited from ProjectObject.)
Public propertyUniqueId
Gets a persisted, globally unique identifier for this object, that can be used to find the object using the GetObjectFromUniqueId(String) method.
(Inherited from ProjectObject.)
Public propertyCode exampleVisible
Gets or sets whether the body should be visible in the graphics or not.
Public propertyCode exampleVolume
Gets the volume of the body.
Public propertyWires
Gets a WireCollection that contains all the wires in the body.
Top
Methods
  NameDescription
Public methodCheck
Checks a body's geometry, topology, and data structure for errors.
Public methodCheck(String)
Checks a body's geometry, topology, and data structure for errors.
Public methodCode exampleCopy
Creates a copy of the body.
Public methodStatic memberCode exampleCreateArc
Creates a new Body consisting of one single wire. The wire will start at the start position go via the circumference position and end in the end position
Public methodStatic memberCode exampleCreateBorderAroundFace
Creates a new Body consisting of the curve at the circumfence of a Face.
Public methodStatic memberCode exampleCreateBorderFromPoints
Creates a new Body consisting of the curve defined by the body and the points.
Public methodStatic memberCode exampleCreateCircle
Creates a new Body consisting of one single circle shaped wire.
Public methodStatic memberCreateCubicSplineCurve
Creates a wire body by interpolating or fitting curve to the specified control points.
Public methodStatic memberCode exampleCreateEllipse
Creates a new Body consisting of one single ellipse shaped wire.
Public methodStatic memberCode exampleCreateEllipticArc
Creates a new Body consisting of one single elliptical arc shaped wire.
Public methodStatic memberCreateFromFace
Creates a new Body consisting only of a copy of the given Face
Public methodCreateIntersectionCurve(Body)
Public methodStatic memberCode exampleCreateIntersectionCurve(Body, Body)
Creates a new Body consisting of the curve(s) at the intersection of two bodies.
Public methodStatic memberCreateIntersectionCurve(Face, Face)
Creates a new wire Body consisting of the curve(s) at the intersection of two faces.
Public methodStatic memberCode exampleCreateLine
Creates a new Body consisting of one single line shaped wire.
Public methodStatic memberCreateParametricCurveU
Creates a new wire Body consisting of the u-parametric curve(s) on the surface of the face.
Public methodStatic memberCreateParametricCurveV
Creates a new wire Body consisting of the v-parametric curve(s) on the surface of the face.
Public methodStatic memberCode exampleCreatePolygon
Creates a new Body consisting of one single polygon shaped wire.
Public methodStatic memberCreatePolygonFenceFromRays
Creates a sheet body shaped as a polygon fence where the rays forms the fence posts.
Public methodStatic memberCode exampleCreatePolyLine
Creates a new Body consisting of one single polyline wire.
Public methodStatic memberCode exampleCreateRectangle
Creates a new Body consisting of one single rectangle shaped wire.
Public methodStatic memberCreateSheetBody
Creates a sheet (non-solid) body from the given faces.
Public methodStatic memberCode exampleCreateSolidBox
Creates a new Body consisting of a solid box.
Public methodStatic memberCreateSolidCapsule
Creates a new capsule (a cylinder with spherical endcaps).
Public methodStatic memberCode exampleCreateSolidCone(Matrix4, Double, Double)
Creates a new Body consisting of a solid cone.
Public methodStatic memberCreateSolidCone(Matrix4, Double, Double, Double)
Creates a new Body consisting of a solid elliptical cone.
Public methodStatic memberCode exampleCreateSolidCylinder(Matrix4, Double, Double)
Creates a new Body consisting of a solid cylinder.
Public methodStatic memberCreateSolidCylinder(Matrix4, Double, Double, Double)
Creates a new Body consisting of a solid elliptical cylinder.
Public methodStatic memberCode exampleCreateSolidPyramid
Creates a new Body consisting of a solid pyramid.
Public methodStatic memberCode exampleCreateSolidSphere
Creates a new Body consisting of a solid sphere.
Public methodStatic memberCode exampleCreateSolidTorus
Creates a new Body consisting of a solid torus.
Public methodStatic memberCode exampleCreateSpline(Vector3, Double)
Creates a new Body consisting of one single spline wire.
Public methodStatic memberCode exampleCreateSpline(Vector3, Double, Boolean)
Creates a new Body consisting of one single spline wire.
Public methodStatic memberCreateSplineFenceFromRays
Creates a sheet body shaped as a spline fence where the rays forms the fence posts.
Public methodStatic memberCode exampleCreateSurfaceCircle
Creates a new Body consisting of a surface circle.
Public methodStatic memberCode exampleCreateSurfaceFromCurve
Creates a new Body consisting of a surface defined by the curve.
Public methodStatic memberCreateSurfacePolygon(Vector3)
Creates a new Body consisting of a surface polygon defined by a cirquit of vertices.
Public methodStatic memberCode exampleCreateSurfacePolygon(Vector3, Vector3, Int32)
Creates a new Body consisting of a surface polygon.
Public methodStatic memberCreateSurfacePolygonWithHoles
Creates a new Body consisting of a surface polygon defined by outer and inner vertices.
Public methodStatic memberCode exampleCreateSurfaceRectangle
Creates a new Body consisting of a rectangle polygon.
Public methodStatic memberCreateWireSlicesAlongWire
Slices the input faces along the given Wire (using the planes defined by the Wire direction) and generates a Body containing the resulting intersection Wires.
Public methodCut Obsolete.
Public methodCode exampleCut2
Creates an array of new Body(s) consisting of the cut of this body with the one provided.
Public methodDefeature
Removes features (holes, chamfers and blends).
Public methodEquals (Inherited from Object.)
Public methodStatic memberCode exampleExtrude(Face, Vector3, Wire, SweepOptions)
Creates new Body(s) from the supplied Face in the given projection direction.
Public methodStatic memberCode exampleExtrude(Wire, Vector3, Wire, SweepOptions)
Creates new Bodys from the supplied Wire in the given projection direction.
Public methodCode exampleFindClosestVertex
Returns the Vertex of the Body that is closest to the provided point.
Public methodFindFeatures
Finds features (holes, chamfers and blends) that satisfy specified conditions.
Public methodFindObjects
Recursively finds object that satisfy a condition.
(Inherited from ProjectObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetMaterial
Gets the Material of the graphical representation of the body.
Public methodGetType (Inherited from Object.)
Public methodStatic memberHeal
Heals the Body (performs all phases of the healing process) using intelligently selected tolerances.
Public methodCode exampleIntersect
Creates an array of new Body(s) consisting of intersection of this body and the the one provided.
Public methodStatic memberIntersectWithBoundary
Creates a sheet body containing copies of the faces of this body which are inside the specified boundary. For faces which are are partially inside the boundary, the copy will be trimmed to fit inside the boundary.
Public methodCode exampleIsPointInside
Tests if a point is inside the body.
Public methodCode exampleJoin(Body)
Creates an array of new Body(s) consisting of the union of this body with the one provided.
Public methodCode exampleJoin(Body, Boolean)
Creates an array of new Body(s) consisting of the union of this body with the one provided.
Public methodStatic memberCode exampleJoinCurves(Wire)
Creates one or more bodies that consisting of one single wire each. The source wires that are connected will be joined and separate wires will result in new wire bodies.
Public methodStatic memberCode exampleJoinCurves(Wire, Double)
Creates one or more bodies that consisting of one single wire each. The source wires that are connected will be joined and separate wires will result in new wire bodies.
Public methodStatic memberJoinEdges
Creates one or more bodies consisting of one edge each. The source edges that are connected, or within the given tolerance, will be joined. The separate edged outside of the given tolerance will remain separated. The result will be an array of edges.
Public methodMirror
Creates a new Body by mirroring this body.
Public methodMoveToPart
Moves this Body to a new parent Part
Public methodNormalizeTextureCoordinates
Normalizes the texture coordinates of the graphical representation to the range [0-1].
Public methodStatic memberCode exampleProjectCurve
Creates new wire Bodys representing the projection of one or more Wires onto the supplied Bodys.
Public methodReplaceMaterial
Replaces one Material in the graphical representation with another.
Public methodScale
Creates a new Body by scaling this body.
Public methodCode exampleSeparate
Creates an array of new Body(s) consisting of the disjunct lumps of this body.
Public methodSetMaterial(Material)
Sets the Material of the graphical representation of the body.
Public methodSetMaterial(Material, Boolean)
Sets the Material of the graphical representation of the body.
Public methodStatic memberCode exampleSplitCurve
Splits a wire at a position. The position is valid if it lies closer than 10e-3 to the curve. If the split position is the same as any of the endpoints of the wire, nothing will happen.
Public methodStatic memberSweep
Creates new Body by sweeping the supplied Face around the given axis.
Public methodToString (Inherited from ProjectObject.)
Public methodStatic memberCode exampleTrimCurve
Removes a section of a wire. The section is limited by a startpoint and an endpoint, both adjacent to the wire. The start point must be adjacent to the first edge in the supplied list, and the end point must be adjacent to the last edge in the list.
Public methodCode exampleTryCut
Creates an array of new Body(s) consisting of the cut of this body with the one provided.
Public methodCode exampleTryIntersect
Creates an array of new Body(s) consisting of intersection of this body and the the one provided.
Public methodCode exampleTryJoin
Creates an array of new Body(s) consisting of the union of this body with the one provided.
Top
Version Information

Supported in: 1.0.0.0
See Also