|
NORM = App.Vector(0, 0, 1) | |
|
PARAMGRP = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") | |
|
Part = lz.LazyLoader("Part", globals(), "Part") | |
|
◆ areColinear()
◆ edg()
◆ findClosest()
def draftgeoutils.general.findClosest |
( |
|
base_point, |
|
|
|
point_list |
|
) |
| |
Find closest point in a list of points to the base point.
Returns
-------
int
An index from the list of points is returned.
None
If point_list is empty.
◆ geomType()
def draftgeoutils.general.geomType |
( |
|
edge | ) |
|
Return the type of geometry this edge is based on.
◆ getBoundaryAngles()
def draftgeoutils.general.getBoundaryAngles |
( |
|
angle, |
|
|
|
alist |
|
) |
| |
Return the 2 closest angles that encompass the given angle.
◆ getQuad()
def draftgeoutils.general.getQuad |
( |
|
face | ) |
|
Return a list of 3 vectors if the face is a quad, ortherwise None.
Returns
-------
basepoint, Xdir, Ydir
If the face is a quad.
None
If the face is not a quad.
References draftgeoutils.general.vec().
◆ getVerts()
def draftgeoutils.general.getVerts |
( |
|
shape | ) |
|
Return a list containing vectors of each vertex of the shape.
◆ hasCurves()
def draftgeoutils.general.hasCurves |
( |
|
shape | ) |
|
Check if the given shape has curves.
◆ hasOnlyWires()
def draftgeoutils.general.hasOnlyWires |
( |
|
shape | ) |
|
Return True if all edges are inside a wire.
◆ isAligned()
def draftgeoutils.general.isAligned |
( |
|
edge, |
|
|
|
axis = "x" |
|
) |
| |
Check if the given edge or line is aligned to the given axis.
The axis can be 'x', 'y' or 'z'.
◆ isNull()
def draftgeoutils.general.isNull |
( |
|
something | ) |
|
Return True if the given shape, vector, or placement is Null.
If the vector is (0, 0, 0), it will return True.
◆ isPtOnEdge()
def draftgeoutils.general.isPtOnEdge |
( |
|
pt, |
|
|
|
edge |
|
) |
| |
Test if a point lies on an edge.
◆ isValidPath()
def draftgeoutils.general.isValidPath |
( |
|
shape | ) |
|
Return True if the shape can be used as an extrusion path.
◆ precision()
def draftgeoutils.general.precision |
( |
| ) |
|
Return the Draft precision setting.
◆ v1()
def draftgeoutils.general.v1 |
( |
|
edge | ) |
|
Return the first point of an edge.
◆ vec()
◆ NORM
draftgeoutils.general.NORM = App.Vector(0, 0, 1) |
◆ PARAMGRP
draftgeoutils.general.PARAMGRP = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") |
◆ Part
draftgeoutils.general.Part = lz.LazyLoader("Part", globals(), "Part") |