Point3D Object

Derived from: Base Object
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Point3D.h>

Description

Transient 3D point. A transient point is not displayed or saved in a document. Transient 3D points are used as a wrapper to work with raw 3D point information. They are created statically using the create method of the Point3D class.

Methods

Name Description
asArray Get coordinate data of the point.
asVector Defines a vector using the coordinates of the point.
classType Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().
copy Creates and returns a copy of this point object.
create Creates a transient 3D point object.
distanceTo Returns the distance from this point to another point.
getData Gets the data defining the point.
isEqualTo Checks to see if this point and another point are equal (have identical coordinates). The comparison is done within the modeling tolerance which can be found with the Application.pointTolerance property. If you want to compare two points with any other tolerance you can use the isEqualToByTolerance method.
isEqualToByTolerance Checks to see if this point and another point are equal within the specified tolerance.
set Sets the data defining the point.
setWithArray Sets the coordinates of the point using an array as input.
transformBy Transforms the point using the provided matrix.
translateBy Translates the point using the provided vector.
vectorTo Returns a vector from this point to another point.

Properties

Name Description
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
x Gets and sets the X coordinate of the point.
y Gets and sets the Y coordinate of the point.
z Gets and sets the Z coordinate of the point.

Accessed From

AdditiveFFFLimitsMachineElement.homePosition, AdditiveFFFLimitsMachineElement.parkPosition, AdditivePlatformMachineElement.origin, AdditivePlatformMachineElement.size, AngleValueCommandInput.manipulatorOrigin, Arc3D.center, Arc3D.endPoint, Arc3D.getData, Arc3D.startPoint, AreaProperties.centroid, BoundingBox3D.maxPoint, BoundingBox3D.minPoint, BRepEdge.pointOnEdge, BRepFace.centroid, BRepFace.pointOnFace, BRepVertex.geometry, BRepVertexDefinition.position, Camera.eye, Camera.target, Circle3D.center, Circle3D.getData, Cone.getData, Cone.origin, ConstructionPoint.geometry, CurveEvaluator3D.getEndPoints, CurveEvaluator3D.getPointAtParameter, CustomGraphicsBillBoard.anchorPoint, CustomGraphicsCoordinates.getCoordinate, CustomGraphicsViewPlacement.anchorPoint, CustomGraphicsViewScale.anchorPoint, Cylinder.getData, Cylinder.origin, DirectionCommandInput.manipulatorOrigin, DistanceValueCommandInput.manipulatorOrigin, Ellipse3D.center, Ellipse3D.getData, EllipticalArc3D.center, EllipticalArc3D.getData, EllipticalCone.getData, EllipticalCone.origin, EllipticalCylinder.getData, EllipticalCylinder.origin, FaceGroup.centroid, HoleFeature.position, InfiniteLine3D.getData, InfiniteLine3D.origin, JointGeometry.origin, Line3D.endPoint, Line3D.getData, Line3D.startPoint, Matrix3D.getAsCoordinateSystem, MeasureResults.positionOne, MeasureResults.positionThree, MeasureResults.positionTwo, NurbsCurve3D.controlPoints, NurbsSurface.controlPoints, OffsetConstraintInput.dimensionPoint, OrientedBoundingBox3D.centerPoint, PhysicalProperties.centerOfMass, Plane.intersectWithLine, Plane.origin, Point3D.copy, Point3D.create, PolygonMesh.nodeCoordinates, Polyline3D.points, RecognizedHole.bottom, RecognizedHole.top, SceneSettings.centerOfFocus, SceneSettings.groundPosition, Selection.point, Sketch.modelToSketchSpace, Sketch.origin, Sketch.sketchToModelSpace, SketchAngularDimension.textPosition, SketchConcentricCircleDimension.textPosition, SketchDiameterDimension.textPosition, SketchDimension.textPosition, SketchDistanceBetweenLineAndPlanarSurfaceDimension.textPosition, SketchDistanceBetweenPointAndSurfaceDimension.textPosition, SketchEllipseMajorRadiusDimension.textPosition, SketchEllipseMinorRadiusDimension.textPosition, SketchLinearDiameterDimension.textPosition, SketchLinearDimension.textPosition, SketchOffsetCurvesDimension.textPosition, SketchOffsetDimension.textPosition, SketchPoint.geometry, SketchPoint.worldGeometry, SketchRadialDimension.textPosition, SketchTangentDistanceDimension.textPosition, SketchText.position, SketchTextInput.position, Sphere.getData, Sphere.origin, SurfaceEvaluator.getPointAtParameter, Torus.getData, Torus.origin, TriangleMesh.nodeCoordinates, Vector3D.asPoint, Viewport.viewToModelSpace

Samples

Name Description
SketchArcs.addByCenterStartSweep Demonstrates the SketchArcs.addByCenterStartSweep method.
SketchArcs.addByThreePoints Demonstrates the SketchArcs.addByThreePoints method.
SketchArcs.addFillet Demonstrates the SketchArcs.addFillet method.

Version

Introduced in version August 2014