2021-09-07 19:28:39 +05:00
|
|
|
""" Netgen OCC documentation
|
|
|
|
|
|
|
|
This module provides the Netgen OCCGeometry class, as well as Python wrappers
|
|
|
|
for OpenCascade functionality. This allows the construction from scratch, as well as
|
|
|
|
editing geometries imported via STEP format.
|
|
|
|
|
|
|
|
Most of the classes are directly py-wrapped from the OCCT classes.
|
|
|
|
For more detailed documentation consult the OCCT docs, a good starting point is
|
|
|
|
https://dev.opencascade.org/doc/refman/html/class_b_rep_builder_a_p_i___make_shape.html
|
|
|
|
"""
|
|
|
|
|
2019-07-26 02:25:58 +05:00
|
|
|
from .libngpy._NgOCC import *
|
2019-07-29 10:11:57 +05:00
|
|
|
from .meshing import meshsize
|
2021-08-16 12:55:31 +05:00
|
|
|
|
|
|
|
|
|
|
|
gp_Ax3 = Axes
|
|
|
|
gp_Ax1 = Axis
|
|
|
|
|
|
|
|
Translation = gp_Trsf.Translation
|
|
|
|
Rotation = gp_Trsf.Rotation
|
|
|
|
Mirror = gp_Trsf.Mirror
|
2021-09-09 17:12:06 +05:00
|
|
|
|
|
|
|
|
|
|
|
wp2d = WorkPlane()
|
|
|
|
def Rectangle(l,w): return wp2d.Rectangle(l,w)
|
|
|
|
def MoveTo(x,y): return wp2d.MoveTo(x,y)
|
|
|
|
def LineTo(x,y): return wp2d.LineTo(x,y)
|
|
|
|
def Line(l): return wp2d.Line(l)
|