Skip to content

Model Element3D

Class full path: NemAll_Python_BasisElements.ModelElement3D

Bases: BasisElement, AllplanElement

Implementation of the 3D model element

Attributes

TextureDefinition: TextureDefinition property writable

Get the texture definition

TextureMapping: TextureMappingProperties property writable

Get the texture mapping

TransformationList: list property writable

Get transformation list

Functions

GetTextureDefinition()

Get the texture definition

Returns:

Type Description
TextureDefinition

Texture definition (surface filename)

GetTextureMapping()

Get the texture mapping

Returns:

Type Description
TextureMapping

Texture mapping properties

GetTransformationList()

Get transformation list

Returns:

Type Description
list

List with the transformations

IsValidateGeometry()

Get the validate geometry state

Returns:

Type Description
bool

Validate the geometry state

SetTextureDefinition(textureDefinition)

Set the texture definition

Parameters:

Name Type Description Default
textureDefinition TextureDefinition

Texture definition (surface filename)

required

SetTextureMapping(textureMapping)

Set the texture mapping

Parameters:

Name Type Description Default
textureMapping TextureMapping

Texture mapping properties

required

SetTransformationList(transformationList)

Set the transformation list

Parameters:

Name Type Description Default
transformationList list

List with the transformations

required

SetValidateGeometry(validateGeometry)

Set the validate geometry state

Parameters:

Name Type Description Default
validateGeometry bool

Validate the geometry

required

__init__ overload

__init__()

Initialize

__init__(commonProp, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
geometryObject object

Geometry element

required
__init__(commonProp, BrepIsoLinesU, BrepIsoLinesV, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
BrepIsoLinesU int

Count of Isolines U for a Berep

required
BrepIsoLinesV int

Count of Isolines V for a Berep

required
geometryObject object

Geometry element

required
__init__(commonProp, textureDefinition, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
textureDefinition TextureDefinition

Texture definition (surface filename)

required
geometryObject object

Geometry element

required
__init__(commonProp, textureDefinition, BrepIsoLinesU, BrepIsoLinesV, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
textureDefinition TextureDefinition

Texture definition (surface filename)

required
BrepIsoLinesU int

Count of Isolines U for a Berep

required
BrepIsoLinesV int

Count of Isolines V for a Berep

required
geometryObject object

Geometry element

required
__init__(commonProp, textureDefinition, textureMapping, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
textureDefinition TextureDefinition

Texture definition (surface filename)

required
textureMapping TextureMapping

Texture mapping properties

required
geometryObject object

Geometry element

required
__init__(commonProp, textureDefinition, textureMapping, BrepIsoLinesU, BrepIsoLinesV, geometryObject)

Constructor

Parameters:

Name Type Description Default
commonProp CommonProperties

Common properties

required
textureDefinition TextureDefinition

Texture definition (surface filename)

required
textureMapping TextureMapping

Texture mapping properties

required
BrepIsoLinesU int

Count of Isolines U for a Berep

required
BrepIsoLinesV int

Count of Isolines V for a Berep

required
geometryObject object

Geometry element

required
__init__(element)

Copy constructor

Parameters:

Name Type Description Default
element ModelElement3D

Element to copy

required

__repr__()

Convert to string