OOF2: The Manual
Name
OOF.Mesh.Cross_Section.New — Create a new cross section on a Mesh.
Synopsis
OOF.Mesh.Cross_Section.New(name
,mesh
,cross_section
)
Details
- Parent Menu: OOF.Mesh.Cross_Section
-
Callback: function
_newCS
in moduleooflib.engine.IO.meshmenu
-
Parameters:
name
- Name of the cross section. Type: A character string, or the variable
automatic
. mesh
- Type: The path to an existing
Mesh
object. cross_section
- New cross section object. Type: An object of the
MeshCrossSection
class.
Description
OOF.Mesh.Cross_Section.New creates a new CrossSectionDomain, which can be
used as the domain
parameter of the commands in
the OOF.Mesh.Analyze menu.
The name
parameter assigns a name to the new
cross section. Cross sections are always referred to by name
after they've been created. If another cross section in the same
Mesh
already has the given name
, the name
will be made unique by appending <x>
,
where x
is a suitable integer.
The mesh
parameter specifies which Mesh
the
cross section will be associated with.
The cross_section
parameter is a MeshCrossSection object, which defines
the cross section that's being created.[22]
In the GUI, new cross sections can be created in two ways:
-
When using the Cross Section toolbox in the graphics window, dragging the mouse on a displayed
Mesh
creates a new cross section. -
In the Analysis Page in the main OOF2 window, setting the Domain to
Cross Section
reveals a “New” button that brings up a dialog box in which the parameters defining a new MeshCrossSection can be entered explicitly.
[22] If you want to be picky, it's the MeshCrossSection object that creates the cross section. OOF.Mesh.Cross_Section.New only names it.