Functions | |
json | WSM.Utils.AngleFullCircleInRadians (normal, vecA, vecB, returnPositive) |
AngleFullCircleInRadians Parameters: In: normal, vecA, vecB, returnPositive Out: double. | |
json | WSM.Utils.AppendSelectionToGroupInstancePathArray (aInput, aOutput) |
AppendSelectionToGroupInstancePathArray Parameters: In: aInput Out: std.vector<WSM.GroupInstancePath> | |
json | WSM.Utils.AppendToGroupInstancePathArray (nHistoryID, aInput, aOutput) |
AppendSelectionToGroupInstancePathArray Parameters: In: path, aInput Out: std.vector<WSM.GroupInstancePath> | |
json | WSM.Utils.ComputeFaceCentroid (historyID, faceID) |
ComputeFaceCentroid Parameters: In: historyID, faceID Out: success (bool), centroid (WSM.Point3d) | |
json | WSM.Utils.ComputeFaceNormal (historyID, faceID) |
ComputeFaceNormal Parameters: In: historyID, faceID Out: bool, WSM.UnitVector3d | |
json | WSM.Utils.ConvertToFaces (aPaths) |
ConvertToFaces Parameters: In: aPaths); Out: std.vector<WSM.GroupInstancePath> | |
json | WSM.Utils.ConvertToTopLevel (nHistoryID, aObjectIDs, bAllowInstances, bAllowOwnedFaces) |
ConverToTopLevel Parameters: In: nHistoryID, aObjectIDs, bAllowInstances Out: std.vector<size_t> | |
json | WSM.Utils.ConvertToTopLevelPaths (aPaths, bAllowInstances, bAllowOwnedFaces) |
ConverToTopLevelPaths Parameters: In: aPaths, bAllowInstances Out: std.vector<WSM.GroupInstancePath> | |
json | WSM.Utils.DeleteObjectsIncludeSmoothAttachments (nHistoryID, toDelete) |
DeleteObjectsIncludeSmoothAttachments Parameters: In: nHistoryID, toDelete | |
json | WSM.Utils.ExpandSelection (nHistoryID, objectID, selectionlevel, filter, bCanExpandInstances) |
json | WSM.Utils.GetAllNonOwnedGeometricObjects (nHistoryID) |
GetAllNonOwnedGeometricObjects Parameters: In: nHistoryID Out: vector<size_t> | |
json | WSM.Utils.GetAxisAlignedBoundingBox (aObjectIDs, CS) |
GetAxisAlignedBoundingBox Parameters: In: aObjectIDs, CS (WSM.Utils.CoordSystem) WSM.Utils.CoordSystem.HCS The History being edited coordinate system. | |
json | WSM.Utils.GetCoedgePoints (nHistoryID, coedgeID) |
GetCoedgePoints Parameters: In: nHistoryID, coedgeID Out: bool, WSM.Point3d, WSM.Point3d | |
json | WSM.Utils.GetEdgeCurveType (nHistoryID, edgeId) |
GetEdgeCurveType Parameters: In: nHistoryID, edgeId Out: type, size_t AttribID | |
json | WSM.Utils.GetEdgeIDFromCoedge (nHistoryID, coedgeID) |
GetEdgeIDFromCoedge Parameters: In: nHistoryID, coedgeID Out: size_t | |
json | WSM.Utils.GetEdgeLine (nHistoryID, edge) |
GetEdgeLine Parameters: In: nHistoryID, edge Out: Line3d | |
json | WSM.Utils.GetFaceIDFromCoedge (nHistoryID, coedgeID) |
GetFaceIDFromCoedge Parameters: In: nHistoryID, coedgeID Out: size_t | |
json | WSM.Utils.GetFacePoints (facePath) |
GetFacePoints Parameters: In: facePath Out: std.vector<WSM.Point3d> | |
json | WSM.Utils.GetGroupInstanceNonOwnedGeometricObjects (instance) |
GetGroupInstanceNonOwnedGeometricObjects Parameters: In: instance Out: std.vector<WSM.GroupInstancePath> | |
json | WSM.Utils.GetMemoryInfo (nHistoryID) |
GetMemoryInfo Parameters: In: nHistoryID Out: aRefdHistoryIDs, nFullSize, nCollapsedSize | |
json | WSM.Utils.GetVertexCurveAttributes (historyID, vertexID) |
GetVertexCurveAttributes Parameters: In: historyID, vertexID Out: std.vector<std.pair<size_t, size_t>> aAttributeIDs | |
json | WSM.Utils.HasSmoothEdge (nHistoryID, nObjectID) |
HasSmoothEdge Parameters: In: nHistoryID, nObjectID Out: true/false | |
json | WSM.Utils.IsBackFace (path, cameraPos, cameraDir, perspectiveView) |
IsBackFace Parameters: In: path, cameraPos, cameraDir, perspectiveView Out: true/false | |
json | WSM.Utils.IsLayerHidden (nHistoryID, id) |
IsLayerHidden Parameters: In: nHistoryID, id Out: true/false | |
json | WSM.Utils.IsObjectHidden (nHistoryID, nObjectID) |
IsObjectHidden Parameters: In: nHistoryID, nObjectID Out: true/false | |
json | WSM.Utils.IsObjectHiddenByPath (path) |
IsObjectHiddenByPath Parameters: In: path Out: true/false | |
json | WSM.Utils.IsLayerNotPickable (nHistoryID, id) |
IsLayerNotPickable Parameters: In: nHistoryID, id Out: true/false | |
json | WSM.Utils.IsObjectNotPickable (nHistoryID, nObjectID) |
IsObjectNotPickable Parameters: In: nHistoryID, nObjectID Out: true/false | |
json | WSM.Utils.IsObjectNotPickableByPath (path) |
IsObjectNotPickableByPath Parameters: In: path Out: true/false | |
json | WSM.Utils.IsObjectType (path, nObjectTypes) |
IsObjectType Parameters: In: path, nObjectTypes Out: bool | |
json | WSM.Utils.IsOnCurveJunction (path, bInferencing) |
json | WSM.Utils.IsSelectAllConnected (nHistoryID, selectedObjectIDs) |
IsSelectAllConnected Parameters: In: nHistoryID, selectedObjectIDs Out: true/false | |
json | WSM.Utils.IsSilhouetteEdge (nHistoryID, edgeId, cameraPos, cameraDir, perspectiveView) |
IsSilhouetteEdge Parameters: In: nHistoryID, edgeId, cameraPos, cameraDir, perspectiveView Out: true/false | |
json | WSM.Utils.IsSmooth (path) |
IsSmooth Parameters: In: path Out: true/false | |
json | WSM.Utils.IsTopLevelObjectHidden (nHistoryID, nObjectID) |
IsTopLevelObjectHidden Parameters: In: path Out: true/false | |
json | WSM.Utils.IsTopLevelObjectHiddenByPath (path) |
IsTopLevelObjectHiddenByPath Parameters: In: path Out: true/false | |
json | WSM.Utils.IsVertexEditable (nHistoryID, nObjectID) |
IsVertexEditable Parameters: In: nHistoryID, nObjectID Out: true/false | |
json | WSM.Utils.IsVertexOnCurve (historyID, vertexID) |
IsVertexOnCurve Parameters: In: historyID, vertexID Out: true/false | |
json | WSM.Utils.MakePickRayFromWindow (firstWindowSelectPoint, secondWindowSelectPoint) |
MakePickRayFromWindow Parameters: In: firstWindowSelectPoint, secondWindowSelectPoint Out: PickRay | |
json | WSM.Utils.MatchesSelectionType (selectedObjectIDs, aNewSelectedObjects, bSelectAll) |
MatchesSelectionType Parameters: In: selectedObjectIDs, aNewSelectedObjects, bSelectAll Out: true/false | |
json | WSM.Utils.ObjectCanBeHidden (nHistoryID, nObjectID) |
ObjectCanBeHidden Parameters: In: nHistoryID, nObjectID Out: true/false | |
json | WSM.Utils.PickBody (pickray) |
PickBody Parameters: In: pickRay Out: size_t | |
json | WSM.Utils.PickGeometry (pickray, pickFilter, bAllowAdjustRayRadius) |
PickGeometry Parameters: In: pickray, pickVertices, pickEdges, pickFaces, pickInstances, bAllowAdjustRayRadius Out: size_t | |
json | WSM.Utils.PickObjectsWithFilter (pickray, filter, currentSelectionLevel) |
PickObjectsWithFilter Parameters: In: pickray, filter, currentSelectionLevel Out: WSM.GroupInstancePath firstSelectedObject, std.vector<WSM.GroupInstancePath> allSelectedObjects, ObjectsAndPickPoints aObjectsAndPickPoints | |
json | WSM.Utils.PickObjectsWithRay (pickray, pickFilter, bAllowAdjustRayRadius, bIgnoreInContext) |
PickObjectsWithRay Parameters: In: pickRay, pickFilter, bAllowAdjustRayRadius Out: ObjectIDsAndPickPoints aObjectsAndPickPoints | |
json | WSM.Utils.RayFireWithObjects (objectIds, ray) |
RayFireWithObjects Parameters: In: objectIds, ray Out: bool, WSM.Point3d pickPointOnObject | |
json | WSM.Utils.SelectionFromGroupInstancePathArray (aInput) |
SelectionFromGroupInstancePathArray Parameters: In: aInput Out: aOutput | |
json | WSM.Utils.SelectionToGroupInstancePath (nObjectID) |
SelectionToGroupInstancePath Parameters: In: nObjectID Out: GroupInstancePath | |
json | WSM.Utils.SelectionToGroupInstancePathArray (aInput) |
SelectionToGroupInstancePathArray Parameters: In: aInput Out: aOutput | |
json | WSM.Utils.SetToOwnerBody (path) |
SetToOwnerBody Parameters: In: path Out: WSM.GroupInstancePath | |
json | WSM.Utils.TestPickImages (nHistoryID, imageIds, pickRay) |
TestPickImages Parameters: In: nHistoryID, imageIds, pickRay Out: size_t, Point3d pickPointOnImage | |
json | WSM.Utils.ObjectIDsAreEqual (id1, id2) |
ObjectIDsAreEqual Parameters: In: id1, id2 Out: areSame (bool) | |
json | WSM.Utils.GroupInstancePathsAreEqual (path1, path2) |
GroupInstancePathsAreEqual Parameters: In: path1, path2 Out: areSame (bool) | |
json | WSM.Utils.PickRay (pickrayLine, planes, screenPickRayRadius, perspectiveScaleFactor, baseRadius, normalizedScreenPoint) |
PickRay constructs a PickRay. | |
json | WSM.Utils.PickRayFromLine (pickrayLine) |
PickRay constructs a PickRay. | |
json | WSM.Utils.PickRayFromNormalizedScreenPoint (ptX, ptY, yUp) |
PickRayFromNormalizedScreenPoint() function. | |
json | WSM.Utils.GroupInstancePathArray (objectIDs, History, groupInstancePath) |
json | WSM.Utils.GetGroupInstancePathFinalObjectHistoryID (ObjectIDs) |
GetGroupInstancePathFinalObjectHistoryID takes any form of Objects (GroupInstancePath, GroupInstancePathArray, ObjectHistoryIDArray, ObjectIDArray) and returns the final ObjectHistoryID. | |
json | WSM.Utils.ObjectHistoryIDArray (objectIDs, History) |
json | WSM.Utils.ObjectIDArray (objectIDs) |
json | WSM.Utils.SetOrCreateStringAttributeForObject (nHistoryID, nObjectID, key, value, nCB, bIsSharedOnSplit) |
Sets the value of a string attribute of a given object, if that object has such an attribute with the given key. | |
json | WSM.Utils.GetStringAttributeForObject (nHistoryID, nObjectID, key) |
Gets the string attribute value for a given object and key. | |
json | WSM.Utils.ObjectTypeFilter () |
Default constructor for WSM.Utils.ObjectTypeFilter | |
json | WSM.Utils.ObjectHistoryID (nHistoryID, nObjectID) |
ObjectHistoryID creation method In: nHistoryID, nObjectID Out: ObjectHistoryID | |
json | WSM.Utils.IsOwnerOf (parent, child) |
Checks whether parent is an owner of child Parameters: In: parent, child as WSM.GroupInstancePath Out: true/false | |
json | WSM.Utils.GetAllGeometryInformation (nHistID, nObjID) |
Returns data to create a Spacemaker glb from a root history. | |
json | WSM.Utils.GetAllRenderingInformation (nHistID, bWriteHiddenObject, bPushNonUniformOntoGeometry, nObjID) |
Returns rendering data used by Lumion. | |
json | WSM.Utils.CreateModelFromRenderingInformation (nHistID, aMeshesAndTransformsDataVec, aMaterialVec) |
Creates geometry and materials representing rendering information. | |
json | WSM.Utils.ComputeGeometryFromLevels (nHistID, bUseHiddenObject, nObjID) |
Computes faces by intersecting visible objects with levels. | |
json | WSM.Utils.CreateAlignedAndCenteredGroup (nHistID, aObjectIDs) |
Creates a group matching the LCS and centered on average x, average y, and minimum z of the bounding boxes of the objects being moved to the group. | |
json | WSM.Utils.CreateBoundingLineMesh (nHistoryID, nObjectID, aPlanes, bUsePlaneLinearly) |
Creates a line mesh boundary that is the intersection of the given planes and the object where the slice given by the the intersection of plane i and the object is bounded by plane (i - 1) and plane (i + 1), so only segments on the negative side of the planes are kept. | |
json | WSM.Utils.GetObjectTypesMultiHistory (paths) |
Get object types for multiple object paths at once, in multiple histories. | |
json | WSM.Utils.GetObjectTypes (historyId, objectIds) |
Bulk version of APIGetObjectTypeReadOnly. | |
json | WSM.Utils.GetRenderableFaces (historyId, faces, calcTexCoords, backside) |
json | WSM.Utils.GetRenderableEdges (historyId, edges, includeSmooth) |
Get vertices for multiple edges at once, as a flat list of doubles | |
json | WSM.Utils.GetObjectRenderableEdges (historyId, objectId, includeSmooth) |
Get vertices for all the edges on an object, as a flat list of doubles | |
json WSM.Utils.AngleFullCircleInRadians | ( | normal | , |
vecA | , | ||
vecB | , | ||
returnPositive | |||
) |
AngleFullCircleInRadians Parameters: In: normal, vecA, vecB, returnPositive Out: double.
[in] | normal | WSM.UnitVector3d |
[in] | vecA | WSM.Vector3d |
[in] | vecB | WSM.Vector3d |
[in] | returnPositive | bool |
json WSM.Utils.AppendSelectionToGroupInstancePathArray | ( | aInput | , |
aOutput | |||
) |
AppendSelectionToGroupInstancePathArray Parameters: In: aInput Out: std.vector<WSM.GroupInstancePath>
[in] | aInput | WSM.Utils.HistoryObjects |
[in] | aOutput | (OPTIONAL) Array of WSM.GroupInstancePath |
json WSM.Utils.AppendToGroupInstancePathArray | ( | nHistoryID | , |
aInput | , | ||
aOutput | |||
) |
AppendSelectionToGroupInstancePathArray Parameters: In: path, aInput Out: std.vector<WSM.GroupInstancePath>
[in] | nHistoryID | int |
[in] | aInput | WSM.Utils.HistoryObjects |
[in] | aOutput | (OPTIONAL) Array of WSM.GroupInstancePath |
json WSM.Utils.ComputeFaceCentroid | ( | historyID | , |
faceID | |||
) |
ComputeFaceCentroid Parameters: In: historyID, faceID Out: success (bool), centroid (WSM.Point3d)
[in] | historyID | int |
[in] | faceID | int |
json WSM.Utils.ComputeFaceNormal | ( | historyID | , |
faceID | |||
) |
ComputeFaceNormal Parameters: In: historyID, faceID Out: bool, WSM.UnitVector3d
[in] | historyID | int |
[in] | faceID | int |
json WSM.Utils.ComputeGeometryFromLevels | ( | nHistID | , |
bUseHiddenObject | , | ||
nObjID | |||
) |
Computes faces by intersecting visible objects with levels.
Returns the faces in a vector with the height of the level the faces came from. If nObjID is WSM.INVALID_ID, uses every object in nHidtID, otherwise only uses the specified ID. Parameters: In: nHistID, bUseHiddenObject, nObjID Out: the data
[in] | nHistID | int |
[in] | bUseHiddenObject | (OPTIONAL, default = false) bool |
[in] | nObjID | (OPTIONAL, default = WSM.INVALID_ID) int |
json WSM.Utils.ConvertToFaces | ( | aPaths | ) |
ConvertToFaces Parameters: In: aPaths); Out: std.vector<WSM.GroupInstancePath>
[in] | aPaths | WSM.Utils.HistoryObjects |
json WSM.Utils.ConvertToTopLevel | ( | nHistoryID | , |
aObjectIDs | , | ||
bAllowInstances | , | ||
bAllowOwnedFaces | |||
) |
ConverToTopLevel Parameters: In: nHistoryID, aObjectIDs, bAllowInstances Out: std.vector<size_t>
[in] | nHistoryID | int |
[in] | aObjectIDs | WSM.Utils.HistoryObjects |
[in] | bAllowInstances | bool |
[in] | bAllowOwnedFaces | bool |
json WSM.Utils.ConvertToTopLevelPaths | ( | aPaths | , |
bAllowInstances | , | ||
bAllowOwnedFaces | |||
) |
ConverToTopLevelPaths Parameters: In: aPaths, bAllowInstances Out: std.vector<WSM.GroupInstancePath>
[in] | aPaths | WSM.Utils.HistoryObjects |
[in] | bAllowInstances | bool |
[in] | bAllowOwnedFaces | bool |
json WSM.Utils.CreateAlignedAndCenteredGroup | ( | nHistID | , |
aObjectIDs | |||
) |
Creates a group matching the LCS and centered on average x, average y, and minimum z of the bounding boxes of the objects being moved to the group.
Parameters: In: nHistID, aObjectIDs Out: the group ID
[in] | nHistID | int |
[in] | aObjectIDs | Array of int |
json WSM.Utils.CreateBoundingLineMesh | ( | nHistoryID | , |
nObjectID | , | ||
aPlanes | , | ||
bUsePlaneLinearly | |||
) |
Creates a line mesh boundary that is the intersection of the given planes and the object where the slice given by the the intersection of plane i and the object is bounded by plane (i - 1) and plane (i + 1), so only segments on the negative side of the planes are kept.
Note if i is from 0 to n, then the intersection of plane 0 and the object uses plane n and plane 1. Similarly the slice with plane n uses plane (n - 1) and plane 0. If bUsePlaneLinearly is true, aPlanes should have size that is a multiple of 3 and each segment will be determined by bounding the intersection of plane 3 * i with planes 3 * i + 1 and 3 * i + 2. Note we need bUsePlaneLinearly to handle more general cases like a single bounded segment and non-convex boundaries. Parameters: In: nHistoryID, nObjectID, aPlanes, bUsePlaneLinearly Out: the line mesh ID
[in] | nHistoryID | int |
[in] | nObjectID | int |
[in] | aPlanes | Array of WSM.Plane |
[in] | bUsePlaneLinearly | (OPTIONAL, default = false) bool |
json WSM.Utils.CreateModelFromRenderingInformation | ( | nHistID | , |
aMeshesAndTransformsDataVec | , | ||
aMaterialVec | |||
) |
Creates geometry and materials representing rendering information.
Parameters: In: nHistID, aMeshesAndTransformsDataVec, aMaterialVec Out: JSON_UNDEFINED
[in] | nHistID | int |
[in] | aMeshesAndTransformsDataVec | Array of WSM.Utils.MeshesAndTransformsData |
[in] | aMaterialVec | Array of WSM.Utils.MaterialData |
json WSM.Utils.DeleteObjectsIncludeSmoothAttachments | ( | nHistoryID | , |
toDelete | |||
) |
DeleteObjectsIncludeSmoothAttachments Parameters: In: nHistoryID, toDelete
[in] | nHistoryID | int |
[in] | toDelete | WSM.Utils.HistoryObjects |
json WSM.Utils.ExpandSelection | ( | nHistoryID | , |
objectID | , | ||
selectionlevel | , | ||
filter | , | ||
bCanExpandInstances | |||
) |
json WSM.Utils.GetAllGeometryInformation | ( | nHistID | , |
nObjID | |||
) |
Returns data to create a Spacemaker glb from a root history.
If nObjID is provided and is not WSM.INVALID_ID, info returned is limited to the given object. Parameters: In: nHistID, nObjID Out: the data
[in] | nHistID | int |
[in] | nObjID | (OPTIONAL, default = WSM.INVALID_ID) int |
json WSM.Utils.GetAllNonOwnedGeometricObjects | ( | nHistoryID | ) |
GetAllNonOwnedGeometricObjects Parameters: In: nHistoryID Out: vector<size_t>
[in] | nHistoryID | int |
json WSM.Utils.GetAllRenderingInformation | ( | nHistID | , |
bWriteHiddenObject | , | ||
bPushNonUniformOntoGeometry | , | ||
nObjID | |||
) |
Returns rendering data used by Lumion.
If nObjID is provided and is not WSM.INVALID_ID, info returned is limited to the given object. Parameters: In: nHistID, bWriteHiddenObject, bPushNonUniformOntoGeometry, nObjID Out: the data
[in] | nHistID | int |
[in] | bWriteHiddenObject | (OPTIONAL, default = false) bool |
[in] | bPushNonUniformOntoGeometry | (OPTIONAL, default = false) bool |
[in] | nObjID | (OPTIONAL, default = WSM.INVALID_ID) int |
json WSM.Utils.GetAxisAlignedBoundingBox | ( | aObjectIDs | , |
CS | |||
) |
GetAxisAlignedBoundingBox Parameters: In: aObjectIDs, CS (WSM.Utils.CoordSystem) WSM.Utils.CoordSystem.HCS The History being edited coordinate system.
WSM.Utils.CoordSystem.LCS The History being edited local coordinate system. WSM.Utils.CoordSystem.WHCS The World History coordinate system. WSM.Utils.CoordSystem.WLCS The World History local coordinate system. Out: AxisAlignedBoundingBox
[in] | aObjectIDs | WSM.Utils.HistoryObjects |
[in] | CS | WSM.Utils.CoordSystem |
json WSM.Utils.GetCoedgePoints | ( | nHistoryID | , |
coedgeID | |||
) |
GetCoedgePoints Parameters: In: nHistoryID, coedgeID Out: bool, WSM.Point3d, WSM.Point3d
[in] | nHistoryID | int |
[in] | coedgeID | int |
json WSM.Utils.GetEdgeCurveType | ( | nHistoryID | , |
edgeId | |||
) |
GetEdgeCurveType Parameters: In: nHistoryID, edgeId Out: type, size_t AttribID
[in] | nHistoryID | int |
[in] | edgeId | int |
json WSM.Utils.GetEdgeIDFromCoedge | ( | nHistoryID | , |
coedgeID | |||
) |
GetEdgeIDFromCoedge Parameters: In: nHistoryID, coedgeID Out: size_t
[in] | nHistoryID | int |
[in] | coedgeID | int |
json WSM.Utils.GetEdgeLine | ( | nHistoryID | , |
edge | |||
) |
GetEdgeLine Parameters: In: nHistoryID, edge Out: Line3d
[in] | nHistoryID | int |
[in] | edge | int |
json WSM.Utils.GetFaceIDFromCoedge | ( | nHistoryID | , |
coedgeID | |||
) |
GetFaceIDFromCoedge Parameters: In: nHistoryID, coedgeID Out: size_t
[in] | nHistoryID | int |
[in] | coedgeID | int |
json WSM.Utils.GetFacePoints | ( | facePath | ) |
GetFacePoints Parameters: In: facePath Out: std.vector<WSM.Point3d>
[in] | facePath | WSM.Utils.HistoryObjects |
json WSM.Utils.GetGroupInstanceNonOwnedGeometricObjects | ( | instance | ) |
GetGroupInstanceNonOwnedGeometricObjects Parameters: In: instance Out: std.vector<WSM.GroupInstancePath>
[in] | instance | WSM.Utils.HistoryObjects |
json WSM.Utils.GetGroupInstancePathFinalObjectHistoryID | ( | ObjectIDs | ) |
GetGroupInstancePathFinalObjectHistoryID takes any form of Objects (GroupInstancePath, GroupInstancePathArray, ObjectHistoryIDArray, ObjectIDArray) and returns the final ObjectHistoryID.
Parameters: In: ObjectIDs Out: Final ObjectHistoryID
[in] | ObjectIDs | WSM.Utils.HistoryObjects |
json WSM.Utils.GetMemoryInfo | ( | nHistoryID | ) |
GetMemoryInfo Parameters: In: nHistoryID Out: aRefdHistoryIDs, nFullSize, nCollapsedSize
[in] | nHistoryID | int |
json FormIt.Graphics.GetObjectRenderableEdges | ( | historyId | , |
objectId | , | ||
includeSmooth | |||
) |
Get vertices for all the edges on an object, as a flat list of doubles
[in] | historyId | int |
[in] | objectId | int |
[in] | includeSmooth | bool |
json FormIt.Graphics.GetObjectTypes | ( | historyId | , |
objectIds | |||
) |
Bulk version of APIGetObjectTypeReadOnly.
If an object type can't be retrieved, then nUnSpecifiedType is set in outTypes. outTypes is always the same size and order as objectIds
[in] | historyId | int |
[in] | objectIds | Array of int |
json WSM.Utils.GetObjectTypesMultiHistory | ( | paths | ) |
Get object types for multiple object paths at once, in multiple histories.
[in] | paths | WSM.GroupInstancePathArray |
json FormIt.Graphics.GetRenderableEdges | ( | historyId | , |
edges | , | ||
includeSmooth | |||
) |
Get vertices for multiple edges at once, as a flat list of doubles
[in] | historyId | int |
[in] | edges | Array of int |
[in] | includeSmooth | bool |
json WSM.Utils.GetRenderableFaces | ( | historyId | , |
faces | , | ||
calcTexCoords | , | ||
backside | |||
) |
json WSM.Utils.GetStringAttributeForObject | ( | nHistoryID | , |
nObjectID | , | ||
key | |||
) |
Gets the string attribute value for a given object and key.
Returns true if the object has a string attribute with that key. Returns false if not.
[in] | nHistoryID | int |
[in] | nObjectID | int |
[in] | key | String |
json WSM.Utils.GetVertexCurveAttributes | ( | historyID | , |
vertexID | |||
) |
GetVertexCurveAttributes Parameters: In: historyID, vertexID Out: std.vector<std.pair<size_t, size_t>> aAttributeIDs
[in] | historyID | int |
[in] | vertexID | int |
json WSM.Utils.GroupInstancePathArray | ( | objectIDs | , |
History | , | ||
groupInstancePath | |||
) |
json WSM.Utils.GroupInstancePathsAreEqual | ( | path1 | , |
path2 | |||
) |
GroupInstancePathsAreEqual Parameters: In: path1, path2 Out: areSame (bool)
[in] | path1 | WSM.Utils.HistoryObjects |
[in] | path2 | WSM.Utils.HistoryObjects |
json WSM.Utils.HasSmoothEdge | ( | nHistoryID | , |
nObjectID | |||
) |
HasSmoothEdge Parameters: In: nHistoryID, nObjectID Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.IsBackFace | ( | path | , |
cameraPos | , | ||
cameraDir | , | ||
perspectiveView | |||
) |
IsBackFace Parameters: In: path, cameraPos, cameraDir, perspectiveView Out: true/false
[in] | path | WSM.Utils.HistoryObjects |
[in] | cameraPos | WSM.Point3d |
[in] | cameraDir | WSM.Vector3d |
[in] | perspectiveView | bool |
json WSM.Utils.IsLayerHidden | ( | nHistoryID | , |
id | |||
) |
IsLayerHidden Parameters: In: nHistoryID, id Out: true/false
[in] | nHistoryID | int |
[in] | id | int |
json WSM.Utils.IsLayerNotPickable | ( | nHistoryID | , |
id | |||
) |
IsLayerNotPickable Parameters: In: nHistoryID, id Out: true/false
[in] | nHistoryID | int |
[in] | id | int |
json WSM.Utils.IsObjectHidden | ( | nHistoryID | , |
nObjectID | |||
) |
IsObjectHidden Parameters: In: nHistoryID, nObjectID Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.IsObjectHiddenByPath | ( | path | ) |
IsObjectHiddenByPath Parameters: In: path Out: true/false
[in] | path | WSM.Utils.HistoryObjects |
json WSM.Utils.IsObjectNotPickable | ( | nHistoryID | , |
nObjectID | |||
) |
IsObjectNotPickable Parameters: In: nHistoryID, nObjectID Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.IsObjectNotPickableByPath | ( | path | ) |
IsObjectNotPickableByPath Parameters: In: path Out: true/false
[in] | path | WSM.Utils.HistoryObjects |
json WSM.Utils.IsObjectType | ( | path | , |
nObjectTypes | |||
) |
IsObjectType Parameters: In: path, nObjectTypes Out: bool
[in] | path | WSM.Utils.HistoryObjects |
[in] | nObjectTypes | Array of WSM.nObjectType |
json WSM.Utils.IsOnCurveJunction | ( | path | , |
bInferencing | |||
) |
json WSM.Utils.IsOwnerOf | ( | parent | , |
child | |||
) |
Checks whether parent is an owner of child Parameters: In: parent, child as WSM.GroupInstancePath Out: true/false
[in] | parent | WSM.GroupInstancePath |
[in] | child | WSM.GroupInstancePath |
json WSM.Utils.IsSelectAllConnected | ( | nHistoryID | , |
selectedObjectIDs | |||
) |
IsSelectAllConnected Parameters: In: nHistoryID, selectedObjectIDs Out: true/false
[in] | nHistoryID | int |
[in] | selectedObjectIDs | WSM.Utils.HistoryObjects |
json WSM.Utils.IsSilhouetteEdge | ( | nHistoryID | , |
edgeId | , | ||
cameraPos | , | ||
cameraDir | , | ||
perspectiveView | |||
) |
IsSilhouetteEdge Parameters: In: nHistoryID, edgeId, cameraPos, cameraDir, perspectiveView Out: true/false
[in] | nHistoryID | int |
[in] | edgeId | int |
[in] | cameraPos | WSM.Point3d |
[in] | cameraDir | WSM.Vector3d |
[in] | perspectiveView | bool |
json WSM.Utils.IsSmooth | ( | path | ) |
IsSmooth Parameters: In: path Out: true/false
[in] | path | WSM.Utils.HistoryObjects |
json WSM.Utils.IsTopLevelObjectHidden | ( | nHistoryID | , |
nObjectID | |||
) |
IsTopLevelObjectHidden Parameters: In: path Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.IsTopLevelObjectHiddenByPath | ( | path | ) |
IsTopLevelObjectHiddenByPath Parameters: In: path Out: true/false
[in] | path | WSM.Utils.HistoryObjects |
json WSM.Utils.IsVertexEditable | ( | nHistoryID | , |
nObjectID | |||
) |
IsVertexEditable Parameters: In: nHistoryID, nObjectID Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.IsVertexOnCurve | ( | historyID | , |
vertexID | |||
) |
IsVertexOnCurve Parameters: In: historyID, vertexID Out: true/false
[in] | historyID | int |
[in] | vertexID | int |
json WSM.Utils.MakePickRayFromWindow | ( | firstWindowSelectPoint | , |
secondWindowSelectPoint | |||
) |
MakePickRayFromWindow Parameters: In: firstWindowSelectPoint, secondWindowSelectPoint Out: PickRay
[in] | firstWindowSelectPoint | WSM.Point2d |
[in] | secondWindowSelectPoint | WSM.Point2d |
json WSM.Utils.MatchesSelectionType | ( | selectedObjectIDs | , |
aNewSelectedObjects | , | ||
bSelectAll | |||
) |
MatchesSelectionType Parameters: In: selectedObjectIDs, aNewSelectedObjects, bSelectAll Out: true/false
[in] | selectedObjectIDs | WSM.Utils.HistoryObjects |
[in] | aNewSelectedObjects | WSM.Utils.HistoryObjects |
[in] | bSelectAll | bool |
json WSM.Utils.ObjectCanBeHidden | ( | nHistoryID | , |
nObjectID | |||
) |
ObjectCanBeHidden Parameters: In: nHistoryID, nObjectID Out: true/false
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.ObjectHistoryID | ( | nHistoryID | , |
nObjectID | |||
) |
ObjectHistoryID creation method In: nHistoryID, nObjectID Out: ObjectHistoryID
ObjectHistoryID constructs an ObjectHistoryID.
[in] | nHistoryID | int |
[in] | nObjectID | int |
Parameters: In: nHistoryID, nObjectID Out: ObjectHistoryID
[in] | nHistoryID | int |
[in] | nObjectID | int |
json WSM.Utils.ObjectHistoryIDArray | ( | objectIDs | , |
History | |||
) |
json WSM.Utils.ObjectIDArray | ( | objectIDs | ) |
json WSM.Utils.ObjectIDsAreEqual | ( | id1 | , |
id2 | |||
) |
ObjectIDsAreEqual Parameters: In: id1, id2 Out: areSame (bool)
[in] | id1 | WSM.ObjectHistoryID |
[in] | id2 | WSM.ObjectHistoryID |
json WSM.Utils.ObjectTypeFilter | ( | ) |
Default constructor for WSM.Utils.ObjectTypeFilter
json WSM.Utils.PickBody | ( | pickray | ) |
json WSM.Utils.PickGeometry | ( | pickray | , |
pickFilter | , | ||
bAllowAdjustRayRadius | |||
) |
PickGeometry Parameters: In: pickray, pickVertices, pickEdges, pickFaces, pickInstances, bAllowAdjustRayRadius Out: size_t
[in] | pickray | WSM.Utils.PickRay |
[in] | pickFilter | WSM.Utils.ObjectTypeFilter |
[in] | bAllowAdjustRayRadius | bool |
json WSM.Utils.PickObjectsWithFilter | ( | pickray | , |
filter | , | ||
currentSelectionLevel | |||
) |
PickObjectsWithFilter Parameters: In: pickray, filter, currentSelectionLevel Out: WSM.GroupInstancePath firstSelectedObject, std.vector<WSM.GroupInstancePath> allSelectedObjects, ObjectsAndPickPoints aObjectsAndPickPoints
[in] | pickray | WSM.Utils.PickRay |
[in] | filter | WSM.Utils.ObjectTypeFilter |
[in] | currentSelectionLevel | SelectionLevel |
json WSM.Utils.PickObjectsWithRay | ( | pickray | , |
pickFilter | , | ||
bAllowAdjustRayRadius | , | ||
bIgnoreInContext | |||
) |
PickObjectsWithRay Parameters: In: pickRay, pickFilter, bAllowAdjustRayRadius Out: ObjectIDsAndPickPoints aObjectsAndPickPoints
[in] | pickray | WSM.Utils.PickRay |
[in] | pickFilter | WSM.Utils.ObjectTypeFilter |
[in] | bAllowAdjustRayRadius | bool |
[in] | bIgnoreInContext | bool |
json WSM.Utils.PickRay | ( | pickrayLine | , |
planes | , | ||
screenPickRayRadius | , | ||
perspectiveScaleFactor | , | ||
baseRadius | , | ||
normalizedScreenPoint | |||
) |
PickRay constructs a PickRay.
Parameters: In: pickrayLine, planes, screenPickRayRadius, perspectiveScaleFactor, baseRadius, normalizedScreenPoint Out: PickRay
[in] | pickrayLine | WSM.Line3d |
[in] | planes | Array of WSM.Plane |
[in] | screenPickRayRadius | double |
[in] | perspectiveScaleFactor | double |
[in] | baseRadius | double |
[in] | normalizedScreenPoint | (OPTIONAL, default = WSM.Point2d()) WSM.Point2d |
json WSM.Utils.PickRayFromLine | ( | pickrayLine | ) |
PickRay constructs a PickRay.
Expose a different constructor than just PickRay above Parameters: In: pickrayLine Out: PickRay
[in] | pickrayLine | WSM.Line3d |
json WSM.Utils.PickRayFromNormalizedScreenPoint | ( | ptX | , |
ptY | , | ||
yUp | |||
) |
PickRayFromNormalizedScreenPoint() function.
[in] | ptX | double |
[in] | ptY | double |
[in] | yUp | (OPTIONAL, default = false) bool |
json WSM.Utils.RayFireWithObjects | ( | objectIds | , |
ray | |||
) |
RayFireWithObjects Parameters: In: objectIds, ray Out: bool, WSM.Point3d pickPointOnObject
[in] | objectIds | WSM.Utils.HistoryObjects |
[in] | ray | WSM.Utils.PickRay |
json WSM.Utils.SelectionFromGroupInstancePathArray | ( | aInput | ) |
SelectionFromGroupInstancePathArray Parameters: In: aInput Out: aOutput
[in] | aInput | WSM.Utils.HistoryObjects |
json WSM.Utils.SelectionToGroupInstancePath | ( | nObjectID | ) |
SelectionToGroupInstancePath Parameters: In: nObjectID Out: GroupInstancePath
[in] | nObjectID | int |
json WSM.Utils.SelectionToGroupInstancePathArray | ( | aInput | ) |
SelectionToGroupInstancePathArray Parameters: In: aInput Out: aOutput
[in] | aInput | WSM.Utils.HistoryObjects |
json WSM.Utils.SetOrCreateStringAttributeForObject | ( | nHistoryID | , |
nObjectID | , | ||
key | , | ||
value | , | ||
nCB | , | ||
bIsSharedOnSplit | |||
) |
Sets the value of a string attribute of a given object, if that object has such an attribute with the given key.
Otherwise it creates the attribute first. The copy behavior and bIsSharedOnSplit flag are only used when the attribute is created. Returns true if successful, false otherwise. If ObjectID is WSM.INVALID_ID, the attribute is created on the History. In : HistoryID, ObjectID, key, value, copy behavior, shared flag
[in] | nHistoryID | int |
[in] | nObjectID | int |
[in] | key | String |
[in] | value | String |
[in] | nCB | (OPTIONAL, default = ( int )WSM.nCopyBehavior.nShareOrCopy) int |
[in] | bIsSharedOnSplit | (OPTIONAL, default = true) bool |
json WSM.Utils.SetToOwnerBody | ( | path | ) |
SetToOwnerBody Parameters: In: path Out: WSM.GroupInstancePath
[in] | path | WSM.Utils.HistoryObjects |
json WSM.Utils.TestPickImages | ( | nHistoryID | , |
imageIds | , | ||
pickRay | |||
) |
TestPickImages Parameters: In: nHistoryID, imageIds, pickRay Out: size_t, Point3d pickPointOnImage
[in] | nHistoryID | int |
[in] | imageIds | WSM.Utils.HistoryObjects |
[in] | pickRay | WSM.Utils.PickRay |