Skip to content

Latest commit

 

History

History
196 lines (72 loc) · 4.15 KB

Point_API.md

File metadata and controls

196 lines (72 loc) · 4.15 KB

Point API

Describes a point To create a point there are several ways: Part.Point() Creates a default point

Part.Point(Point) Creates a copy of the given point

Part.Point(Vector) Creates a line for the given coordinates

Content

Content of the object in XML representation

MemSize

Memory size of the object in byte

Module

Module in which this class is defined

Tag

Gives the tag of the geometry as string.

TypeId

Is the type of the FreeCAD object with module domain

X

X component of this point.

Y

Y component of this point.

Z

Z component of this point.

clone

Create a clone of this geometry with the same Tag

copy

Create a copy of this geometry

deleteExtensionOfName

Deletes all extensions of the indicated name.

deleteExtensionOfType

Deletes all extensions of the indicated type.

dumpContent

Dumps the content of the object, both the XML representation as well as the additional datafiles
required, into a byte representation. It will be returned as byte array. dumpContent() -- returns a byte array with full content dumpContent(Compression=1-9) -- Sets the data compression from 0 (no) to 9 (max)

getAllDerivedFrom

Returns all descendants

getExtensionOfName

Gets the first geometry extension of the name indicated by the string.

getExtensionOfType

Gets the first geometry extension of the type indicated by the string.

getExtensions

Returns a list with information about the geometry extensions.

hasExtensionOfName

Returns a boolean indicating whether a geometry extension with the name indicated as a string exists.

hasExtensionOfType

Returns a boolean indicating whether a geometry extension of the type indicated as a string exists.

isDerivedFrom

Returns true if given type is a father

mirror

Performs the symmetrical transformation of this geometric object

restoreContent

Restore the content of the object from a byte representation as stored by "dumpContent". It could be restored from any python object implementing the buffer protocol. restoreContent(buffer) -- restores from the given byte array

rotate

Rotates this geometric object at angle Ang (in radians) about axis

scale

Applies a scaling transformation on this geometric object with a center and scaling factor

setExtension

Sets a geometry extension of the indicated type.

toShape

Create a vertex from this point.

transform

Applies a transformation to this geometric object

translate

Translates this geometric object


documentation index > API > Point API