Algo
Python API types
Read time 9 minutesLast updated 19 hours ago
AlignmentMode
Enum of core.IntName | Value |
|---|---|
| Auto | 0 |
| Portrait | 1 |
| Landscape | 2 |
AttributType
Enum of core.IntName | Value |
|---|---|
| Patches | 4020 |
| PatchMaterials | 4021 |
| PatchBoundaries | 4022 |
| UVs | 4035 |
| Normals | 4036 |
| Tangents | 4037 |
| Binormals | 4038 |
BakeMaps
FieldsType | Name | Default | Description |
|---|---|---|---|
| diffuse | Boolean | True | |
| normal | Boolean | True | |
| roughness | Boolean | True | |
| metallic | Boolean | True | |
| opacity | Boolean | True | |
| ambientOcclusion | Boolean | True | |
| emissive | Boolean | True |
BakeOption
FieldsType | Name | Default | Description |
|---|---|---|---|
| resolution | Int | 1024 | |
| padding | Int | 1 | Add padding to the map. A negative value means that the texture will be filled, and the padding for uv island is the absolute value. |
| textures | BakeMaps |
BakedValue
FieldsType | Name | Default | Description |
|---|---|---|---|
| occurrence | Occurrence | 0 | |
| polygonId | Ident | -1 | |
| paramU | Double | 0.0 | |
| paramV | Double | 0.0 | |
| material | Material | 0 |
BakingSession
Base class: core.UInt- algo.bakeAOMap
- algo.bakeDepthMap
- algo.bakeDiffuseMap
- algo.bakeDisplacementMap
- algo.bakeEmissiveMap
- algo.bakeFeatureMap
- algo.bakeMaterialAOMap
- algo.bakeMaterialIdMap
- algo.bakeMaterialPropertyMap
- algo.bakeMetallicMap
- algo.bakeNormalMap
- algo.bakeOccurrencePropertyMap
- algo.bakeOpacityMap
- algo.bakePartIdMap
- algo.bakePositionMap
- algo.bakeRoughnessMap
- algo.bakeSpecularMap
- algo.bakeUVMap
- algo.bakeValidityMap
- algo.bakeVertexColorMap
- algo.endBakingSession
- algo.fetchBakedMap
- algo.fetchBakedVertex
- algo.setBakingSessionPadding
- algo.fetchBakedMap
- algo.fetchBakedVertex
- algo.automaticUVMapping
- algo.getUVQualityMetrics
- algo.hasOverlappingUV
- algo.repackUV
- core.getRedoStepUserData
- core.getUndoStepUserData
- core.redo
- core.undo
- scene.getSubpartMaterial
- scene.setSubpartMaterial
- scene.setSubpartMaterials
- scene.setLocalMatrices
- view.getCameraFrontAxis
- view.getCameraPosition
- view.getCameraRightAxis
- view.getCameraUpAxis
Box
FieldsType | Name | Default | Description |
|---|---|---|---|
| position | Affine | ||
| length | Double | 200 | |
| height | Double | 200 | |
| depth | Double | 200 |
BoxParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| SizeX | Double | 1000 | |
| SizeY | Double | 1000 | |
| SizeZ | Double | 1000 | |
| Subdivision | Int | 1 |
BricksReturn
FieldsType | Name | Default | Description |
|---|---|---|---|
| Root | Occurrence | 0 | |
| Bricks | BrickDefinitionList |
CapsuleParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| Radius | Double | 250 | |
| Height | Double | 250 | |
| Latitude | Int | 16 | |
| Longitude | Int | 16 |
ComputingQuality
Enum of core.IntName | Value |
|---|---|
| High | 0 |
| Medium | 1 |
| Low | 2 |
ConeParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| BottomRadius | Double | 250 | |
| Height | Double | 500 | |
| Sides | Int | 16 |
ConvexityFilter
Enum of core.LongName | Value |
|---|---|
| OnConvex | 0 |
| OnConcave | 1 |
| OnConvexAndConcave | 2 |
CostEvaluation
Enum of core.IntName | Value |
|---|---|
| SumEvaluation | 0 |
| MaxEvaluation | 1 |
| AverageEvaluation | 2 |
CreateOccluder
Enum of core.IntName | Value |
|---|---|
| Occludee | 0 |
| Occluder | 1 |
Cylinder
FieldsType | Name | Default | Description |
|---|---|---|---|
| position | Affine | ||
| radius | Double | 100 | |
| length | Double | 200 |
CylinderParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| Radius | Double | 250 | |
| Height | Double | 1000 | |
| Sides | Int | 16 |
DecimateOptionsSelector
Select between:- triangleCount: core.ULong
- ratio: core.Percent Functions accepting this type or a list of this type as a parameter:
- algo.decimateTarget
- algo.evalDecimateErrorForTarget
DiskSegmentationMethod
Enum of core.IntName | Value |
|---|---|
| Perimeter | 0 |
| GaussianCurvature | 1 |
ElementFilter
Enum of core.IntName | Value |
|---|---|
| Polygons | 0 |
| Points | 1 |
| Hybrid | 2 |
- algo.beginBakingSession
- algo.beginVertexBakingSession
- algo.marchingCubes
- algo.proxyMesh
- algo.voxelize
Feature
FieldsType | Name | Default | Description |
|---|---|---|---|
| type | FeatureType | Unknown | |
| inputs | FeatureInputList |
FeatureInput
FieldsType | Name | Default | Description |
|---|---|---|---|
| position | Point3 | ||
| direction | Vector3 | ||
| diameter | Distance | 0 |
FeatureInputList
List of algo.FeatureInputFeatureList
List of algo.FeatureFeatureType
Enum of core.IntName | Value |
|---|---|
| Unknown | 0 |
| ThroughHole | 1 |
| BlindHole | 2 |
FilletingMode
Enum of core.IntName | Value |
|---|---|
| Width | 0 |
| Distance | 1 |
| Depth | 2 |
| Radius | 3 |
FlatteningStopCondition
Enum of core.LongName | Value |
|---|---|
| MEAN_DEFORMATION | 0 |
| ABSOLUTE_DEFORMATION | 1 |
HexahedronParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| XLength | Double | 1 | |
| YLength | Double | 1 | |
| ZLength | Double | 1 |
InnerOuterOption
Enum of core.IntName | Value |
|---|---|
| All | 0 |
| OnlyOuter | 1 |
| OnlyInners | 2 |
- algo.createVisibilityInformationAdvanced
- algo.findOccludedPartOccurrencesAdvanced
- algo.removeOccludedGeometriesAdvanced
- algo.createCavityOccurrences
- algo.orientPolygonFacesAdvanced
MeshBooleanOperation
Enum of core.IntName | Value |
|---|---|
| SplitOnly | 0 |
| Union | 1 |
| Intersection | 2 |
| Subtraction | 3 |
OccurrenceFeatures
FieldsType | Name | Default | Description |
|---|---|---|---|
| occurrence | Occurrence | 0 | |
| features | FeatureList |
OccurrenceFeaturesList
List of algo.OccurrenceFeaturesOctahedralImpostor
FieldsType | Name | Default | Description |
|---|---|---|---|
| OctaTransform | Matrix4 | geom.IdentityMatrix4 | |
| Radius | Double | 1 | |
| NormalMap | Image | 0 | |
| DepthMap | Image | 0 | |
| DiffuseMap | Image | 0 | |
| MetallicMap | Image | 0 | |
| AOMap | Image | 0 | |
| RoughnessMap | Image | 0 |
OrientStrategy
Enum of core.IntName | Value |
|---|---|
| ExteriorOnly | 0 |
| VisibilityOrExterior | 1 |
| VisibilityByConnected | 2 |
| VisibilityByPolygon | 3 |
| ConformToMajority | 4 |
OrientStrategyAdvanced
Enum of core.IntName | Value |
|---|---|
| VisibilityByConnected | 0 |
| VisibilityByPolygon | 1 |
Plane
FieldsType | Name | Default | Description |
|---|---|---|---|
| position | Affine | ||
| length | Double | 200 | |
| height | Double | 200 |
PlaneParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| SizeX | Double | 1000 | |
| SizeY | Double | 1000 | |
| SubdivisionX | Int | 1 | |
| SubdivisionY | Int | 1 |
PrimitiveShapeParameters
Select between:- Box: algo.BoxParameters
- Plane: algo.PlaneParameters
- Sphere: algo.SphereParameters
- Cylinder: algo.CylinderParameters
- Cone: algo.ConeParameters
- Capsule: algo.CapsuleParameters Functions accepting this type or a list of this type as a parameter:
- algo.replaceByPrimitive
QualityMemoryTradeoff
Enum of core.IntName | Value |
|---|---|
| PreferQuality | 0 |
| PreferMemory | 1 |
QualitySpeedTradeoff
Enum of core.IntName | Value |
|---|---|
| PreferQuality | 0 |
| PreferSpeed | 1 |
RatioUV3DMode
Enum of core.IntName | Value |
|---|---|
| SmallestRatio | 0 |
| HighestRatio | 1 |
| AverageRatio | 2 |
| MedianRatio | 3 |
RelaxUVMethod
Enum of core.IntName | Value |
|---|---|
| Angle | 0 |
| Edge | 1 |
ReplaceByBoxType
Enum of core.IntName | Value |
|---|---|
| Minimum | 0 |
| LocallyAligned | 1 |
ReplaceByMode
Enum of core.IntName | Value |
|---|---|
| ByOccurrence | 0 |
| All | 1 |
ReplaceByOccurrenceOptions
FieldsType | Name | Default | Description |
|---|---|---|---|
| Occurrence | Occurrence | 0 | |
| Aligned | Boolean | False |
ReplaceByOption
Select between:- Occurrence: algo.ReplaceByOccurrenceOptions
- BoundingBox: algo.ReplaceByBoxType
- ConvexHull: core.None
- Primitive: algo.ReplaceByPrimitiveOptions Functions accepting this type or a list of this type as a parameter:
- algo.replaceBy
ReplaceByPrimitiveOptions
FieldsType | Name | Default | Description |
|---|---|---|---|
| Type | PrimitiveShapeParameters | ||
| Aligned | Boolean | False | |
| GenerateUV | Boolean | True |
SawingMode
Enum of core.IntName | Value |
|---|---|
| SawOnly | 0 |
| SawAndSplit | 1 |
| KeepInside | 2 |
| KeepOutside | 3 |
SelectionLevel
Enum of core.IntName | Value |
|---|---|
| Parts | 0 |
| Patches | 1 |
| Polygons | 2 |
- algo.createVisibilityInformation
- algo.createVisibilityInformationAdvanced
- algo.removeOccludedGeometries
- algo.removeOccludedGeometriesAdvanced
- algo.removeOccludedGeometriesFromPoints
- algo.removeOccludedGeometriesFromViewPoints
Space
Enum of core.IntName | Value |
|---|---|
| Object | 0 |
| World | 1 |
| Tangent | 2 |
Sphere
FieldsType | Name | Default | Description |
|---|---|---|---|
| position | Affine | ||
| radius | Double | 100 |
SphereParameters
FieldsType | Name | Default | Description |
|---|---|---|---|
| Radius | Double | 500 | |
| Latitude | Int | 16 | |
| Longitude | Int | 16 |
TransformationType
Enum of core.IntName | Value |
|---|---|
| TRSOnly | 0 |
| TRSAndSkew | 1 |
UVGenerationMode
Enum of core.IntName | Value |
|---|---|
| NoUV | 0 |
| IntrinsicUV | 1 |
| ConformalScaledUV | 2 |
UVImportanceEnum
Enum of core.IntName | Value |
|---|---|
| PreserveSeamsAndReduceDeformation | 0 |
| PreserveSeams | 1 |
| IgnoreUV | 2 |
UnwrapUVMethod
Enum of core.IntName | Value |
|---|---|
| Isometric | 0 |
| Conformal | 1 |
UseColorOption
Select between:- UseLinesColor: core.None
- ChooseColor: core.Color Functions accepting this type or a list of this type as a parameter:
- algo.lineToTexture
VisibilityToWeightMode
EnumName | Value |
|---|---|
| FrontCountOnly | 0 |
| FrontAndBackCount | 1 |
| FrontCountOnlyAreaWeighted | 2 |
| FrontAndBackCountAreaWeighted | 3 |