file_path
stringlengths
21
224
content
stringlengths
0
80.8M
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCeilTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCeil.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Ceil" ( docs="""Computes the ceil of the given decimal number a, which is the smallest integral value greater than a""" ) { token node:type = "omni.graph.nodes.Ceil" int node:typeVersion = 1 # 1 attribute custom token inputs:a ( docs="""The decimal number""" ) # 1 attribute custom token outputs:result ( docs="""The ceil of the input a""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMagnitudeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMagnitude.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Magnitude" ( docs="""Compute the magnitude of a vector, array of vectors, or a scalar If a scalar is passed in, the absolute value will be returned If an array of vectors are passed in, the output will be an array of corresponding magnitudes""" ) { token node:type = "omni.graph.nodes.Magnitude" int node:typeVersion = 1 # 1 attribute custom token inputs:input ( docs="""The vector(s) or scalar to take the magnitude of""" ) # 1 attribute custom token outputs:magnitude ( docs="""The resulting magnitude(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantFloat3Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantFloat3.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantFloat3" ( docs="""Holds a 3-component float constant.""" ) { token node:type = "omni.graph.nodes.ConstantFloat3" int node:typeVersion = 1 # 1 attribute custom float3 inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRotateToTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRotateToTarget.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RotateToTarget" ( docs="""This node smoothly rotates a prim object to match a target prim object given a speed and easing factor. At the end of the maneuver, the source prim will have the rotation as the target prim. Note: The Prim must have xform:orient in transform stack in order to interpolate rotations""" ) { token node:type = "omni.graph.nodes.RotateToTarget" int node:typeVersion = 1 # 10 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:sourcePrim ( docs="""The source prim to be transformed""" ) custom string inputs:sourcePrimPath ( docs="""The source prim to be transformed, used when 'useSourcePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom rel inputs:targetPrim ( docs="""The destination prim. The target's rotation will be matched by the sourcePrim""" ) custom string inputs:targetPrimPath ( docs="""The destination prim. The target's rotation will be matched by the sourcePrim, used when 'useTargetPath' is true""" ) custom bool inputs:useSourcePath = false ( docs="""When true, the 'sourcePrimPath' attribute is used, otherwise it will read the connection at the 'sourcePrim' attribute""" ) custom bool inputs:useTargetPath = false ( docs="""When true, the 'targetPrimPath' attribute is used, otherwise it will read the connection at the 'targetPrim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnInterpolatorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInterpolator.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_Interpolator" ( docs="""Time sample interpolator""" ) { token node:type = "omni.graph.nodes.Interpolator" int node:typeVersion = 1 # 3 attributes custom float[] inputs:knots = [] ( docs="""Array of knots on the time sample curve""" ) custom float inputs:param = 0.0 ( docs="""Time sample interpolation point""" ) custom float[] inputs:values = [] ( docs="""Array of time sample values""" ) # 1 attribute custom float outputs:value ( docs="""Value in the time samples, interpolated at the given parameter location""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDouble2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantDouble2" ( docs="""Holds a 2-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantDouble2" int node:typeVersion = 1 # 1 attribute custom double2 inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetAttrNamesTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetAttrNames.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetAttributeNames" ( docs="""Retrieves the names of all of the attributes contained in the input bundle, optionally sorted.""" ) { token node:type = "omni.graph.nodes.GetAttributeNames" int node:typeVersion = 1 # 2 attributes custom rel inputs:data ( docs="""Collection of attributes from which to extract names""" ) custom bool inputs:sort = true ( docs="""If true, the names will be output in sorted order (default, for consistency). If false, the order is not be guaranteed to be consistent between systems or over time, so do not rely on the order downstream in this case.""" ) # 1 attribute custom token[] outputs:output ( docs="""Names of all of the attributes contained in the input bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadSettingTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadSetting.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ReadSetting" ( docs="""Node that reads a value from a kit application setting""" ) { token node:type = "omni.graph.nodes.ReadSetting" int node:typeVersion = 1 # 1 attribute custom string inputs:settingPath = "" ( docs="""The path of the setting""" ) # 1 attribute custom token outputs:value ( docs="""The value of the setting that is returned""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetPrimDirectionVectorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetPrimDirectionVector.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetPrimDirectionVector" ( docs="""Given a prim, find its direction vectors (up vector, forward vector, right vector, etc.)""" ) { token node:type = "omni.graph.nodes.GetPrimDirectionVector" int node:typeVersion = 1 # 3 attributes custom rel inputs:prim ( docs="""The connection to the input prim - this attribute is used when 'usePath' is false""" ) custom token inputs:primPath = "" ( docs="""The path of the input prim - this attribute is used when 'usePath' is true""" ) custom bool inputs:usePath = true ( docs="""When true, it will use the 'primPath' attribute as the path to the prim, otherwise it will read the connection at the 'prim' attribute""" ) # 6 attributes custom double3 outputs:backwardVector ( docs="""The backward vector of the prim""" ) custom double3 outputs:downVector ( docs="""The down vector of the prim""" ) custom double3 outputs:forwardVector ( docs="""The forward vector of the prim""" ) custom double3 outputs:leftVector ( docs="""The left vector of the prim""" ) custom double3 outputs:rightVector ( docs="""The right vector of the prim""" ) custom double3 outputs:upVector ( docs="""The up vector of the prim""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSetMatrix4TranslationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSetMatrix4Translation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SetMatrix4Translation" ( docs="""Sets the translation of the given matrix4d value which represents a linear transformation. Does not modify the orientation (row 0-2) of the matrix.""" ) { token node:type = "omni.graph.nodes.SetMatrix4Translation" int node:typeVersion = 1 # 2 attributes custom token inputs:matrix ( docs="""The matrix to be modified""" ) custom token inputs:translation ( docs="""The translation that the matrix will apply""" ) # 1 attribute custom token outputs:matrix ( docs="""The updated matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayRotateTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayRotate.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayRotate" ( docs="""Shifts the elements of an array by the specified number of steps to the right and wraps elements from one end to the other. A negative step will shift to the left.""" ) { token node:type = "omni.graph.nodes.ArrayRotate" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:steps = 0 ( docs="""The number of steps to shift, negative means shift left instead of right""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetMatrix4QuaternionTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetMatrix4Quaternion.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetMatrix4Quaternion" ( docs="""Gets the rotation of the given matrix4d value which represents a linear transformation. Returns a quaternion""" ) { token node:type = "omni.graph.nodes.GetMatrix4Quaternion" int node:typeVersion = 1 # 1 attribute custom token inputs:matrix ( docs="""The transformation matrix""" ) # 1 attribute custom token outputs:quaternion ( docs="""quaternion representing the orientation of the matrix transformation""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnRemoveAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnRemoveAttr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_RemoveAttribute" ( docs="""Copies all attributes from an input bundle to the output bundle, except for any specified to be removed.""" ) { token node:type = "omni.graph.nodes.RemoveAttribute" int node:typeVersion = 1 # 2 attributes custom token inputs:attrNamesToRemove = "" ( docs="""Comma or space separated text, listing the names of attributes *not* to be copied to the output bundle""" ) custom rel inputs:data ( docs="""Collection of attributes to be partially copied to the output""" ) # 1 attribute def Output "outputs_data" ( docs="""Final bundle of attributes, with the attributes specified by attrNamesToRemove omitted""" ) { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantDoubleTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantDouble.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantDouble" ( docs="""Holds a 64 bit floating point value""" ) { token node:type = "omni.graph.nodes.ConstantDouble" int node:typeVersion = 1 # 1 attribute custom double inputs:value = 0.0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnMakeVector2Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnMakeVector2.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_MakeVector2" ( docs="""Merge 2 input values into a single output vector. If the inputs are arrays, the output will be an array of vectors.""" ) { token node:type = "omni.graph.nodes.MakeVector2" int node:typeVersion = 1 # 2 attributes custom token inputs:x ( docs="""The first component of the vector""" ) custom token inputs:y ( docs="""The second component of the vector""" ) # 1 attribute custom token outputs:tuple ( docs="""Output vector(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantStringTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantString.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantString" ( docs="""Holds a string constant value""" ) { token node:type = "omni.graph.nodes.ConstantString" int node:typeVersion = 1 # 1 attribute custom string inputs:value = "" ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnWritePrimAttributeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnWritePrimAttribute.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_WritePrimAttribute" ( docs="""Given a path to a prim on the current USD stage and the name of an attribute on that prim, sets the value of that attribute. Does nothing if the given Prim or attribute can not be found. If the attribute is found but it is not a compatible type, an error will be issued.""" ) { token node:type = "omni.graph.nodes.WritePrimAttribute" int node:typeVersion = 1 # 7 attributes custom uint inputs:execIn ( docs="""Input execution state""" ) custom token inputs:name = "" ( docs="""The name of the attribute to set on the specified prim""" ) custom rel inputs:prim ( docs="""The prim to be modified when 'usePath' is false""" ) custom token inputs:primPath = "" ( docs="""The path of the prim to be modified when 'usePath' is true""" ) custom bool inputs:usdWriteBack = true ( docs="""Whether or not the value should be written back to USD, or kept a Fabric only value""" ) custom bool inputs:usePath = false ( docs="""When true, the 'primPath' attribute is used as the path to the prim being read, otherwise it will read the connection at the 'prim' attribute""" ) custom token inputs:value = "any" ( docs="""The new value to be written""" ) # 1 attribute custom uint outputs:execOut ( docs="""Output execution""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToUint64Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToUint64.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ToUint64" ( docs="""Converts the given input to a 64 bit unsigned integer of the same shape. Negative integers are converted by adding them to 2**64, decimal numbers are truncated.""" ) { token node:type = "omni.graph.nodes.ToUint64" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""The numeric value to convert to uint64""" ) # 1 attribute custom token outputs:converted ( docs="""Converted output""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnInterpolateToTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnInterpolateTo.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_InterpolateTo" ( docs="""Function which iterpolates one step from a current value to a target value with a given speed. Vectors are interpolated component-wise. Interpolation can be applied to decimal types. The interpolation provides an eased approach to the target, adjust speed and exponent to tweak the curve. The formula is: result = current + (target - current) * (1 - clamp(0, speed * deltaSeconds, 1))^exp. For quaternions, the node performs a spherical linear interpolation (SLERP) with alpha = (1 - clamp(0, speed * deltaSeconds, 1))^exp""" ) { token node:type = "omni.graph.nodes.InterpolateTo" int node:typeVersion = 2 # 5 attributes custom token inputs:current ( docs="""The current value""" ) custom double inputs:deltaSeconds = 0.0 ( docs="""The step time for the interpolation (Seconds)""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom token inputs:target ( docs="""The target value""" ) # 1 attribute custom token outputs:result ( docs="""The interpolated result""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayRemoveValueTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayRemoveValue.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayRemoveValue" ( docs="""Removes the first occurrence of the given value from an array. If removeAll is true, removes all occurrences""" ) { token node:type = "omni.graph.nodes.ArrayRemoveValue" int node:typeVersion = 1 # 3 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom bool inputs:removeAll = false ( docs="""If true, removes all occurences of the value.""" ) custom token inputs:value ( docs="""The value to be removed""" ) # 2 attributes custom token outputs:array ( docs="""The modified array""" ) custom bool outputs:found ( docs="""true if a value was removed, false otherwise""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnExtractAttrTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnExtractAttr.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ExtractAttribute" ( docs="""Copies a single attribute from an input bundle to an output attribute directly on the node if it exists in the input bundle and matches the type of the output attribute""" ) { token node:type = "omni.graph.nodes.ExtractAttribute" int node:typeVersion = 1 # 2 attributes custom token inputs:attrName = "points" ( docs="""Name of the attribute to look for in the bundle""" ) custom rel inputs:data ( docs="""Collection of attributes from which the named attribute is to be extracted""" ) # 1 attribute custom token outputs:output = "any" ( docs="""The single attribute extracted from the input bundle""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToStringTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToString.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ToString" ( docs="""Converts the given input to a string equivalent.""" ) { token node:type = "omni.graph.nodes.ToString" int node:typeVersion = 1 # 1 attribute custom token inputs:value = "any" ( docs="""The value to be converted to a string. Numeric values are converted using C++'s std::ostringstream << operator. This can result in the values being converted to exponential form. E.g: 1.234e+06 Arrays of numeric values are converted to Python list syntax. E.g: [1.5, -0.03] A uchar value is converted to a single, unquoted character. An array of uchar values is converted to an unquoted string. Avoid zero values (i.e. null chars) in the array as the behavior is undefined and may vary over time. A single token is converted to its unquoted string equivalent. An array of tokens is converted to Python list syntax with each token enclosed in double quotes. E.g. ["first", "second"]""" ) # 1 attribute custom string outputs:converted ( docs="""Output string""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnEachZeroTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnEachZero.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_EachZero" ( docs="""Outputs a boolean, or array of booleans, indicating which input values are zero within a specified tolerance.""" ) { token node:type = "omni.graph.nodes.EachZero" int node:typeVersion = 1 # 2 attributes custom double inputs:tolerance = 0.0 ( docs="""How close the value must be to 0 to be considered "zero".""" ) custom token inputs:value ( docs="""Value(s) to check for zero.""" ) # 1 attribute custom token outputs:result ( docs="""If 'value' is a scalar then 'result' will be a boolean set to true if 'value' is zero. If 'value' is non-scalar (array, tuple, matrix, etc) then 'result' will be an array of booleans, one for each element/component of the input. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if 'value' is [3, 0, 1] then 'result' will be [true, false, true] because the second element is zero. But if 'value' is [[3, 0, 1], [-5, 4, 17]] then 'result' will be [false, false] because neither of the two vectors is fully zero.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToFloatTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToFloat.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ToFloat" ( docs="""Converts the given input to 32 bit float. The node will attempt to convert array and tuple inputs to floats of the same shape""" ) { token node:type = "omni.graph.nodes.ToFloat" int node:typeVersion = 1 # 1 attribute custom token inputs:value ( docs="""The numeric value to convert to float""" ) # 1 attribute custom token outputs:converted ( docs="""Output float scaler or array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantColor3fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantColor3f.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantColor3f" ( docs="""Holds a 3-component color constant, which is energy-linear RGB""" ) { token node:type = "omni.graph.nodes.ConstantColor3f" int node:typeVersion = 1 # 1 attribute custom color3f inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantUInt64Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantUInt64.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantUInt64" ( docs="""Holds a 64 bit signed integer value""" ) { token node:type = "omni.graph.nodes.ConstantUInt64" int node:typeVersion = 1 # 1 attribute custom uint64 inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantPoint3dTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantPoint3d.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantPoint3d" ( docs="""Holds a 3-component double constant.""" ) { token node:type = "omni.graph.nodes.ConstantPoint3d" int node:typeVersion = 1 # 1 attribute custom point3d inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSelectIfTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSelectIf.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SelectIf" ( docs="""Selects an output from the given inputs based on a boolean condition. If the condition is an array, and the inputs are arrays of equal length, and values will be selected from ifTrue, ifFalse depending on the bool at the same index. If one input is an array and the other is a scaler of the same base type, the scaler will be extended to the length of the other input.""" ) { token node:type = "omni.graph.nodes.SelectIf" int node:typeVersion = 1 # 3 attributes custom token inputs:condition ( docs="""The selection variable""" ) custom token inputs:ifFalse = "any" ( docs="""Value if condition is False""" ) custom token inputs:ifTrue = "any" ( docs="""Value if condition is True""" ) # 1 attribute custom token outputs:result = "any" ( docs="""The selected value from ifTrue and ifFalse""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGetLookAtRotationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGetLookAtRotation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GetLookAtRotation" ( docs="""Computes the rotation angles to align a forward direction vector to a direction vector formed by starting at 'start' and pointing at 'target'. The forward vector is the 'default' orientation of the asset being rotated, usually +X or +Z""" ) { token node:type = "omni.graph.nodes.GetLookAtRotation" int node:typeVersion = 1 # 3 attributes custom double3 inputs:forward = (0.0, 0.0, 1.0) ( docs="""The direction vector to be aligned with the look vector""" ) custom double3 inputs:start = (0.0, 0.0, 0.0) ( docs="""The location to look from""" ) custom double3 inputs:target = (0.0, 0.0, 0.0) ( docs="""The location to look at""" ) # 2 attributes custom quatd outputs:orientation ( docs="""The orientation quaternion equivalent to outputs:rotateXYZ""" ) custom double3 outputs:rotateXYZ ( docs="""The rotation vector [X/Pitch, Y/Yaw, Z/Roll]""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTokenTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantToken.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantToken" ( docs="""Holds a token value, which is a 64-bit value representing an interned string""" ) { token node:type = "omni.graph.nodes.ConstantToken" int node:typeVersion = 1 # 1 attribute custom token inputs:value = "" ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayIndexTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayIndex.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayIndex" ( docs="""Copies an element of an input array into an output""" ) { token node:type = "omni.graph.nodes.ArrayIndex" int node:typeVersion = 1 # 2 attributes custom token inputs:array ( docs="""The array to be indexed""" ) custom int inputs:index = 0 ( docs="""The index into the array, a negative value indexes from the end of the array""" ) # 1 attribute custom token outputs:value ( docs="""The value from the array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnTranslateToTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnTranslateToTarget.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_TranslateToTarget" ( docs="""This node smoothly translates a prim object to a target prim object given a speed and easing factor. At the end of the maneuver, the source prim will have the same translation as the target prim""" ) { token node:type = "omni.graph.nodes.TranslateToTarget" int node:typeVersion = 1 # 10 attributes custom uint inputs:execIn ( docs="""The input execution""" ) custom float inputs:exponent = 2.0 ( docs="""The blend exponent, which is the degree of the ease curve (1 = linear, 2 = quadratic, 3 = cubic, etc). """ ) custom rel inputs:sourcePrim ( docs="""The source prim to be transformed""" ) custom string inputs:sourcePrimPath ( docs="""The source prim to be transformed, used when 'useSourcePath' is true""" ) custom double inputs:speed = 1.0 ( docs="""The peak speed of approach (Units / Second)""" ) custom uint inputs:stop ( docs="""Stops the maneuver""" ) custom rel inputs:targetPrim ( docs="""The destination prim. The target's translation will be matched by the sourcePrim""" ) custom string inputs:targetPrimPath ( docs="""The destination prim. The target's translation will be matched by the sourcePrim, used when 'useTargetPath' is true""" ) custom bool inputs:useSourcePath = false ( docs="""When true, the 'sourcePrimPath' attribute is used, otherwise it will read the connection at the 'sourcePrim' attribute""" ) custom bool inputs:useTargetPath = false ( docs="""When true, the 'targetPrimPath' attribute is used, otherwise it will read the connection at the 'targetPrim' attribute""" ) # 1 attribute custom uint outputs:finished ( docs="""The output execution, sent one the maneuver is completed""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnDeformedPointsToHydraTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnDeformedPointsToHydra.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_DeformedPointsToHydra" ( docs="""Copy deformed points into rpresource and send to hydra""" ) { token node:type = "omni.graph.nodes.DeformedPointsToHydra" int node:typeVersion = 1 # 5 attributes custom float3[] inputs:points = [] ( docs="""Points attribute input. Points and a prim path may be supplied directly as an alternative to a bundle input.""" ) custom token inputs:primPath = "" ( docs="""Prim path input. Points and a prim path may be supplied directly as an alternative to a bundle input.""" ) custom bool inputs:sendToHydra = false ( docs="""send to hydra""" ) custom uint64 inputs:stream = 0 ( docs="""Pointer to the CUDA Stream""" ) custom bool inputs:verbose = false ( docs="""verbose printing""" ) # 1 attribute custom bool outputs:reload = false ( docs="""Force RpResource reload""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnGraphTargetTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnGraphTarget.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_GraphTarget" ( docs="""Access the target prim the graph is being executed on. If the graph is executing itself, this will output the prim path of the graph. Otherwise the graph is being executed via instancing, then this will output the prim path of the target instance.""" ) { token node:type = "omni.graph.nodes.GraphTarget" int node:typeVersion = 1 # 1 attribute custom token inputs:targetPath = "" ( docs="""Deprecated. Do not use.""" ) # 1 attribute custom token outputs:primPath ( docs="""The target prim path""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantUCharTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantUChar.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantUChar" ( docs="""Holds an 8-bit unsigned character value""" ) { token node:type = "omni.graph.nodes.ConstantUChar" int node:typeVersion = 1 # 1 attribute custom uchar inputs:value = 0 ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantTexCoord2fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantTexCoord2f.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantTexCoord2f" ( docs="""Holds a 2D uv texture coordinate.""" ) { token node:type = "omni.graph.nodes.ConstantTexCoord2f" int node:typeVersion = 1 # 1 attribute custom texCoord2f inputs:value = (0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnSetMatrix4RotationTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnSetMatrix4Rotation.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_SetMatrix4Rotation" ( docs="""Sets the rotation of the given matrix4d value which represents a linear transformation. Does not modify the translation (row 3) of the matrix.""" ) { token node:type = "omni.graph.nodes.SetMatrix4Rotation" int node:typeVersion = 1 # 3 attributes custom token inputs:fixedRotationAxis = "Y" ( docs="""The axis of the given rotation""" ) custom token inputs:matrix ( docs="""The matrix to be modified""" ) custom token inputs:rotationAngle ( docs="""The rotation in degrees that the matrix will apply about the given rotationAxis.""" ) # 1 attribute custom token outputs:matrix ( docs="""The updated matrix""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnReadStageSelectionTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnReadStageSelection.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ReadStageSelection" ( docs="""Outputs the current stage selection as a list of paths""" ) { token node:type = "omni.graph.nodes.ReadStageSelection" int node:typeVersion = 1 # 1 attribute custom token[] outputs:selectedPrims ( docs="""The currently selected path(s)""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantHalf4Template.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantHalf4.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantHalf4" ( docs="""Holds a 4-component half constant.""" ) { token node:type = "omni.graph.nodes.ConstantHalf4" int node:typeVersion = 1 # 1 attribute custom half4 inputs:value = (0.0, 0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstructArrayTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstructArray.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstructArray" ( docs="""Makes an output array attribute from input values, in the order of the inputs. If 'arraySize' is less than the number of input elements, the top 'arraySize' elements will be used. If 'arraySize' is greater than the number of input elements, the last input element will be repeated to fill the remaining space.""" ) { token node:type = "omni.graph.nodes.ConstructArray" int node:typeVersion = 1 # 3 attributes custom int inputs:arraySize = 0 ( docs="""The size of the array to create""" ) custom token inputs:arrayType = "auto" ( docs="""The type of the array ('auto' infers the type from the first connected and resolved input)""" ) custom token inputs:input0 = "any" ( docs="""Input array element""" ) # 1 attribute custom token outputs:array = "any" ( docs="""The array of copied values of inputs in the given order""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnConstantPoint3fTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnConstantPoint3f.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ConstantPoint3f" ( docs="""Holds a 3-component float constant.""" ) { token node:type = "omni.graph.nodes.ConstantPoint3f" int node:typeVersion = 1 # 1 attribute custom point3f inputs:value = (0.0, 0.0, 0.0) ( docs="""The constant value""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnWritePrimTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnWritePrim.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_WritePrim" ( docs="""Exposes attributes for a single Prim on the USD stage as inputs to this node. When this node computes it writes any of these connected inputs to the target Prim. Any inputs which are not connected will not be written.""" ) { token node:type = "omni.graph.nodes.WritePrim" int node:typeVersion = 1 # 3 attributes custom uint inputs:execIn ( docs="""The input execution port""" ) custom rel inputs:prim ( docs="""The prim to be written to""" ) custom bool inputs:usdWriteBack = true ( docs="""Whether or not the value should be written back to USD, or kept a Fabric only value""" ) # 1 attribute custom uint outputs:execOut ( docs="""The output execution port""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnAnyZeroTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnAnyZero.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_AnyZero" ( docs="""Outputs a boolean indicating if any of the input values are zero within a specified tolerance.""" ) { token node:type = "omni.graph.nodes.AnyZero" int node:typeVersion = 1 # 2 attributes custom double inputs:tolerance = 0.0 ( docs="""How close the value must be to 0 to be considered "zero".""" ) custom token inputs:value ( docs="""Value(s) to check for zero.""" ) # 1 attribute custom bool outputs:result ( docs="""If 'value' is a scalar then 'result' will be true if 'value' is zero. If 'value' is non-scalar (array, tuple, matrix, etc) then 'result' will be true if any of its elements are zero. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if 'value' is [3, 0, 1] then 'result' will be true because the second element is zero. But if 'value' is [[3, 0, 1], [-5, 4, 17]] then 'result' will be false because neither of the two vectors is fully zero.""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnArrayInsertValueTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnArrayInsertValue.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ArrayInsertValue" ( docs="""Inserts an element at the given index. The indexing is zero-based, so 0 adds an element to the front of the array and index = Length inserts at the end of the array. The index will be clamped to the range (0, Length), so an index of -1 will add to the front, and an index larger than the array size will append to the end.""" ) { token node:type = "omni.graph.nodes.ArrayInsertValue" int node:typeVersion = 1 # 3 attributes custom token inputs:array ( docs="""The array to be modified""" ) custom int inputs:index = 0 ( docs="""The array index to insert the value, which is clamped to the valid range""" ) custom token inputs:value ( docs="""The value to be inserted""" ) # 1 attribute custom token outputs:array ( docs="""The modified array""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnCurveTubePositionsTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnCurveTubePositions.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_CurveTubePositions" ( docs="""Generate tube positions from a curve description""" ) { token node:type = "omni.graph.nodes.CurveTubePositions" int node:typeVersion = 1 # 8 attributes custom int[] inputs:cols = [] ( docs="""Columns of the tubes""" ) custom float3[] inputs:curvePoints = [] ( docs="""Points on the curve to be framed""" ) custom int[] inputs:curveVertexCounts = [] ( docs="""Vertex counts for the curve points""" ) custom int[] inputs:curveVertexStarts = [] ( docs="""Vertex starting points""" ) custom float3[] inputs:out = [] ( docs="""Out vector directions on the tube""" ) custom int[] inputs:tubePointStarts = [] ( docs="""Tube starting point index values""" ) custom float3[] inputs:up = [] ( docs="""Up vectors on the tube""" ) custom float[] inputs:width = [] ( docs="""Width of tube positions""" ) # 1 attribute custom float3[] outputs:points ( docs="""Points on the tube""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnBundleInspectorTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnBundleInspector.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_BundleInspector" ( docs="""This node creates independent outputs containing information about the contents of a bundle attribute. It can be used for testing or debugging what is inside a bundle as it flows through the graph. The bundle is inspected recursively, so any bundles inside of the main bundle have their contents added to the output as well. The bundle contents can be printed when the node evaluates, and it passes the input straight through unchanged so you can insert this node between two nodes to inspect the data flowing through the graph.""" ) { token node:type = "omni.graph.nodes.BundleInspector" int node:typeVersion = 2 # 2 attributes custom rel inputs:bundle ( docs="""The attribute bundle to be inspected""" ) custom bool inputs:print = false ( docs="""Setting to true prints the contents of the bundle when the node evaluates""" ) # 10 attributes custom int[] outputs:arrayDepths ( docs="""List of the array depths of attributes present in the bundle""" ) custom uint64 outputs:attributeCount ( docs="""Number of attributes present in the bundle. Every other output is an array that should have this number of elements in it.""" ) def Output "outputs_bundle" ( docs="""The attribute bundle passed through as-is from the input bundle""" ) { } custom uint64 outputs:childCount ( docs="""Number of child bundles present in the bundle.""" ) custom uint64 outputs:count ( docs="""Number of attributes present in the bundle. Every other output is an array that should have this number of elements in it.""" ) custom token[] outputs:names ( docs="""List of the names of attributes present in the bundle""" ) custom token[] outputs:roles ( docs="""List of the names of the roles of attributes present in the bundle""" ) custom int[] outputs:tupleCounts ( docs="""List of the tuple counts of attributes present in the bundle""" ) custom token[] outputs:types ( docs="""List of the types of attributes present in the bundle""" ) custom token[] outputs:values ( docs="""List of the bundled attribute values, converted to token format""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnStartsWithTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnStartsWith.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_StartsWith" ( docs="""Determines if a string starts with a given string value""" ) { token node:type = "omni.graph.nodes.StartsWith" int node:typeVersion = 1 # 2 attributes custom string inputs:prefix = "" ( docs="""The prefix to test""" ) custom string inputs:value = "" ( docs="""The string to check""" ) # 1 attribute custom bool outputs:isPrefix ( docs="""True if 'value' starts with 'prefix'""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/ogn/tests/usd/OgnToTokenTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnToToken.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_nodes_ToToken" ( docs="""Converts the given input to a string equivalent and provides the Token value""" ) { token node:type = "omni.graph.nodes.ToToken" int node:typeVersion = 1 # 1 attribute custom token inputs:value = "any" ( docs="""The value to be converted to a token""" ) # 1 attribute custom token outputs:converted ( docs="""Stringified output as a Token""" ) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/extension.py
"""Support required by the Carbonite extension loader - no visible API exists.""" from contextlib import suppress import omni.ext from omni.graph.nodes.bindings._omni_graph_nodes import acquire_interface as _acquire_interface from omni.graph.nodes.bindings._omni_graph_nodes import release_interface as _release_interface __all__ = [] """This module has no public API""" class _PublicExtension(omni.ext.IExt): """Object that tracks the lifetime of the Python part of the extension loading""" def __init__(self): super().__init__() self.__interface = None with suppress(ImportError): import omni.kit.app # noqa: PLW0621 app = omni.kit.app.get_app() manager = app.get_extension_manager() # This is a bit of a hack to make the template directory visible to the OmniGraph UI extension # if it happens to already be enabled. The "hack" part is that this logic really should be in # omni.graph.ui, but it would be much more complicated there, requiring management of extensions # that both do and do not have dependencies on omni.graph.ui. if manager.is_extension_enabled("omni.graph.ui"): import omni.graph.ui # noqa: PLW0621 omni.graph.ui.ComputeNodeWidget.get_instance().add_template_path(__file__) def on_startup(self): """Set up initial conditions for the Python part of the extension""" self.__interface = _acquire_interface() def on_shutdown(self): """Shutting down this part of the extension prepares it for hot reload""" if self.__interface is not None: _release_interface(self.__interface) self.__interface = None
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/templates/template_omni.graph.nodes.ConstructArray.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # from pathlib import Path import omni.graph.core as og import omni.ui as ui from omni.kit.property.usd.custom_layout_helper import CustomLayoutFrame, CustomLayoutGroup, CustomLayoutProperty from omni.kit.window.property.templates import HORIZONTAL_SPACING class CustomLayout: def __init__(self, compute_node_widget): self.enable = True self.compute_node_widget = compute_node_widget self.controller = og.Controller() self.add_button = None self.remove_button = None self.node_prim_path = self.compute_node_widget._payload[-1] self.node = self.controller.node(self.node_prim_path) def _retrieve_existing_inputs(self): # Retrieve all existing attributes of the form "inputs:input{num}" # Also find the largest suffix among all such attributes # Returned largest suffix = -1 if there are no such attributes input_attribs = [attrib for attrib in self.node.get_attributes() if attrib.get_name()[:12] == "inputs:input"] largest_suffix = -1 for attrib in input_attribs: largest_suffix = max(largest_suffix, int(attrib.get_name()[12:])) return (input_attribs, largest_suffix) def _on_click_add(self): (_, largest_suffix) = self._retrieve_existing_inputs() prev_attrib = self.node.get_attribute(f"inputs:input{largest_suffix}") self.controller.create_attribute( self.node, f"inputs:input{largest_suffix + 1}", "any", og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, None, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_ANY, ).set_resolved_type(prev_attrib.get_resolved_type()) # Bump the array size if it can't accomodate the new input. array_size_attr = self.node.get_attribute("inputs:arraySize") array_size = array_size_attr.get() if array_size <= largest_suffix: array_size_attr.set(array_size + 1) self.remove_button.enabled = True self.compute_node_widget.rebuild_window() def _on_click_remove(self): (input_attribs, largest_suffix) = self._retrieve_existing_inputs() if not input_attribs: return attrib_to_remove = self.node.get_attribute(f"inputs:input{largest_suffix}") self.controller.remove_attribute(attrib_to_remove) self.remove_button.enabled = len(input_attribs) > 2 self.compute_node_widget.rebuild_window() def _controls_build_fn(self, *args): (input_attribs, _) = self._retrieve_existing_inputs() icons_path = Path(__file__).absolute().parent.parent.parent.parent.parent.parent.joinpath("icons") with ui.HStack(height=0, spacing=HORIZONTAL_SPACING): ui.Spacer() self.add_button = ui.Button( image_url=f"{icons_path.joinpath('add.svg')}", width=22, height=22, style={"Button": {"background_color": 0x1F2124}}, clicked_fn=self._on_click_add, tooltip_fn=lambda: ui.Label("Add New Input"), ) self.remove_button = ui.Button( image_url=f"{icons_path.joinpath('remove.svg')}", width=22, height=22, style={"Button": {"background_color": 0x1F2124}}, enabled=(len(input_attribs) > 1), clicked_fn=self._on_click_remove, tooltip_fn=lambda: ui.Label("Remove Input"), ) def apply(self, props): # Called by compute_node_widget to apply UI when selection changes def find_prop(name): return next((p for p in props if p.prop_name == name), None) frame = CustomLayoutFrame(hide_extra=True) (input_attribs, _) = self._retrieve_existing_inputs() with frame: with CustomLayoutGroup("Inputs"): prop = find_prop("inputs:arraySize") if prop is not None: CustomLayoutProperty(prop.prop_name) prop = find_prop("inputs:arrayType") if prop is not None: CustomLayoutProperty(prop.prop_name) for attrib in input_attribs: prop = find_prop(attrib.get_name()) if prop is not None: CustomLayoutProperty(prop.prop_name) CustomLayoutProperty(None, None, build_fn=self._controls_build_fn) prop = find_prop("outputs:array") if prop is not None: with CustomLayoutGroup("Outputs"): CustomLayoutProperty(prop.prop_name) return frame.apply(props)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/templates/template_omni.graph.nodes.WritePrimAttribute.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # import omni.graph.ui as ogui class CustomLayout(ogui.PrimAttributeCustomLayoutBase): _value_is_output = False
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/templates/template_omni.graph.core.WriteVariable.py
from omni.graph.ui.scripts.graph_variable_custom_layout import GraphVariableCustomLayout class CustomLayout(GraphVariableCustomLayout): _value_is_output = False
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/templates/template_omni.graph.nodes.ReadPrimAttribute.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # import omni.graph.ui as ogui class CustomLayout(ogui.PrimAttributeCustomLayoutBase): _value_is_output = True
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/_impl/templates/template_omni.graph.core.ReadVariable.py
from omni.graph.ui.scripts.graph_variable_custom_layout import GraphVariableCustomLayout class CustomLayout(GraphVariableCustomLayout): _value_is_output = True
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/scripts/variant_utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. import re from typing import Any, Optional import omni.graph.core as og import omni.ui as ui from omni.kit.property.usd.usd_attribute_widget import UsdPropertyUiEntry from usdrt import Sdf, Usd def print_widget_tree(widget: ui.Widget, level: int = 0): # Prints the widget tree to the console for child in ui.Inspector.get_children(widget): print_widget_tree(child, level + 1) def get_descendants(widget: ui.Widget): # Returns a list of all descendants of the given widget kids = [] local_kids = ui.Inspector.get_children(widget) kids.extend(local_kids) for k in local_kids: child_kids = get_descendants(k) kids.extend(child_kids) return kids def get_attr_value(prim: Usd.Prim, attr_name: str) -> Any: # Returns the value of the given attribute from usdrt if prim: attr = prim.GetAttribute(attr_name) if attr: return og.Controller().get(attribute=prim.GetAttribute(attr_name)) return False def get_attr_has_connections(prim: Usd.Prim, attr_name: str) -> bool: # Returns True if the attribute has authored connections if prim: attr = prim.GetAttribute(attr_name) if attr: return attr.HasAuthoredConnections() return False def get_target_prim(stage: Usd.Stage, node_prim_path: Sdf.Path) -> Optional[Usd.Prim]: # Return the target prim if it exists depending on the value of the usePath input attribute. # If usePath is True, the target prim is the prim at the path specified by the primPath input attribute. # If usePath is False, the target prim is the first target of the prim relationship. prim = stage.GetPrimAtPath(node_prim_path) if prim: if get_attr_value(prim, "inputs:usePath"): prim_path = get_attr_value(prim, "inputs:primPath") if prim_path is not None: return stage.GetPrimAtPath(prim_path) else: rel = prim.GetRelationship("inputs:prim") if rel.IsValid(): targets = rel.GetTargets() if targets: return stage.GetPrimAtPath(targets[0]) return None def pretty_name(name: str) -> str: # Returns a pretty name for the given property name = name.split(":")[-1] name = name[0].upper() + name[1:] name = re.sub(r"([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", r"\1 ", name) return name def override_display_name(prop: UsdPropertyUiEntry): # Overrides the display name of the given property with a consistent format prop_name = pretty_name(prop.prop_name) prop.override_display_name(prop_name)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/scripts/ui_utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # import string from pathlib import Path from typing import Callable import omni.graph.core as og import omni.ui as ui from omni.kit.window.property.templates import HORIZONTAL_SPACING __string_cache = [] def _get_attribute_ui_name(name: str) -> str: """ Takes a raw name and formats it for use as the corresponding nice name in the UI. o (For attribute names) Standard namespaces ('inputs', 'outputs', 'state') are stripped off the front. o (For attribute names) Any remaining namespaces are converted to words within the name. o Underscores are converted to spaces. o Mixed-case words are broken into separate words (e.g. 'primaryRGBColor' -> 'primary RGB Color'). o Words which are all lower-case are capitalized (e.g. 'primary' -> 'Primary'). """ # Replace '_' with ':' so they will be split name.replace("_", ":") # Split out namespaces words = name.split(":") # If the first namespace is one of our standard ones, get rid of it. if len(words) > 1 and words[0] in ("inputs", "outputs", "state"): words.pop(0) words_out = [] for word in words: # if word is all lower or all upper append it if word.islower() or word.isupper(): words_out.append(word) continue # Mixed case. # Lower-case followed by upper-case breaks between them. E.g. 'usdPrim' -> 'usd Prim' # Upper-case followed by lower-case breaks before them. E.g: 'USDPrim' -> 'USD Prim' # Combined example: abcDEFgHi -> abc DE Fg Hi sub_word = "" uppers = "" for c in word: if c.isupper(): if not uppers and sub_word: words_out.append(sub_word) sub_word = "" uppers += c else: if len(uppers) > 1: words_out.append(uppers[:-1]) sub_word += uppers[-1:] + c uppers = "" if sub_word: words_out.append(sub_word) elif uppers: words_out.append(uppers) # Title-case any words which are all lower case. return " ".join([word.title() if word.islower() else word for word in words_out]) def _get_string_permutation(n: int) -> str: """ Gets the name of the attribute at the given index, assuming the name is n-th permutation of the letters of the alphabet, starting from single characters. Args: n: the index of the permutation Return: str: the n-th string in lexicographical order. """ max_index = len(__string_cache) if max_index <= n: for i in range(max_index, n + 1): __string_cache.append(_convert_index_to_string_permutation(i + 1)) return __string_cache[n] def _convert_index_to_string_permutation(index: int) -> str: """Converts a 1-based index to an alphabetical string which is a permutation of the letters of the alphabet. For example: 1 = a 2 = b ... 26 = z 27 = aa 28 = ab ... Args: index: The number to convert to a string. Represents the index in the lexicographical sequence of generated strings. Returns: str: index'th string in lexicographic order. """ if index <= 0: return "" alphabet = list(string.ascii_lowercase) size = len(alphabet) result = "" while index > 0: r = index % size # noqa: S001 if r == 0: r = size index = (int)((index - r) / size) result += alphabet[r - 1] return result[::-1] def _retrieve_existing_numeric_dynamic_inputs(node: og.Node) -> tuple[list[og.Attribute], int]: """ Retrieves the node inputs which follow the 'inputs:input{num}' naming convention. Args: node: the node reflected in the property panel Return: ([og.Attribute], int): Tuple with the list of input attributes and the largest input index. """ # Retrieve all existing attributes of the form "inputs:input{num}" # Also find the largest suffix among all such attributes # Returned largest suffix = -1 if there are no such attributes input_attribs = [attrib for attrib in node.get_attributes() if attrib.get_name()[:12] == "inputs:input"] largest_suffix = -1 if not input_attribs: return ([], largest_suffix) for attrib in input_attribs: largest_suffix = max(largest_suffix, int(attrib.get_name()[12:])) return (input_attribs, largest_suffix) def _retrieve_existing_alphabetic_dynamic_inputs(node: og.Node) -> tuple[list[og.Attribute], int]: """ Retrieves the node inputs which follow the 'inputs:abc' naming convention. The sequence "abc" is a permutation of the letters of the alphabet, generated sequentially starting with single characters. Args: node: the node reflected in the property panel Return: ([og.Attribute], int): Tuple with the list of input attributes and the largest input index. """ # Retrieve all existing attributes of the form "inputs:abc # The sequence "abc" represents the n-th permutation of the letters of the alphabet, # starting from single characters input_attribs = [attrib for attrib in node.get_attributes() if attrib.get_name()[:7] == "inputs:"] if not input_attribs: return ([], -1) largest_index = len(input_attribs) - 1 return (input_attribs, largest_index) def _retrieve_existing_alphabetic_dynamic_outputs(node: og.Node) -> tuple[list[og.Attribute], int]: """ Retrieves the node outputs which follow the 'outputs:abc' naming convention. The sequence "abc" is a permutation of the letters of the alphabet, generated sequentially starting with single characters. Args: node: the node reflected in the property panel Return: ([og.Attribute], int): Tuple with the list of outputs attributes and the largest output index. """ # Retrieve all existing attributes of the form "outputs:abc # The sequence "abc" represents the n-th permutation of the letters of the alphabet, # starting from single characters output_attribs = [attrib for attrib in node.get_attributes() if attrib.get_name()[:8] == "outputs:"] if not output_attribs: return ([], -1) largest_index = len(output_attribs) - 1 return (output_attribs, largest_index) def _build_add_remove_buttons( layout, on_add_fn: Callable, on_remove_fn: Callable, on_remove_enabled_fn: Callable[[], bool] ): """ Creates the add (+) / remove (-) buttons for the property panel list control. Args: layout: the property panel layout instance on_add_fn: callback invoked when the add button is pushed on_remove_fn: callback invoked when the remove button is pushed on_remove_enabled_fn: callback invoked when creating the remove button to check if the button is enabled or not """ icons_path = Path(__file__).absolute().parent.parent.parent.parent.parent.joinpath("icons") with ui.HStack(height=0, spacing=HORIZONTAL_SPACING): ui.Spacer() layout.add_button = ui.Button( image_url=f"{icons_path.joinpath('add.svg')}", width=22, height=22, style={"Button": {"background_color": 0x1F2124}}, clicked_fn=on_add_fn, tooltip_fn=lambda: ui.Label("Add New Input"), ) layout.remove_button = ui.Button( image_url=f"{icons_path.joinpath('remove.svg')}", width=22, height=22, style={"Button": {"background_color": 0x1F2124}}, enabled=on_remove_enabled_fn(), clicked_fn=on_remove_fn, tooltip_fn=lambda: ui.Label("Remove Input"), )
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/scripts/layer_identifier_widget_builder.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # from enum import Enum, auto from typing import Dict, List, Mapping, Type, Union import carb.events import omni.client.utils as clientutils import omni.kit.usd.layers as layers import omni.ui as ui import omni.usd from omni.graph.ui import OmniGraphPropertiesWidgetBuilder, OmniGraphTfTokenAttributeModel from omni.kit.window.property.templates import HORIZONTAL_SPACING from pxr import Pcp, Sdf, Usd CURRENT_AUTHORING_LAYER_TAG = "<Current Authoring Layer>" SESSION_LAYER_TAG = "<Session Layer>" ROOT_LAYER_TAG = "<Root Layer>" INVALID_LAYER_TAG = "<Invalid Layer>" def get_strongest_opinion_layer_from_node(node: Pcp.NodeRef, attr_name: str): layer_stack = node.layerStack spec_path = node.path.AppendProperty(attr_name) for layer in layer_stack.layers: attr_spec = layer.GetAttributeAtPath(spec_path) if attr_spec and attr_spec.HasInfo("default"): return layer for child_node in node.children: layer = get_strongest_opinion_layer_from_node(child_node, attr_name) if layer: return layer return None def get_strongest_opinion_layer(stage: Usd.Stage, prim_path: Union[Sdf.Path, str], attr_name: str): prim = stage.GetPrimAtPath(prim_path) prim_index = prim.GetPrimIndex() return get_strongest_opinion_layer_from_node(prim_index.rootNode, attr_name) class LayerType(Enum): CURRENT_AUTHORING_LAYER = auto() SESSION_LAYER = auto() ROOT_LAYER = auto() OTHER = auto() INVALID = auto() class LayerItem(ui.AbstractItem): def __init__(self, layer: Union[Sdf.Layer, str], stage: Usd.Stage): super().__init__() self.layer = layer if layer is None: self.token = "" self.model = ui.SimpleStringModel(CURRENT_AUTHORING_LAYER_TAG) self.layer_type = LayerType.CURRENT_AUTHORING_LAYER else: prefix = "" suffix = "" if isinstance(layer, Sdf.Layer): if layer == stage.GetRootLayer(): self.layer_type = LayerType.ROOT_LAYER self.token = ROOT_LAYER_TAG suffix = f" {layer.identifier}" elif layer == stage.GetSessionLayer(): self.layer_type = LayerType.SESSION_LAYER self.token = SESSION_LAYER_TAG suffix = f" {layer.identifier}" else: self.layer_type = LayerType.OTHER # make the layer identifier relative to CURRENT EDIT TARGET layer self.token = clientutils.make_relative_url_if_possible( stage.GetEditTarget().GetLayer().realPath, layer.identifier ) elif isinstance(layer, str): self.token = layer self.layer_type = LayerType.INVALID prefix = f"{INVALID_LAYER_TAG} " self.model = ui.SimpleStringModel(prefix + self.token + suffix) class LayerModel(OmniGraphTfTokenAttributeModel): def __init__(self, stage: Usd.Stage, attribute_paths: List[Sdf.Path], self_refresh: bool, metadata: dict): super().__init__(stage, attribute_paths, self_refresh, metadata) usd_context = omni.usd.get_context_from_stage(stage) self._layers = layers.get_layers(usd_context) self._layers_event_subscription = self._layers.get_event_stream().create_subscription_to_pop( self._on_layer_events, name="WritePrims Node Layers Model" ) def clean(self): self._layers_event_subscription = None super().clean() def _update_allowed_token(self, token_item=LayerItem): self._allowed_tokens = [ # noqa PLW0201 LayerItem(None, self._stage) ] # empty entry, meaning do not change target layer current_value_in_list = self._allowed_tokens[-1].token == self._value layer_stack = self._stage.GetLayerStack() for layer in layer_stack: self._allowed_tokens.append(LayerItem(layer, self._stage)) if not current_value_in_list and self._is_value_equal_url(self._allowed_tokens[-1]): current_value_in_list = True if not current_value_in_list: layer = self._get_value_strongest_layer() self._allowed_tokens.append( LayerItem(clientutils.make_absolute_url_if_possible(layer.realPath, self._value), self._stage) ) def _on_layer_events(self, event: carb.events.IEvent): payload = layers.get_layer_event_payload(event) if not payload: return if payload.event_type == layers.LayerEventType.SUBLAYERS_CHANGED: self._update_value(force=True) self._item_changed(None) def _update_index(self): index = -1 for i, token in enumerate(self._allowed_tokens): if self._is_value_equal_url(token): index = i break return index def _is_value_equal_url(self, layer_item: LayerItem) -> bool: if layer_item.layer_type == LayerType.CURRENT_AUTHORING_LAYER: return self._value == "" if layer_item.layer_type == LayerType.SESSION_LAYER: return self._value == SESSION_LAYER_TAG if layer_item.layer_type == LayerType.ROOT_LAYER: return self._value == ROOT_LAYER_TAG identifier = layer_item.layer if layer_item.layer_type == LayerType.INVALID else layer_item.layer.identifier layer = self._get_value_strongest_layer() return clientutils.make_absolute_url_if_possible( self._stage.GetEditTarget().GetLayer().realPath, identifier ) == clientutils.make_absolute_url_if_possible(layer.realPath, self._value) def _get_value_strongest_layer(self): attributes = self._get_attributes() # only process the last entry for now attr_path = attributes[-1].GetPath() prim_path = attr_path.GetPrimPath() attr_name = attr_path.name return get_strongest_opinion_layer(attributes[-1].GetStage(), prim_path, attr_name) class LayerIdentifierWidgetBuilder: @classmethod def build( cls, stage: Usd.Stage, attr_name: str, metadata: Mapping, property_type: Type, prim_paths: List[Sdf.Path], additional_label_kwargs: Dict = None, additional_widget_kwargs: Dict = None, ): with ui.HStack(spacing=HORIZONTAL_SPACING): label_kwargs = {} if additional_label_kwargs: label_kwargs.update(additional_label_kwargs) label = OmniGraphPropertiesWidgetBuilder.create_label(attr_name, metadata, label_kwargs) model = LayerModel(stage, [path.AppendProperty(attr_name) for path in prim_paths], False, metadata) widget_kwargs = {"name": "choices"} if additional_widget_kwargs: widget_kwargs.update(additional_widget_kwargs) with ui.ZStack(): value_widget = ui.ComboBox(model, **widget_kwargs) mixed_overlay = OmniGraphPropertiesWidgetBuilder.create_mixed_text_overlay() OmniGraphPropertiesWidgetBuilder.create_control_state( model=model, value_widget=value_widget, mixed_overlay=mixed_overlay, **widget_kwargs, label=label ) return model
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/scripts/variants.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. from functools import partial from typing import List, Optional import omni.graph.core as og import omni.ui as ui from omni.graph.ui import OmniGraphPropertiesWidgetBuilder from omni.graph.ui._impl.omnigraph_attribute_models import OmniGraphAttributeModel from omni.kit.property.usd.custom_layout_helper import CustomLayoutFrame, CustomLayoutGroup, CustomLayoutProperty from omni.kit.property.usd.usd_attribute_model import TfTokenAttributeModel from omni.kit.property.usd.usd_attribute_widget import UsdPropertyUiEntry from omni.kit.window.property.templates import HORIZONTAL_SPACING, LABEL_WIDTH from usdrt import Sdf, Usd from .variant_utils import ( # noqa PLE0402 get_attr_has_connections, get_attr_value, get_descendants, get_target_prim, override_display_name, pretty_name, ) ATTRIB_LABEL_STYLE = {"alignment": ui.Alignment.RIGHT_TOP} class VariantTokenModel(TfTokenAttributeModel): """Model for selecting the variant set name. We modify the list to show variant sets which are available on the target prim.""" class AllowedTokenItem(ui.AbstractItem): def __init__(self, item, label): """ Args: item: the variant set name token to be shown label: the label to show in the drop-down """ super().__init__() self.token = item self.model = ui.SimpleStringModel(label) def __init__( self, stage: Usd.Stage, attribute_paths: List[Sdf.Path], self_refresh: bool, metadata: dict, node_prim_path: Sdf.Path, ): """ Args: stage: The current stage attribute_paths: The list of full attribute paths self_refresh: ignored metadata: pass-through metadata for model node_prim_path: The path of the compute node """ self._stage = stage self._node_prim_path = node_prim_path self._target_prim = None super().__init__(stage, attribute_paths, self_refresh, metadata) def _get_allowed_tokens(self, _): # Override of TfTokenAttributeModel to specialize what tokens are to be shown # Returns the attributes we want to let the user select from prim = self._stage.GetPrimAtPath(self._node_prim_path) if not prim: return [] self._target_prim = get_target_prim(self._stage, self._node_prim_path) tokens = self._get_tokens(self._target_prim) current_value = og.Controller().get(attribute=self._get_attributes()[0]) if current_value and current_value not in tokens: tokens.append(current_value) tokens.insert(0, "") return tokens @staticmethod def _item_factory(item): # Construct the item for the model label = item return VariantTokenModel.AllowedTokenItem(item, label) def _update_allowed_token(self, **kwargs): # Override of TfTokenAttributeModel to specialize the model items super()._update_allowed_token(token_item=self._item_factory) def _get_tokens(self, prim: Usd.Prim) -> List[str]: return [] class VariantSetNamesTokenModel(VariantTokenModel): def _get_variant_set_names(self, prim: Usd.Prim) -> List[str]: if prim: variant_sets = prim.GetVariantSets() variant_sets_names = list(variant_sets.GetNames()) return variant_sets_names return [] def _get_tokens(self, prim: Usd.Prim) -> List[str]: return self._get_variant_set_names(prim) class VariantNamesTokenModel(VariantTokenModel): def _get_variant_names(self, prim: Usd.Prim) -> List[str]: node_prim = self._stage.GetPrimAtPath(self._node_prim_path) if node_prim and prim: variant_sets = prim.GetVariantSets() variant_set_name = get_attr_value(node_prim, "inputs:variantSetName") variant_set = variant_sets.GetVariantSet(variant_set_name) variant_sets_names = list(variant_set.GetVariantNames()) return variant_sets_names return [] def _get_tokens(self, prim: Usd.Prim) -> List[str]: return self._get_variant_names(prim) # noinspection PyProtectedMember class CustomVariantLayout: """Custom layout for the variant set and variant name attributes""" def __init__(self, compute_node_widget): self.enable = True self.compute_node_widget = compute_node_widget self.prim_rel_layout = None self.prim_rel_model = None self.variant_set_name_token_model = None self.variant_set_name_string_model = None self.variant_name_token_model = None self.variant_name_string_model = None self.variant_name_a_token_model = None self.variant_name_a_string_model = None self.variant_name_b_token_model = None self.variant_name_b_string_model = None self.variant_set_name_string_layout = None self.variant_set_name_token_layout = None self.variant_name_string_layout = None self.variant_name_token_layout = None self.variant_name_a_string_layout = None self.variant_name_a_token_layout = None self.variant_name_b_string_layout = None self.variant_name_b_token_layout = None def get_node_prim_path(self): node_prim_path = self.compute_node_widget.payload[-1] return node_prim_path @staticmethod def _set_child_string_field_enabled(widget: ui.Widget, enabled: bool): for child in get_descendants(widget): if isinstance(child, ui.StringField): child.enabled = enabled def _get_target_prim(self) -> Usd.Prim: return get_target_prim(self.compute_node_widget.stage, self.get_node_prim_path()) def _get_attr_has_connections(self, attr_name: str) -> bool: stage = self.compute_node_widget.stage node_prim_path = self.get_node_prim_path() prim = stage.GetPrimAtPath(node_prim_path) return get_attr_has_connections(prim, attr_name) def _token_builder(self, ui_prop: UsdPropertyUiEntry): return OmniGraphPropertiesWidgetBuilder._tftoken_builder( # noqa: PLW0212 stage=self.compute_node_widget.stage, attr_name=ui_prop.prop_name, type_name=ui_prop.property_type, metadata=ui_prop.metadata, prim_paths=[self.get_node_prim_path()], additional_label_kwargs={"style": ATTRIB_LABEL_STYLE}, additional_widget_kwargs={"no_allowed_tokens_model_cls": OmniGraphAttributeModel}, ) def _relationship_builder(self, ui_prop: UsdPropertyUiEntry, changed_fn): return OmniGraphPropertiesWidgetBuilder._relationship_builder( # noqa: PLW0212 stage=self.compute_node_widget.stage, attr_name=ui_prop.prop_name, metadata=ui_prop.metadata, prim_paths=[self.get_node_prim_path()], additional_label_kwargs={"style": ATTRIB_LABEL_STYLE}, additional_widget_kwargs={ "on_remove_target": changed_fn, "target_picker_on_add_targets": changed_fn, "targets_limit": 1, }, ) def _bool_builder(self, ui_prop: UsdPropertyUiEntry): return OmniGraphPropertiesWidgetBuilder._bool_builder( # noqa: PLW0212 stage=self.compute_node_widget.stage, attr_name=ui_prop.prop_name, type_name=ui_prop.property_type, metadata=ui_prop.metadata, prim_paths=[self.get_node_prim_path()], additional_label_kwargs={"style": ATTRIB_LABEL_STYLE}, ) def _combo_box_builder(self, ui_prop: UsdPropertyUiEntry, model_cls, changed_fn=None): stage = self.compute_node_widget.stage node_prim_path = self.get_node_prim_path() with ui.HStack(spacing=HORIZONTAL_SPACING): prop_name = pretty_name(ui_prop.prop_name) ui.Label(prop_name, name="label", style=ATTRIB_LABEL_STYLE, width=LABEL_WIDTH) ui.Spacer(width=HORIZONTAL_SPACING) with ui.ZStack(): attr_path = node_prim_path.AppendProperty(ui_prop.prop_name) # Build the token-selection widget when prim is known model = model_cls(stage, [attr_path], False, {}, node_prim_path) ui.ComboBox(model) if changed_fn: model._current_index.add_value_changed_fn(changed_fn) # noqa PLW0212 return model def _prim_rel_build_fn(self, ui_prop: UsdPropertyUiEntry, *_): # Build the relationship input prim widget self.prim_rel_layout = ui.HStack(spacing=0) with self.prim_rel_layout: self.prim_rel_model = self._relationship_builder(ui_prop, self._on_target_prim_rel_changed) def _variant_set_name_build_fn(self, ui_prop: UsdPropertyUiEntry, *_): # Build the VariantSetName widget # Build the simple string input for data-driven variant set name and a ComboBox for when there are # variants and no data-driven variant set name self.variant_set_name_string_layout = ui.HStack(spacing=0) with self.variant_set_name_string_layout: self.variant_set_name_string_model = self._token_builder(ui_prop) self.variant_set_name_token_layout = ui.HStack(spacing=0) with self.variant_set_name_token_layout: self.variant_set_name_token_model = self._combo_box_builder( ui_prop, VariantSetNamesTokenModel, self._on_variant_set_changed ) self._update_variant_set_visibility() def _update_variant_set_visibility(self): # Show the string input if the prim is unknown or if the attribute has connections # otherwise show the token input if self.variant_set_name_string_layout and self.variant_set_name_token_layout: attr_has_connections = self._get_attr_has_connections("inputs:variantSetName") target_prim = self._get_target_prim() use_string = not target_prim or attr_has_connections self.variant_set_name_string_layout.visible = use_string self.variant_set_name_token_layout.visible = not use_string def _update_variant_set_name(self): # Update the variant set name widget visibility when the target prim changes self._update_variant_set_visibility() if self.variant_set_name_token_model: self.variant_set_name_token_model._set_dirty() # noqa: PLW0212 if self.variant_set_name_string_model: self.variant_set_name_string_model._set_dirty() # noqa: PLW0212 # ------------------------------------------------------------------------------------------ def _variant_name_build_fn(self, ui_prop: UsdPropertyUiEntry, *_): # Build the VariantName widget # Build the simple string input for data-driven variant name and a ComboBox for when there are # variants and no data-driven variant name self.variant_name_string_layout = ui.HStack(spacing=0) with self.variant_name_string_layout: self.variant_name_string_model = self._token_builder(ui_prop) self.variant_name_token_layout = ui.HStack(spacing=0) with self.variant_name_token_layout: self.variant_name_token_model = self._combo_box_builder(ui_prop, VariantNamesTokenModel) self._update_variant_name_visibility() def _update_variant_name_visibility(self): # Show the string input if the prim is unknown or if the attribute has connections # otherwise show the token input attr_has_connections = self._get_attr_has_connections("inputs:variantName") target_prim = self._get_target_prim() if self.variant_name_string_layout and self.variant_name_token_layout: use_string = not target_prim or attr_has_connections self.variant_name_string_layout.visible = use_string self.variant_name_token_layout.visible = not use_string def _update_variant_name(self): # Update the variant name widget visibility when the target prim changes self._update_variant_name_visibility() if self.variant_name_token_model: self.variant_name_token_model._set_dirty() # noqa: PLW0212 if self.variant_name_string_model: self.variant_name_string_model._set_dirty() # noqa: PLW0212 # ------------------------------------------------------------------------------------------ def _variant_name_a_build_fn(self, ui_prop: UsdPropertyUiEntry, *_): # Build the VariantName widget # Build the simple string input for data-driven variant name and a ComboBox for when there are # variants and no data-driven variant name self.variant_name_a_string_layout = ui.HStack(spacing=0) with self.variant_name_a_string_layout: self.variant_name_a_string_model = self._token_builder(ui_prop) self.variant_name_a_token_layout = ui.HStack(spacing=0) with self.variant_name_a_token_layout: self.variant_name_a_token_model = self._combo_box_builder(ui_prop, VariantNamesTokenModel) self._update_variant_name_a_visibility() def _update_variant_name_a_visibility(self): # Show the string input if the prim is unknown or if the attribute has connections # otherwise show the token input attr_has_connections = self._get_attr_has_connections("inputs:variantNameA") target_prim = self._get_target_prim() if self.variant_name_a_string_layout and self.variant_name_a_token_layout: use_string = not target_prim or attr_has_connections self.variant_name_a_string_layout.visible = use_string self.variant_name_a_token_layout.visible = not use_string def _update_variant_name_a(self): # Update the variant name widget visibility when the target prim changes self._update_variant_name_a_visibility() if self.variant_name_a_token_model: self.variant_name_a_token_model._set_dirty() # noqa: PLW0212 if self.variant_name_a_string_model: self.variant_name_a_string_model._set_dirty() # noqa: PLW0212 # ------------------------------------------------------------------------------------------ def _variant_name_b_build_fn(self, ui_prop: UsdPropertyUiEntry, *_): # Build the VariantName widget # Build the simple string input for data-driven variant name and a ComboBox for when there are # variants and no data-driven variant name self.variant_name_b_string_layout = ui.HStack(spacing=0) with self.variant_name_b_string_layout: self.variant_name_b_string_model = self._token_builder(ui_prop) self.variant_name_b_token_layout = ui.HStack(spacing=0) with self.variant_name_b_token_layout: self.variant_name_b_token_model = self._combo_box_builder(ui_prop, VariantNamesTokenModel) self._update_variant_name_b_visibility() def _update_variant_name_b_visibility(self): # Show the string input if the prim is unknown or if the attribute has connections # otherwise show the token input attr_has_connections = self._get_attr_has_connections("inputs:variantNameB") target_prim = self._get_target_prim() if self.variant_name_b_string_layout and self.variant_name_b_token_layout: use_string = not target_prim or attr_has_connections self.variant_name_b_string_layout.visible = use_string self.variant_name_b_token_layout.visible = not use_string def _update_variant_name_b(self): # Update the variant name widget visibility when the target prim changes self._update_variant_name_b_visibility() if self.variant_name_b_token_model: self.variant_name_b_token_model._set_dirty() # noqa: PLW0212 if self.variant_name_b_string_model: self.variant_name_b_string_model._set_dirty() # noqa: PLW0212 # ------------------------------------------------------------------------------------------ def _on_target_prim_rel_changed(self, *_): # When the inputs:primRel token changes update the relevant widgets self.prim_rel_model._set_dirty() # noqa: PLW0212 self._update_variant_set_name() self._update_variant_name() self._update_variant_name_a() self._update_variant_name_b() def _on_variant_set_changed(self, _): # When the variantSet changes update the relevant widgets self._update_variant_name() self._update_variant_name_a() self._update_variant_name_b() def apply(self, props): # Apply the property values to the compute node def find_prop(name) -> Optional[UsdPropertyUiEntry]: try: return next((p for p in props if p.prop_name == name)) except StopIteration: return None frame = CustomLayoutFrame(hide_extra=True) with frame: with CustomLayoutGroup("Inputs"): prop_functions = [ ("prim", self._prim_rel_build_fn), ("variantSetName", self._variant_set_name_build_fn), ("variantName", self._variant_name_build_fn), ("variantNameA", self._variant_name_a_build_fn), ("variantNameB", self._variant_name_b_build_fn), ("blendedVariantName", None), ("blend", None), ("setVariant", None), ] for prop_name, build_fn in prop_functions: prop = find_prop(f"inputs:{prop_name}") if prop: override_display_name(prop) CustomLayoutProperty( prop.prop_name, None, build_fn=partial(build_fn, prop) if build_fn else None, ) with CustomLayoutGroup("Outputs"): for attr in ["exists", "success", "variantSetNames", "variantName"]: prop = find_prop(f"outputs:{attr}") if prop: CustomLayoutProperty(prop.prop_name, pretty_name(prop.prop_name)) return frame.apply(props)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_read_prims_dirty_push.py
import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test from pxr import Usd, UsdGeom class TestReadPrimsDirtyPush(ogts.OmniGraphTestCase): """Unit tests for dirty push behavior of the ReadPrimsV2 node in this extension""" async def test_read_prims_dirty_push(self): usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() test_graph_path = "/World/TestGraph" controller = og.Controller() keys = og.Controller.Keys tree = UsdGeom.Xform.Define(stage, "/tree") branch = UsdGeom.Xform.Define(stage, "/tree/branch") leaf = ogts.create_cube(stage, "tree/branch/leaf", (1, 0, 0)) # Set initial values UsdGeom.XformCommonAPI(branch).SetTranslate((0, 0, 0)) leaf.GetAttribute("size").Set(1) (graph, [read_prims_node, _], _, _) = controller.edit( {"graph_path": test_graph_path, "evaluator_name": "dirty_push"}, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("Read.inputs:computeBoundingBox", True), ("Inspector.inputs:print", False), ], }, ) graph_context = graph.get_default_graph_context() bundle = None async def update_bundle(expected_child_count=1): nonlocal bundle await controller.evaluate() container = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(container.valid) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), expected_child_count) bundle = child_bundles[0] if len(child_bundles) == 1 else None # Helpers def assert_bundle_attr(name, expected_value): attr = bundle.get_attribute_by_name(name) if expected_value is None: self.assertFalse(attr.is_valid()) else: actual_value = attr.get() if isinstance(expected_value, list): actual_value = actual_value.tolist() self.assertEqual(actual_value, expected_value) # Observe the branch omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[branch.GetPath()], ) # Initial update await update_bundle() assert_bundle_attr("xformOp:translate", [0, 0, 0]) assert_bundle_attr("bboxMaxCorner", [0.5, 0.5, 0.5]) assert_bundle_attr("worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]) # Change the USD stage on the branch (a tracked prim) UsdGeom.XformCommonAPI(branch).SetTranslate((1, 2, 3)) # The lazy node should compute await update_bundle() # Check the output bundle assert_bundle_attr("xformOp:translate", [1, 2, 3]) assert_bundle_attr("bboxMaxCorner", [1.5, 2.5, 3.5]) assert_bundle_attr("worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 2, 3, 1]) # Change the leaf cube (a descendant of the tracked prim) leaf.GetAttribute("size").Set(2) # The lazy node should compute await update_bundle() assert_bundle_attr("xformOp:translate", [1, 2, 3]) assert_bundle_attr("bboxMaxCorner", [2.0, 3.0, 4.0]) assert_bundle_attr("worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 2, 3, 1]) # Change the tree (an ancestor of the tracked prim) UsdGeom.XformCommonAPI(tree).SetTranslate((-1, -2, -3)) # The lazy node should compute await update_bundle() assert_bundle_attr("xformOp:translate", [1, 2, 3]) assert_bundle_attr("bboxMaxCorner", [1.0, 1.0, 1.0]) assert_bundle_attr("worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]) # Create a new attribute on the tracked prim UsdGeom.XformCommonAPI(branch).SetScale((10, 10, 10)) # The lazy node should compute await update_bundle() assert_bundle_attr("xformOp:translate", [1, 2, 3]) assert_bundle_attr("xformOp:scale", [10, 10, 10]) assert_bundle_attr("bboxMaxCorner", [10.0, 10.0, 10.0]) assert_bundle_attr("worldMatrix", [10, 0, 0, 0, 0, 10, 0, 0, 0, 0, 10, 0, 0, 0, 0, 1]) # Delete the branch stage.RemovePrim(branch.GetPath()) # The lazy node should compute await update_bundle(0) self.assertEqual(bundle, None)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_omnigraph_utility_nodes.py
"""Test the node that inspects attribute bundles""" import omni.graph.core as og import omni.graph.core.tests as ogts import omni.graph.nodes.tests as ognts ROLES = [ "none", "vector", "normal", "point", "color", "texcoord", "quat", "transform", "frame", "timecode", "text", "appliedSchema", "prim", "execution", "matrix", "objectId", ] """Mapping of OGN role name to the AttributeRole index used in Type.h""" MATRIX_ROLES = ["frame", "transform", "matrix"] """Special roles that indicate a matrix type""" BASE_TYPES = [ "none", "bool", "uchar", "int", "uint", "int64", "uint64", "half", "float", "double", "token", ] """Mapping of raw OGN base type name to the BaseDataType index in Type.h""" # ====================================================================== class TestOmniGraphUtilityNodes(ogts.OmniGraphTestCase): """Run a simple unit test that exercises graph functionality""" # ---------------------------------------------------------------------- async def test_attr_type(self): """Test the AttrType node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [attr_type_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: ("AttrTypeNode", "omni.graph.nodes.AttributeType"), keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "AttrTypeNode.inputs:data"), ], }, ) await og.Controller.evaluate() (_, bundle_values) = ognts.get_bundle_with_all_results(str(prim.GetPrimPath())) name_attr = og.Controller.attribute("inputs:attrName", attr_type_node) type_attr = og.Controller.attribute("outputs:baseType", attr_type_node) tuple_count_attr = og.Controller.attribute("outputs:componentCount", attr_type_node) array_depth_attr = og.Controller.attribute("outputs:arrayDepth", attr_type_node) role_attr = og.Controller.attribute("outputs:role", attr_type_node) full_type_attr = og.Controller.attribute("outputs:fullType", attr_type_node) # Test data consisting of the input attrName followed by the expected output values test_data = [["notExisting", -1, -1, -1, -1]] for attribute_name, (type_name, tuple_count, array_depth, role, _) in bundle_values.items(): base_index = BASE_TYPES.index(type_name) role_index = ROLES.index(role) # Matrix types have 2d tuple counts if role_index in MATRIX_ROLES: tuple_count *= tuple_count test_data.append([attribute_name, base_index, tuple_count, array_depth, role_index]) for (name, base_type, tuple_count, array_depth, role) in test_data: og.Controller.set(name_attr, name) await og.Controller.evaluate() full_type = -1 if base_type >= 0: # This is the bitfield computation used in Type.h full_type = base_type + (tuple_count << 8) + (array_depth << 16) + (role << 24) self.assertEqual(base_type, og.Controller.get(type_attr), f"Type of {name}") self.assertEqual(tuple_count, og.Controller.get(tuple_count_attr), f"Tuple Count of {name}") self.assertEqual(array_depth, og.Controller.get(array_depth_attr), f"Array Depth of {name}") self.assertEqual(role, og.Controller.get(role_attr), f"Role of {name}") self.assertEqual(full_type, og.Controller.get(full_type_attr), f"Full type of {name}") # ---------------------------------------------------------------------- async def test_has_attr(self): """Test the HasAttr node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [has_attr_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("HasAttrNode", "omni.graph.nodes.HasAttribute"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [("TestPrimExtract.outputs_primBundle", "HasAttrNode.inputs:data")], }, ) await og.Controller.evaluate() expected_results = ognts.get_bundle_with_all_results(str(prim.GetPrimPath())) # Test data consisting of the input attrName followed by the expected output values test_data = [("notExisting", 0)] for name in expected_results[1].keys(): test_data.append((name, True)) name_attribute = og.Controller.attribute("inputs:attrName", has_attr_node) output_attribute = og.Controller.attribute("outputs:output", has_attr_node) for attribute_name, existence in test_data: og.Controller.set(name_attribute, attribute_name) await og.Controller.evaluate() self.assertEqual(existence, og.Controller.get(output_attribute), f"Has {attribute_name}") # ---------------------------------------------------------------------- async def test_get_attr_names(self): """Test the GetAttrNames node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [get_names_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: ("GetAttrNamesNode", "omni.graph.nodes.GetAttributeNames"), keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "GetAttrNamesNode.inputs:data"), ], }, ) await og.Controller.evaluate() (_, all_bundle_values) = ognts.get_bundle_with_all_results( str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName()) ) attr_names = list(all_bundle_values.keys()) for is_sorted in [False, True]: og.Controller.set(("inputs:sort", get_names_node), is_sorted) await og.Controller.evaluate() actual_results = og.Controller.get(("outputs:output", get_names_node)) if is_sorted: self.assertEqual(sorted(attr_names), actual_results, "Comparing sorted lists") else: self.assertCountEqual(attr_names, actual_results, "Comparing unsorted lists") # ---------------------------------------------------------------------- async def test_array_length(self): """Test the ArrayLength node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [length_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: ("ArrayLengthNode", "omni.graph.nodes.ArrayLength"), keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "ArrayLengthNode.inputs:data"), ], }, ) await og.Controller.evaluate() expected_results = ognts.get_bundle_with_all_results(str(prim.GetPrimPath())) # Test data consisting of the input attrName followed by the expected output values test_data = [("notExisting", 0)] for name, (_, _, array_length, _, value) in expected_results[1].items(): test_data.append((name, len(value) if array_length > 0 else 1)) name_attribute = og.Controller.attribute("inputs:attrName", length_node) output_attribute = og.Controller.attribute("outputs:length", length_node) for attribute_name, expected_length in test_data: og.Controller.set(name_attribute, attribute_name) await og.Controller.evaluate() self.assertEqual(expected_length, og.Controller.get(output_attribute), f"{attribute_name} array length") # ---------------------------------------------------------------------- async def test_copy_attr(self): """Test the CopyAttr node with some pre-made input bundle contents on the partialData input""" keys = og.Controller.Keys (_, [copy_node, inspector_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("CopyAttrNode", "omni.graph.nodes.CopyAttribute"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ # Connect the same prim to both inputs to avoid the overhead of creating two prims ("TestPrimExtract.outputs_primBundle", "CopyAttrNode.inputs:fullData"), ("TestPrimExtract.outputs_primBundle", "CopyAttrNode.inputs:partialData"), ("CopyAttrNode.outputs_data", "Inspector.inputs:bundle"), ], }, ) await og.Controller.evaluate() input_names_attr = og.Controller.attribute("inputs:inputAttrNames", copy_node) output_names_attr = og.Controller.attribute("inputs:outputAttrNames", copy_node) expected_results = ognts.get_bundle_with_all_results( str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName()) ) # Use sorted names so that the test is predictable sorted_names = sorted(expected_results[1].keys()) # Restrict to a small subset as a representative test old_names = sorted_names[0:3] new_names = [f"COPIED_{name}" for name in sorted_names[0:3]] copied_results = dict(expected_results[1].items()) copied_results.update( {f"COPIED_{key}": value for key, value in expected_results[1].items() if key in old_names} ) expected_copied_results = (expected_results[0] + len(old_names), copied_results) test_data = [ ("", "", expected_results), (old_names, new_names, expected_copied_results), ] for (to_copy, copied_to, expected_output) in test_data: og.Controller.set(input_names_attr, ",".join(to_copy)) og.Controller.set(output_names_attr, ",".join(copied_to)) await og.Controller.evaluate() results = ognts.bundle_inspector_results(inspector_node) try: # FIXME: OM-44667: Values do not get copied correctly. When they do, check_values=False can be removed ognts.verify_bundles_are_equal(results, expected_output, check_values=False) except ValueError as error: self.assertTrue(False, error) # ---------------------------------------------------------------------- async def test_rename_attr(self): """Test the RenameAttr node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [rename_node, inspector_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("RenameAttrNode", "omni.graph.nodes.RenameAttribute"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "RenameAttrNode.inputs:data"), ("RenameAttrNode.outputs_data", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("RenameAttrNode.inputs:inputAttrNames", ""), ("RenameAttrNode.inputs:outputAttrNames", ""), ], }, ) await og.Controller.evaluate() input_names_attr = og.Controller.attribute("inputs:inputAttrNames", rename_node) output_names_attr = og.Controller.attribute("inputs:outputAttrNames", rename_node) expected_results = ognts.get_bundle_with_all_results( str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName()) ) # Use sorted names so that the test is predictable sorted_names = sorted(expected_results[1].keys()) # Restrict to a small subset as a representative test old_names = sorted_names[0:3] new_names = [f"RENAMED_{name}" for name in sorted_names[0:3]] renamed_results = {key: value for key, value in expected_results[1].items() if key not in old_names} renamed_results.update( {f"RENAMED_{key}": value for key, value in expected_results[1].items() if key in old_names} ) expected_renamed_results = (expected_results[0], renamed_results) test_data = [ ("", "", expected_results), (old_names, new_names, expected_renamed_results), ] for (to_rename, renamed_to, expected_output) in test_data: og.Controller.set(input_names_attr, ",".join(to_rename)) og.Controller.set(output_names_attr, ",".join(renamed_to)) await og.Controller.evaluate() results = ognts.bundle_inspector_results(inspector_node) try: # FIXME: OM-44667: Values do not get copied correctly. When they do, check_values=False can be removed ognts.verify_bundles_are_equal(results, expected_output, check_values=False) except ValueError as error: self.assertTrue(False, error) # ---------------------------------------------------------------------- async def test_remove_attr(self): """Test the RemoveAttr node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [remove_node, inspector_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("RemoveAttrNode", "omni.graph.nodes.RemoveAttribute"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "RemoveAttrNode.inputs:data"), ("RemoveAttrNode.outputs_data", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("RemoveAttrNode.inputs:attrNamesToRemove", ""), ], }, ) await og.Controller.evaluate() (expected_count, expected_results) = ognts.get_bundle_with_all_results( str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName()) ) # Use sorted names so that the test is predictable sorted_names = sorted(expected_results.keys()) removal = [ sorted_names[0:2], sorted_names[3:6], ] test_data = [ ("", (expected_count, expected_results)), ( ",".join(removal[0]), ( expected_count - len(removal[0]), {key: value for key, value in expected_results.items() if key not in removal[0]}, ), ), ( ",".join(removal[1]), ( expected_count - len(removal[1]), {key: value for key, value in expected_results.items() if key not in removal[1]}, ), ), ] removal_attribute = og.Controller.attribute("inputs:attrNamesToRemove", remove_node) for (names, expected_output) in test_data: og.Controller.set(removal_attribute, names) await og.Controller.evaluate() results = ognts.bundle_inspector_results(inspector_node) try: # FIXME: OM-44667: Values do not get copied correctly. When they do, check_values=False can be removed ognts.verify_bundles_are_equal(results, expected_output, check_values=False) except ValueError as error: self.assertTrue(False, error) # ---------------------------------------------------------------------- async def test_insert_attr(self): """Test the InsertAttr node with some pre-made input bundle contents""" double_array = [(1.2, -1.2), (3.4, -5.6)] new_name = "newInsertedAttributeName" keys = og.Controller.Keys (_, [_, inspector_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("InsertAttrNode", "omni.graph.nodes.InsertAttribute"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "InsertAttrNode.inputs:data"), ("InsertAttrNode.outputs_data", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("InsertAttrNode.inputs:outputAttrName", new_name), ("InsertAttrNode.inputs:attrToInsert", double_array, "double[2][]"), ], }, ) await og.Controller.evaluate() results = ognts.bundle_inspector_results(inspector_node) (expected_count, expected_results) = ognts.get_bundle_with_all_results( str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName()) ) expected_results[new_name] = ("double", 2, 1, "none", double_array) expected_values = (expected_count + 1, expected_results) try: # FIXME: OM-44667: The values do not get copied correctly. When they do, check_values=False can be removed ognts.verify_bundles_are_equal(results, expected_values, check_values=False) except ValueError as error: self.assertTrue(False, error) # ---------------------------------------------------------------------- async def test_extract_attr(self): """Test the ExtractAttr node with some pre-made input bundle contents""" keys = og.Controller.Keys (_, [extract_node, _, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("ExtractAttrNode", "omni.graph.nodes.ExtractAttribute"), ("AddArray", "omni.graph.nodes.Add"), ], keys.CREATE_PRIMS: ("TestPrim", ognts.prim_with_everything_definition()), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "ExtractAttrNode.inputs:data"), ("ExtractAttrNode.outputs:output", "AddArray.inputs:a"), ], keys.SET_VALUES: [ ("ExtractAttrNode.inputs:attrName", "IntArrayAttr"), ], }, ) await og.Controller.evaluate() (_, expected_values) = ognts.get_bundle_with_all_results(str(prim.GetPrimPath())) self.assertCountEqual( expected_values["IntArrayAttr"][ognts.BundleResultKeys.VALUE_IDX], og.Controller.get(("outputs:output", extract_node)), ) # ---------------------------------------------------------------------- async def test_bundle_constructor(self): """Test simple operations in the BundleConstructor node. Only a minimal set of attribute types are tested here; just enough to confirm all code paths. The full test of all data types is done in a test node specially constructed for that purpose (OgnTestAllDataTypes) """ keys = og.Controller.Keys (_, [constructor_node, inspector_node], _, _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("Constructor", "omni.graph.nodes.BundleConstructor"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CONNECT: ("Constructor.outputs_bundle", "Inspector.inputs:bundle"), }, ) await og.Controller.evaluate() empty_bundle_output = (0, {}) # Test data consists of a list of test configurations containing: # Parameters to create_attribute() for dynamic attribute to be added (None if no additions) # Parameters to remove_attribute() for dynamic attribute to be removed (None if no removals) # Expected dictionary of values from the inspector after evaluation of the constructor node test_data = [ # Initial state with an empty bundle [ None, None, empty_bundle_output, ], # Add a simple float[3] attribute [ { "attributeName": "xxx", "attributeType": og.AttributeType.type_from_ogn_type_name("float[3]"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, "value": [1.0, 2.0, 3.0], "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "unionTypes": "", }, None, # TODO: Should be [1,2,3] when dynamic attribute defaults work (1, {"xxx": ("float", 3, 0, "none", (0.0, 0.0, 0.0))}), ], # Remove the attribute that was just added to get back to empty [ None, {"attributeName": "inputs:xxx"}, empty_bundle_output, ], # Adding an "any" type that will not show up in the output bundle [ { "attributeName": "xxAny", "attributeType": og.AttributeType.type_from_ogn_type_name("any"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, "value": None, "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_ANY, "unionTypes": "", }, None, empty_bundle_output, ], # Adding a "bundle" type that will not show up in the output bundle [ { "attributeName": "xxBundle", "attributeType": og.AttributeType.type_from_ogn_type_name("bundle"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, "value": None, "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "unionTypes": "", }, None, empty_bundle_output, ], # Adding an output float attribute that will not show up in the output bundle [ { "attributeName": "xxFloat", "attributeType": og.AttributeType.type_from_ogn_type_name("float"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT, "value": 5.0, "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "unionTypes": "", }, None, empty_bundle_output, ], # Adding a colord[3] and a float[] attribute, one at a time. [ { "attributeName": "xxColor", "attributeType": og.AttributeType.type_from_ogn_type_name("colord[3]"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, "value": [1.0, 2.0, 3.0], "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "unionTypes": "", }, None, # TODO: Should be [1.0, 2.0, 3.0] when dynamic attribute defaults work (1, {"xxColor": ("double", 3, 0, "color", (0.0, 0.0, 0.0))}), ], [ { "attributeName": "xxFloatArray", "attributeType": og.AttributeType.type_from_ogn_type_name("float[]"), "portType": og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, "value": [], "extendedType": og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "unionTypes": "", }, None, # TODO: Should be [1.0, 2.0, 3.0] when dynamic attribute defaults work ( 2, { "xxColor": ("double", 3, 0, "color", (0.0, 0.0, 0.0)), "xxFloatArray": ("float", 1, 1, "none", []), }, ), ], # Remove the colord[3] that was added before the remaining float[] attribute [ None, {"attributeName": "inputs:xxColor"}, (1, {"xxFloatArray": ("float", 1, 1, "none", [])}), ], ] for attribute_construction, attribute_removal, expected_results in test_data: if attribute_construction is not None: if attribute_construction[ "extendedType" ] == og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_ANY or attribute_construction[ "attributeType" ].base_type in [ og.BaseDataType.RELATIONSHIP, ]: with ogts.ExpectedError(): constructor_node.create_attribute(**attribute_construction) else: constructor_node.create_attribute(**attribute_construction) if attribute_removal is not None: constructor_node.remove_attribute(**attribute_removal) await og.Controller.evaluate() # FIXME: OM-44667: Bug with the bundle copy means the full bundle doesn't come over with its values # Remove this when the bug is fixed. ignore = ["fullInt", "floatArray"] ignore = [] try: ognts.verify_bundles_are_equal( ognts.filter_bundle_inspector_results( ognts.bundle_inspector_results(inspector_node), ignore, filter_for_inclusion=False ), ognts.filter_bundle_inspector_results(expected_results, ignore, filter_for_inclusion=False), ) except ValueError as error: self.assertTrue(False, error)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/_1_15.py
"""Backward compatible module for omni.graph.nodes version 1.15. Revert your access to the earlier package to this version: import omni.graph.nodes._1_15 as on Or import both and cherry-pick which versions of specific APIs you want to use import omni.graph.nodes as on import omni.graph.nodes._1_15 as on1_15 if i_want_v1_15: on1_15.old_function() else: on.old_function() """ import ast import json from tempfile import NamedTemporaryFile from typing import Any, Dict, List, Optional, Tuple, Union from unittest import TestCase import omni.graph.core as og import omni.graph.core.tests as ogts import omni.graph.tools as ogt from omni.kit.app import get_app from pxr import Usd __all__ = [ "bundle_inspector_outputs", "bundle_inspector_values_as_dictionary", "compare_bundle_contents", "compare_bundle_inspector_results", "computed_bundle_values", "create_prim_with_everything", "graph_node_path", "inspected_bundle_values", "inspector_node_definition", "prim_node_definition", "set_up_test_stage", ] # ====================================================================== # Type of data coming from a bundle inspector output BundleInspectorOutputType = Tuple[int, List[str], List[str], List[str], List[int], List[int], List[Any]] # ====================================================================== # Attribute information for bundle inspector nodes BUNDLE_INSPECTOR_ATTRIBUTES = [ ("uint64", "outputs:count"), ("token[]", "outputs:names"), ("token[]", "outputs:types"), ("token[]", "outputs:roles"), ("int[]", "outputs:arrayDepths"), ("int[]", "outputs:tupleCounts"), ("token[]", "outputs:values"), ("bundle", "outputs_bundle"), ("bool", "inputs:print"), ] # ====================================================================== # Feed data for constructing sample data with all attribute types in it. This is a list of # (ATTRIBUTE_TYPE, ATTRIBUTE_SAMPLE_VALUE) that can be used to populate bundles. Tuple counts are # lifted from the sample value type information and arrays are constructed explicitly from this simple data. # (Be careful with the half values; they have lower resolution and are better tested in fractionaly powers of 2.) # fmt: off PRIM_SAMPLE_VALUES = [ ("int", 1), ("int64", 2), ("half", 3.5), ("float", 5.6), ("double", 7.8), ("bool", 1), ("token", "goofy"), ("uchar", 9), ("uint", 10), ("uint64", 11), ("int", (12, -13)), ("half", (14.5, -16.5)), ("float", (18.19, 20.21)), ("double", (22.23, 24.25)), ("int", (26, -27, 28)), ("half", (29.5, -31.5, 33.5)), ("float", (35.36, -37.38, 39.40)), ("double", (41.42, -43.44, 45.46)), ("int", (47, -48, 49, -50)), ("half", (51.5, -53.5, 55.5, -57.5)), ("float", (59.60, -61.62, 63.64, -65.66)), ("double", (67.68, -69.70, 71.72, -73.74)), ("quath", (75.5, -77.5, 79.5, -81.5)), ("quatf", (83.84, -85.86, 87.88, -89.90)), ("quatd", (91.92, -93.94, 95.96, -97.98)), ("matrixd", ((1.1, -1.2), (2.1, -2.2))), ("matrixd", ((1.1, -1.2, 1.3), (2.1, -2.2, 2.3), (3.1, -3.2, 3.3))), ("matrixd", ((1.1, -1.2, 1.3, 1.4), (2.1, -2.2, 2.3, -2.4), (3.1, -3.2, 3.3, -3.4), (4.1, -4.2, 4.3, -4.4))), ] # fmt: on # ====================================================================== # Data types used for the node description conversions (set as simple type definitions because you can differentiate # between the two of them just by checking size) PrimAttributeValueType = List[Union[Tuple[str, Any], Tuple[str, str, Any]]] OmniGraphNodeDefinitionType = Tuple[str, str, List[str], List[Tuple[str, str]]] PrimNodeDefinitionType = Tuple[str, Dict[str, Tuple[str, Any, int]]] # ====================================================================== @ogt.deprecated_function("Use og.Controller.create_prim()") def prim_node_definition(prim_name: str, data: PrimAttributeValueType, as_usd: bool = True) -> PrimNodeDefinitionType: """Returns the data as a USD definition compatible with what is needed for node definitions in set_up_test_stage Args: prim_name: Name of the prim to be defined data: List of prim attribute values. The members of the list come in two forms: (TYPE, VALUE) : Creates attributes and arrays of those attributes with names derived from the type roughly ("float", 3) -> "float floatAttr = 3.0", "float[] floatAttrArray = [3.0, 3.0, 3.0]" (TYPE, NAME, VALUE): Creates an attribute with the given name, type, and value roughly ("float", "myFloat", 3) -> "float myFloat = 3.0" as_usd: If True then create the definition with USD ordering (i.e. quaternions reordered) """ definition = {} for attribute_info in data: if len(attribute_info) == 2: (attribute_type, value) = attribute_info if isinstance(value, str) or (not isinstance(value, list) and not isinstance(value, tuple)): tuple_count = 1 attribute_name = f"{attribute_type}Attr" else: tuple_count = len(value) attribute_name = f"{attribute_type}{tuple_count}Attr" # In all of the user-facing data the quaternions are specified as I,J,K,R, however in the USD file and # quaternion constructor they expect R,I,J,K so reorder for consistency if as_usd and attribute_type.find("quat") == 0: the_value = (value[3], value[0], value[1], value[2]) else: the_value = value definition[attribute_name] = (f"{attribute_type}", the_value, False, tuple_count) definition[f"{attribute_name}Array"] = (f"{attribute_type}", [the_value] * 3, True, tuple_count) else: (attribute_type, attribute_name, value) = attribute_info is_array = False the_value = value if isinstance(value, str) or (not isinstance(value, list) and not isinstance(value, tuple)): tuple_count = 1 elif isinstance(value, list) and value: is_array = True if isinstance(value[0], str) or (not isinstance(value[0], list) and not isinstance(value[0], tuple)): tuple_count = 1 else: tuple_count = len(value[0]) # In all of the user-facing data the quaternions are specified as I,J,K,R, however in the USD file # and quaternion constructor they expect R,I,J,K so reorder for consistency if as_usd and attribute_type.find("quat") == 0: the_value = tuple((member[3], member[0], member[1], member[2]) for member in value) elif isinstance(value, tuple): tuple_count = len(value) # In all of the user-facing data the quaternions are specified as I,J,K,R, however in the USD file and # quaternion constructor they expect R,I,J,K so reorder for consistency if as_usd and attribute_type.find("quat") == 0: the_value = (value[3], value[0], value[1], value[2]) definition[attribute_name] = (f"{attribute_type}", the_value, is_array, tuple_count) return (prim_name, definition) # ====================================================================== @ogt.deprecated_function("Use og.Controller.create_prim()") def _write_usd_prim_definition(attribute_information: PrimNodeDefinitionType, out): """Write out a USD Prim definition using the attribute information Args: attribute_information: Tuple(prim_name, Dict of ATTRIBUTE_NAME: (USD_TYPE, USD_VALUE, TUPLE_COUNT)) e.g. a float[3] named foo defaulted to zeroes would be { "foo": ("float", [0.0, 0.0, 0.0], 3) } out: Output object to which the definition will be written """ out.write(f'def Output "{attribute_information[0]}"') if out.indent("{"): for attribute_name, (type_name, attribute_value, is_array, tuple_count) in attribute_information[1].items(): usd_type = ogt.usd_type_name(type_name, tuple_count, is_array) value = attribute_value if usd_type.startswith("token") or usd_type.startswith("string"): value = json.dumps(attribute_value) out.write(f"{usd_type} {attribute_name} = {value}") out.exdent("}") # ====================================================================== @ogt.deprecated_function("Use og.Controller.create_node()") def inspector_node_definition(node_name: str, source_bundle: str) -> Tuple[str, str, List[str]]: """Returns the entry in a node definition list for a bundle inspector node connected to the given source""" return ( node_name, "omni.graph.nodes.BundleInspector", [f"rel inputs:bundle = [<{source_bundle}>]"] + ogt.attributes_as_usd(BUNDLE_INSPECTOR_ATTRIBUTES), BUNDLE_INSPECTOR_ATTRIBUTES, ) # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.bundle_inspector_results()") def inspected_bundle_values(bundle_data) -> List[Any]: """Returns a list of attribute values expected on the bundle inspector when applied to the bundle data. The list ordering should correspond to what is in BUNDLE_INSPECTOR_ATTRIBUTES, for efficiency. Args: bundle_data: Raw output of all the output attributes the bundle inspector provides """ names = [] type_names = [] role_names = [] array_flags = [] tuple_counts = [] values = [] # Sorting by name is the easiest way to produce a predictable ordering for the expected bundle values for name in sorted(bundle_data.keys()): (raw_type_name, value, is_array, tuple_count) = bundle_data[name] names.append(name) (type_name, role_name) = ogt.separate_ogn_role_and_type(raw_type_name) type_names.append(type_name) role_names.append(role_name) array_flags.append(is_array) tuple_counts.append(tuple_count * tuple_count if role_name in ["frame", "matrix", "transform"] else tuple_count) values.append(value) return [len(bundle_data), names, type_names, role_names, array_flags, tuple_counts, values] # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.bundle_inspector_results()") def computed_bundle_values(inspector_attributes: List[Any]) -> BundleInspectorOutputType: """Returns attribute values computed from a bundle inspector in the same form as inspected_bundle_values Args: inspector_attributes: List of the Attribute objects on the node in the order of BUNDLE_INSPECTOR_ATTRIBUTES """ # Have to keep these separated because the first attribute is a single value while the rest are lists of strings size = og.Controller.get(inspector_attributes[0]) if size == 0: return (0, [], [], [], [], [], []) results = [] for attribute_index in range(1, 7): attribute_values = og.Controller.get(inspector_attributes[attribute_index]) if attribute_index == 6: # Bundled values are formatted as strings but are actually a mixture of types attribute_values = [ ast.literal_eval(value) if value != "__unsupported__" else "__unsupported__" for value in attribute_values ] results.append(attribute_values) # If these aren't sorted it will be more difficult to compare them zipped = list(zip(results[0], results[1], results[2], results[3], results[4], results[5])) zipped.sort() results = list(zip(*zipped)) return tuple([size] + results) # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.bundle_inspector_results()") def bundle_inspector_outputs(bundle_inspector: og.NODE_TYPE_HINTS) -> BundleInspectorOutputType: """Returns attribute values computed from a bundle inspector in the same form as inspected_bundle_values Args: bundle_inspector: Node from which the output is to be extracted """ raw_values = [ og.Controller.get(og.Controller.attribute(name, bundle_inspector)) for (attr_type, name) in BUNDLE_INSPECTOR_ATTRIBUTES if attr_type != "bundle" and name.startswith("outputs:") ] size = raw_values[0] if size == 0: return (0, [], [], [], [], [], []) results = [] for attribute_name in [name for (_, name) in BUNDLE_INSPECTOR_ATTRIBUTES[1:] if name.startswith("outputs:")]: results.append(og.Controller.get(og.Controller.attribute(attribute_name, bundle_inspector))) # Bundled values are formatted as strings but are actually a mixture of types results[-1] = [ ast.literal_eval(value) if value != "__unsupported__" else "__unsupported__" for value in results[-1] ] # If these aren't sorted it will be more difficult to compare them zipped = list(zip(results[0], results[1], results[2], results[3], results[4], results[5])) zipped.sort() results = [list(x) for x in zip(*zipped)] return tuple([size] + results) # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.bundle_inspector_results()") def bundle_inspector_values_as_dictionary(inspected_values: List[Any]) -> Dict[str, Tuple[str, str, bool, int, Any]]: """Converts the results from a list of bundle inspector results into a dictionary of all of the array attributes The dictionary is useful for sorting as the key values will be unique. Args: inspected_values: List of bundle inspector outputs in the format produced by inspected_bundle_values() Returns: Dictionary of { Bundled Attribute Name : (TYPE, ROLE, IS_ARRAY, TUPLE_COUNT, VALUE) } TYPE: Attribute base type name ROLE: Attribute role name IS_ARRAY: Is the attribute an array type? TUPLE_COUNT: How many tuple elements in the attribute? (1 if simple data) VALUE: Value of the attribute extracted from the bundle """ inspector_dictionary = {} for index in range(inspected_values[0]): inspector_dictionary[inspected_values[1][index]] = tuple(inspected_values[i][index] for i in range(2, 7)) return inspector_dictionary # ====================================================================== @ogt.deprecated_function("Use graph and/or node reference directly") def graph_node_path(node_name: str) -> str: """Returns the full graph node prim path for the OmniGraph node of the given name in the test scene""" return f"/defaultPrim/graph/{node_name}" # ====================================================================== @ogt.deprecated_function("Use og.Controller.create_prim()") def _generate_test_file( node_definitions: List[Union[PrimNodeDefinitionType, OmniGraphNodeDefinitionType]], debug: bool = False ): """ Generate a USDA file with data and connections that can exercise the bundle inspection node. The file could have be put into the data/ directory but it is easier to understand and modify here, especially since it is only useful in this test. Normally you wouldn't call this directly, you'd use set_up_test_stage() to do the next steps to load the scene. Args: node_definitions: List of USD node definitions for nodes in the test, not including the bundle source if the type is OmniGraphNodeDefinitionType then the values are tuples with OmniGraph node information: (NODE_NAME, NODE_TYPE, ATTRIBUTE_LINES, ATTRIBUTE_INFO) NODE_NAME: Local name of node in the graph NODE_TYPE: OmniGraph node type name ATTRIBUTE_LINES: List of the node's attribute declarations in USD form, including connections ATTRIBUTE_INFO: List of (TYPE:NAME) for attributes in the node else if the type is PrimNodeDefinitionType it contains data in the format for _write_usd_prim_definition debug: If True then alll bundle inspector nodes are put into debug mode, printing their computed results Returns: Path to the generated USDA file. The caller is responsible for deleting the file when done. """ temp_fd = NamedTemporaryFile(mode="w+", suffix=".usda", delete=False) # noqa: PLR1732 out = ogt.IndentedOutput(temp_fd) # Start with a basic scene containing two cubes and a gather node out.write("#usda 1.0") out.write("(") out.write(' doc = """Bundle Inspection Node Test"""') out.write(")") out.write('def Xform "defaultPrim"') if out.indent("{"): for node_data in node_definitions: if len(node_data) == 2: _write_usd_prim_definition(node_data, out) out.write('def ComputeGraph "graph"') if out.indent("{"): out.write('def ComputeGraphSettings "computegraphSettings"') if out.indent("{"): out.write('custom token evaluator:type = "dirty_push"') out.exdent("}") for node_data in node_definitions: if len(node_data) != 4: continue (node_name, node_type, attribute_lines, _) = node_data out.write(f'def ComputeNode "{node_name}"') if out.indent("{"): out.write(f'custom token node:type = "{node_type}"') out.write("custom int node:typeVersion = 1") for attribute_line in attribute_lines: assign = " = true" if debug and attribute_line.find("inputs:print") >= 0 else "" out.write(f"{attribute_line}{assign}") out.exdent("}") out.exdent("}") out.exdent("}") return temp_fd.name # ====================================================================== @ogt.deprecated_function("Use og.Controller.edit() to set up a test scene") async def set_up_test_stage( node_definitions: List[Union[PrimNodeDefinitionType, OmniGraphNodeDefinitionType]], debug: bool = False ): """Set up an initial stage based on a specific node type and its attributes Args: node_definitions: List of (NODE_NAME, NODE_TYPE_NAME, LIST_OF_USD_ATTRIBUTE_DECLARATIONS, ATTRIBUTE_INFO) debug: If True then all bundle inspector nodes are put into debug mode, printing their computed results Returns: Dictionary by name of a list of "Attribute" objects corresponding to the named attributes """ path_to_file = _generate_test_file(node_definitions, debug) (result, error) = await ogts.load_test_file(path_to_file) if not result: raise ValueError(f"{error} on {path_to_file}") attributes = {} for node_data in node_definitions: node_name = node_data[0] test_node = og.get_current_graph().get_node(graph_node_path(node_name)) if len(node_data) == 4: attribute_info = node_data[3] attributes[node_name] = [ test_node.get_attribute(name) for attr_type, name in attribute_info if attr_type != "bundle" ] await get_app().next_update_async() return attributes # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.verify_bundles_are_equal()") def compare_bundle_contents(inspector_attributes: List, bundle_inspector_output: Union[Dict[str, Any], List[Any]]): """Helper to compare the contents of two bundled attribute sets Args: inspector_attributes: Attribute list for the bundle inspector node bundle_inspector_output: Outputs retrieved from the inspector in the format generated by inspected_bundle_values() if it's a list, or the format generated by bundle_inspector_values_as_dictionary() if it's a dictionary Raises: ValueError if any of the bundle output values do not match the expected ones """ # Mutating to a dictionary makes it easier to compare lists of lists if isinstance(bundle_inspector_output, list): bundled_size = bundle_inspector_output[0] bundled_data = bundle_inspector_values_as_dictionary(bundle_inspector_output) else: # If the data is already in dictionary form no conversion is needed bundled_size = len(bundle_inspector_output) bundled_data = bundle_inspector_output bundle_inspector_values = computed_bundle_values(inspector_attributes) if bundled_size != bundle_inspector_values[0]: raise ValueError(f"Bundled Count expected {bundled_size}, got {bundle_inspector_values[0]}") computed_values = bundle_inspector_values_as_dictionary(bundle_inspector_values) for attribute_name, attribute_values in computed_values.items(): expected_attribute_values = bundled_data[attribute_name] for attribute_index, computed_value in enumerate(attribute_values): # Bundled attribute types not yet supported by the bundle inspector are silently ignored if isinstance(computed_value, (list, tuple)): if "__unsupported__" in computed_value: continue else: if computed_value == "__unsupported__": continue error_msg = f"Unexpected value on attribute {inspector_attributes[attribute_index + 2].get_name()}" ogts.verify_values(expected_attribute_values[attribute_index], computed_value, error_msg) # ====================================================================== @ogt.deprecated_function("Use omni.graph.nodes.test.verify_bundles_are_equal()") def compare_bundle_inspector_results( expected: BundleInspectorOutputType, actual: BundleInspectorOutputType, test: Optional[TestCase] = None ): """Helper to compare the expected outputs from a bundle inspector node This uses the unit test framework for the comparisons. Args: expected: Values expected to be retrieved from the bundle inspector's outputs actual: Outputs retrieved from the inspector test: If not None then use it to report errors found, otherwise use a locally constructed TestCase Raises: ValueError if any of the bundle output values do not match the expected ones """ if test is None: test = TestCase() # Breaking open the tuples helps to clarify the operation being performed ( expected_count, expected_names, expected_types, expected_roles, expected_array_depths, expected_tuple_counts, expected_values, ) = expected ( actual_count, actual_names, actual_types, actual_roles, actual_array_depths, actual_tuple_counts, actual_values, ) = actual test.assertEqual(actual_count, expected_count) test.assertCountEqual(actual_names, expected_names) test.assertCountEqual(actual_types, expected_types) test.assertCountEqual(actual_roles, expected_roles) test.assertCountEqual(actual_array_depths, expected_array_depths) test.assertCountEqual(actual_tuple_counts, expected_tuple_counts) for one_actual, one_expected in zip(actual_values, expected_values): if isinstance(one_actual, list): test.assertCountEqual(one_actual, one_expected) else: test.assertEqual(one_actual, one_expected) # ============================================================================================================== @ogt.deprecated_function("Use og.Controller.create_prim or og.Controller.edit for creating prims") def create_prim_with_everything(prim_path: Optional[str] = None) -> Tuple[Usd.Prim, Dict[str, Any]]: """Deprecated function; should no longer be called""" return (None, {})
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_legacy_write_prims_node.py
r""" _____ ______ _____ _____ ______ _____ _______ ______ _____ | __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \ | | | || |__ | |__) || |__) || |__ | | / \ | | | |__ | | | | | | | || __| | ___/ | _ / | __| | | / /\ \ | | | __| | | | | | |__| || |____ | | | | \ \ | |____| |____ / ____ \ | | | |____ | |__| | |_____/ |______||_| |_| \_\|______|\_____|/_/ \_\|_| |______||_____/ OgnWritePrims is deprecated. Use WritePrimsV2 instead. Unit tests for the OgnWritePrims (Legacy) node, kept for maintaining backward compatibility. For updated tests for OgnWritePrimsV2, find test_write_prims_node.py. """ import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.stage_templates import omni.kit.test import omni.timeline import omni.usd from pxr import Usd, UsdGeom from usdrt import Usd as UsdRT # ====================================================================== class TestLegacyWritePrimNodes(ogts.OmniGraphTestCase): TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_mpib(self): """Test omni.graph.nodes.ReadPrims and WritePrims MPiB without bundle modification""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) cube2_prim = ogts.create_cube(stage, "Cube2", (0, 1, 0)) (graph, [read_prims_node, _], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrims"), ("Write", "omni.graph.nodes.WritePrims"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube1_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube2_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) # Reading the prim into a bundle again must leave the attributes intact, as we didn't modify anything await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) graph_context = graph.get_default_graph_context() output_prims_bundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(output_prims_bundle.valid) child_bundles = output_prims_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 2) expected_colors = { "/Cube1": [[1.0, 0.0, 0.0]], "/Cube2": [[0.0, 1.0, 0.0]], } for bundle in child_bundles: path = bundle.get_attribute_by_name("sourcePrimPath").get() expected_color = expected_colors[path] self.assertNotEqual(expected_color, None) # Check bundle values self.assertListEqual(bundle.get_attribute_by_name("primvars:displayColor").get().tolist(), expected_color) # Check USD prim values prim = stage.GetPrimAtPath(path) self.assertEqual([rgb[:] for rgb in prim.GetAttribute("primvars:displayColor").Get()], expected_color) # Check Fabric prim values prim_rt = stage_rt.GetPrimAtPath(path) self.assertEqual([rgb[:] for rgb in prim_rt.GetAttribute("primvars:displayColor").Get()], expected_color) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_spib(self): """Test omni.graph.nodes.ReadPrims and WritePrims SPiB without bundle modification""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) (graph, [read_prims_node, _, _], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrims"), ("ExtractCube1", "omni.graph.nodes.ExtractPrim"), ("Write", "omni.graph.nodes.WritePrims"), ], keys.SET_VALUES: [ ("ExtractCube1.inputs:primPath", "/Cube1"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube1.inputs:prims"), ("ExtractCube1.outputs_primBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube1_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) # Reading the prim into a bundle again must leave the attributes intact, as we didn't modify anything await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) graph_context = graph.get_default_graph_context() output_prims_bundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(output_prims_bundle.valid) child_bundles = output_prims_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 1) expected_colors = { "/Cube1": [[1.0, 0.0, 0.0]], } for bundle in child_bundles: path = bundle.get_attribute_by_name("sourcePrimPath").get() expected_color = expected_colors[path] self.assertNotEqual(expected_color, None) # Check bundle values self.assertListEqual(bundle.get_attribute_by_name("primvars:displayColor").get().tolist(), expected_color) # Check USD prim values prim = stage.GetPrimAtPath(path) self.assertEqual([rgb[:] for rgb in prim.GetAttribute("primvars:displayColor").Get()], expected_color) # Check Fabric prim values prim_rt = stage_rt.GetPrimAtPath(path) self.assertEqual([rgb[:] for rgb in prim_rt.GetAttribute("primvars:displayColor").Get()], expected_color) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_int_to_fabric(self): """Test omni.graph.nodes.ReadPrims and WritePrims for an integer attribute, Fabric only""" await self._read_write_prims_int(False) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_int_to_usd(self): """Test omni.graph.nodes.ReadPrims and WritePrims for an integer attribute, writing back to USD""" await self._read_write_prims_int(True) # ---------------------------------------------------------------------- async def _read_write_prims_int(self, usd_write_back: bool): usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) cube2_prim = ogts.create_cube(stage, "Cube2", (0, 1, 0)) (graph, [extract_cube1, extract_cube2, *_], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ExtractCube1", "omni.graph.nodes.ExtractPrim"), ("ExtractCube2", "omni.graph.nodes.ExtractPrim"), ("Read", "omni.graph.nodes.ReadPrims"), ("Write", "omni.graph.nodes.WritePrims"), ("SizeCube1", "omni.graph.nodes.ConstantDouble"), ("SizeCube2", "omni.graph.nodes.ConstantDouble"), ("InsertSizeCube1", "omni.graph.nodes.InsertAttribute"), ("InsertSizeCube2", "omni.graph.nodes.InsertAttribute"), ], keys.SET_VALUES: [ ("ExtractCube1.inputs:primPath", "/Cube1"), ("ExtractCube2.inputs:primPath", "/Cube2"), ("SizeCube1.inputs:value", 200), ("SizeCube2.inputs:value", 300), ("InsertSizeCube1.inputs:outputAttrName", "size"), ("InsertSizeCube2.inputs:outputAttrName", "size"), ("Write.inputs:usdWriteBack", usd_write_back), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube1.inputs:prims"), ("Read.outputs_primsBundle", "ExtractCube2.inputs:prims"), ("SizeCube1.inputs:value", "InsertSizeCube1.inputs:attrToInsert"), ("SizeCube2.inputs:value", "InsertSizeCube2.inputs:attrToInsert"), ("ExtractCube1.outputs_primBundle", "InsertSizeCube1.inputs:data"), ("ExtractCube2.outputs_primBundle", "InsertSizeCube2.inputs:data"), ("InsertSizeCube1.outputs_data", "Write.inputs:primsBundle"), ("InsertSizeCube2.outputs_data", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube1_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube2_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) graph_context = graph.get_default_graph_context() # Because we have feedback, the extract_cube1 bundle should have picked up the written attributes. # TODO: Feedback will become optional one day! cube1_bundle = graph_context.get_output_bundle(extract_cube1, "outputs_primBundle") self.assertTrue(cube1_bundle.valid) self.assertEqual(cube1_bundle.get_attribute_by_name("size").get(), 200) # Because we have feedback, the extract_cube2 bundle should have picked up the written attributes. # TODO: Feedback will become optional one day! cube2_bundle = graph_context.get_output_bundle(extract_cube2, "outputs_primBundle") self.assertTrue(cube2_bundle.valid) self.assertEqual(cube2_bundle.get_attribute_by_name("size").get(), 300) # Check USD write-back self.assertEqual(cube1_prim.GetAttribute("size").Get(), 200 if usd_write_back else 1) self.assertEqual(cube2_prim.GetAttribute("size").Get(), 300 if usd_write_back else 1) # Check Fabric values self.assertEqual(stage_rt.GetPrimAtPath("/Cube1").GetAttribute("size").Get(), 200) self.assertEqual(stage_rt.GetPrimAtPath("/Cube2").GetAttribute("size").Get(), 300) # Make sure the prim-bundle internal attributes are not written to the USD prim for attr_name in ["sourcePrimPath", "sourcePrimType"]: self.assertEqual(cube1_prim.HasAttribute(attr_name), False) self.assertEqual(cube2_prim.HasAttribute(attr_name), False) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_translate_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an attribute pattern to just translate""" await self._test_read_write_prims_patterns( "xformOp:trans*", None, None, [ [(1.0, 2.0, 3.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (0.0, 0.0, 0.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_rotate_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an attribute pattern to just rotate""" await self._test_read_write_prims_patterns( "xformOp:rotate*", None, None, [ [(0.0, 0.0, 0.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_xform_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an attribute pattern to translate and rotate""" await self._test_read_write_prims_patterns( "xformOp:*", None, None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_shape1_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an path pattern to limit writing to Shape1 only""" await self._test_read_write_prims_patterns( None, "/Shape1", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_shape2_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an path pattern to limit writing to Shape2 only""" await self._test_read_write_prims_patterns( None, "/Shape2", None, [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_both_shapes(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an path pattern to write to both shapes""" await self._test_read_write_prims_patterns( None, "/Shape*", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_cube_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an path pattern to limit writing to cubes only""" await self._test_read_write_prims_patterns( None, None, "Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_cone_only(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an type pattern to limit writing to cones only""" await self._test_read_write_prims_patterns( None, None, "Cone", [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_cube_and_cone(self): """Test omni.graph.nodes.ReadPrims and WritePrims using an type pattern to write to both cubes and cones""" await self._test_read_write_prims_patterns( None, None, "Cone;Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], ) # ---------------------------------------------------------------------- async def _test_read_write_prims_patterns(self, attr_pattern, path_pattern, type_pattern, expected_prim_values): # No need to test USD write back in this unit tests, other tests do this. usd_write_back = False usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube_prim = ogts.create_cube(stage, "Shape1", (1, 0, 0)) cone_prim = ogts.create_cone(stage, "Shape2", (0, 1, 0)) # add transforms with double precision xform_precision = UsdGeom.XformOp.PrecisionDouble for prim in [cube_prim, cone_prim]: UsdGeom.Xformable(prim).AddTranslateOp(xform_precision).Set((0, 0, 0)) UsdGeom.Xformable(prim).AddRotateXYZOp(xform_precision).Set((0, 0, 0)) UsdGeom.Xformable(prim).AddScaleOp(xform_precision).Set((1, 1, 1)) set_values = [ ("ExtractCube.inputs:primPath", "/Shape1"), ("ExtractCone.inputs:primPath", "/Shape2"), ("TranslateCube.inputs:value", (1, 2, 3)), ("TranslateCone.inputs:value", (4, 5, 6)), ("RotateCube.inputs:value", (7, 8, 9)), ("RotateCone.inputs:value", (10, 11, 12)), ("InsertTranslateCube.inputs:outputAttrName", "xformOp:translate"), ("InsertTranslateCone.inputs:outputAttrName", "xformOp:translate"), ("InsertRotateCube.inputs:outputAttrName", "xformOp:rotateXYZ"), ("InsertRotateCone.inputs:outputAttrName", "xformOp:rotateXYZ"), ("Write.inputs:usdWriteBack", usd_write_back), ] if attr_pattern: set_values.append(("Write.inputs:attrNamesToExport", attr_pattern)) if path_pattern: set_values.append(("Write.inputs:pathPattern", path_pattern)) if type_pattern: set_values.append(("Write.inputs:typePattern", type_pattern)) (graph, [extract_cube, extract_cone, *_], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ExtractCube", "omni.graph.nodes.ExtractPrim"), ("ExtractCone", "omni.graph.nodes.ExtractPrim"), ("Read", "omni.graph.nodes.ReadPrims"), ("Write", "omni.graph.nodes.WritePrims"), ("TranslateCube", "omni.graph.nodes.ConstantDouble3"), ("TranslateCone", "omni.graph.nodes.ConstantDouble3"), ("RotateCube", "omni.graph.nodes.ConstantDouble3"), ("RotateCone", "omni.graph.nodes.ConstantDouble3"), ("InsertTranslateCube", "omni.graph.nodes.InsertAttribute"), ("InsertTranslateCone", "omni.graph.nodes.InsertAttribute"), ("InsertRotateCube", "omni.graph.nodes.InsertAttribute"), ("InsertRotateCone", "omni.graph.nodes.InsertAttribute"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube.inputs:prims"), ("Read.outputs_primsBundle", "ExtractCone.inputs:prims"), ("TranslateCube.inputs:value", "InsertTranslateCube.inputs:attrToInsert"), ("TranslateCone.inputs:value", "InsertTranslateCone.inputs:attrToInsert"), ("RotateCube.inputs:value", "InsertRotateCube.inputs:attrToInsert"), ("RotateCone.inputs:value", "InsertRotateCone.inputs:attrToInsert"), ("ExtractCube.outputs_primBundle", "InsertTranslateCube.inputs:data"), ("ExtractCone.outputs_primBundle", "InsertTranslateCone.inputs:data"), ("InsertTranslateCube.outputs_data", "InsertRotateCube.inputs:data"), ("InsertTranslateCone.outputs_data", "InsertRotateCone.inputs:data"), ("InsertRotateCube.outputs_data", "Write.inputs:primsBundle"), ("InsertRotateCone.outputs_data", "Write.inputs:primsBundle"), ], keys.SET_VALUES: set_values, }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cone_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) graph_context = graph.get_default_graph_context() cube_bundle = graph_context.get_output_bundle(extract_cube, "outputs_primBundle") cone_bundle = graph_context.get_output_bundle(extract_cone, "outputs_primBundle") prim_bundles = [cube_bundle, cone_bundle] prim_paths = ["/Shape1", "/Shape2"] # We will check these attributes attr_names = ["xformOp:translate", "xformOp:rotateXYZ"] # We need two lists of values, one for each prim self.assertEqual(len(expected_prim_values), 2) for prim_index, prim_bundle in enumerate(prim_bundles): expected_values = expected_prim_values[prim_index] # All attribute values must be passed self.assertEqual(len(expected_values), len(attr_names)) prim_rt = stage_rt.GetPrimAtPath(prim_paths[prim_index]) # Check attributes values in prim bundle for attr_index, expected_value in enumerate(expected_values): attr_name = attr_names[attr_index] # Because we have feedback, the bundle should have picked up the written attributes. # TODO: Feedback will become optional one day! actual_value = tuple(prim_bundle.get_attribute_by_name(attr_name).get()) self.assertEqual(actual_value, expected_value) # Check Fabric values actual_value_rt = tuple(prim_rt.GetAttribute(attr_name).Get()) self.assertEqual(actual_value_rt, expected_value) # Make sure the prim-bundle internal attributes are not written to the USD prim for attr_name in ["sourcePrimPath", "sourcePrimType"]: self.assertEqual(cube_prim.HasAttribute(attr_name), False) self.assertEqual(cone_prim.HasAttribute(attr_name), False) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_array_new_attr_to_fabric(self): """Test omni.graph.nodes.ReadPrims and WritePrims for a new array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, False) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_array_new_attr_to_usd(self): """Test omni.graph.nodes.ReadPrims and WritePrims for a new array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, False) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_array_attr_to_fabric(self): """Test omni.graph.nodes.ReadPrims and WritePrims for an existing array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, True) # ---------------------------------------------------------------------- async def test_legacy_read_write_prims_array_attr_to_usd(self): """Test omni.graph.nodes.ReadPrims and WritePrims for an existing array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, True) # ---------------------------------------------------------------------- async def _test_read_write_prims_vec3_array(self, usd_write_back: bool, add_new_attr: bool): usd_context = omni.usd.get_context() stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) cube_prim = ogts.create_cube(stage, "Cube", (1, 0, 0)) controller = og.Controller() keys = og.Controller.Keys attr_name = "new_array_attr" if add_new_attr else "primvars:displayColor" (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrims"), ("Write", "omni.graph.nodes.WritePrims"), ("ExtractCube", "omni.graph.nodes.ExtractPrim"), ("MakeArray", "omni.graph.nodes.ConstructArray"), ("InsertAttribute", "omni.graph.nodes.InsertAttribute"), ], keys.SET_VALUES: [ ("ExtractCube.inputs:primPath", "/Cube"), ("MakeArray.inputs:arraySize", 1), ("MakeArray.inputs:arrayType", "float[3][]"), ("MakeArray.inputs:input0", [0.25, 0.50, 0.75]), ("InsertAttribute.inputs:outputAttrName", attr_name), ("Write.inputs:usdWriteBack", usd_write_back), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube.inputs:prims"), ("ExtractCube.outputs_primBundle", "InsertAttribute.inputs:data"), ("MakeArray.outputs:array", "InsertAttribute.inputs:attrToInsert"), ("InsertAttribute.outputs_data", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph) graph_context = graph.get_default_graph_context() cube_bundle = graph_context.get_output_bundle(nodes[2], "outputs_primBundle") self.assertTrue(cube_bundle.valid) # Because we have feedback, the bundle should have picked up the written attributes. # TODO: Feedback will become optional one day! feedback_values = cube_bundle.get_attribute_by_name(attr_name).get() self.assertEqual(len(feedback_values), 1) self.assertEqual(tuple(feedback_values[0]), (0.25, 0.50, 0.75)) # Check Fabric values fabric_values = stage_rt.GetPrimAtPath("/Cube").GetAttribute(attr_name).Get() self.assertEqual(len(fabric_values), 1) self.assertEqual(tuple(fabric_values[0]), (0.25, 0.50, 0.75)) if usd_write_back: # With USD write back, the existing attribute should be updated in USD usd_values = stage.GetPrimAtPath("/Cube").GetAttribute(attr_name).Get() self.assertEqual(len(usd_values), 1) self.assertEqual(tuple(usd_values[0]), (0.25, 0.50, 0.75)) elif add_new_attr: # Without USD write back, the new attribute should not exist in USD. self.assertFalse(stage.GetPrimAtPath("/Cube").HasAttribute(attr_name)) else: # Without USD write back, the existing attribute should not be updated in USD usd_values = stage.GetPrimAtPath("/Cube").GetAttribute(attr_name).Get() self.assertEqual(len(usd_values), 1) self.assertEqual(tuple(usd_values[0]), (1, 0, 0)) # ---------------------------------------------------------------------- # Helpers def _assert_no_compute_messages(self, graph): graph_nodes = graph.get_nodes() for severity in [og.WARNING, og.ERROR]: for node in graph_nodes: self.assertEqual(node.get_compute_messages(severity), []) async def _evaluate_graph(self, graph, controller): await omni.kit.app.get_app().next_update_async() await controller.evaluate(graph)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_write_prims_node.py
# noqa: PLC0302 """Unit tests for the OgnWritePrims node in this extension""" import fnmatch import os import tempfile import carb import omni.graph.core as og import omni.graph.core.autonode as oga import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.stage_templates import omni.kit.test import omni.timeline import omni.usd from pxr import Sdf, Usd, UsdGeom from usdrt import Sdf as SdfRT from usdrt import Usd as UsdRT # Define a test node that has one relationship in the bundle # This will be used to test WritePrimsV2 node's Relationship exporting REL_BUNDLE_TRL_NAME = "test_rel" REL_BUNDLE_TARGETS = [Sdf.Path("/Foo/bar"), Sdf.Path("/Foo/baz")] REL_BUNDLE_TARGETS_RT = [SdfRT.Path(path.pathString) for path in REL_BUNDLE_TARGETS] @oga.AutoFunc(module_name="__test_write_prims_v2__", pure=True) def relationship_bundle() -> og.Bundle: bundle = og.Bundle("return", False) bundle.create_attribute(REL_BUNDLE_TRL_NAME, og.Type(og.BaseDataType.RELATIONSHIP, 1, 1)).value = REL_BUNDLE_TARGETS return bundle # ====================================================================== # because the child bundle's order inside of bundle is non-deterministic, WritePrims node sort the bundle content # according to sourcePrimPath when scatter_under_targets mode is off def sort_child_bundles(child_bundles, scatter_under_targets: bool): # do not sort if scatter_under_targets if scatter_under_targets: return child_bundles child_bundles.sort(key=lambda x: x.get_attribute_by_name("sourcePrimPath").get()) return child_bundles # ====================================================================== class TestWritePrimNodes(ogts.OmniGraphTestCase): TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- async def test_read_write_prims_mpib(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB without bundle modification and output to targets""" await self._test_read_write_prims_mpib_impl(False) # ---------------------------------------------------------------------- async def test_read_write_prims_mpib_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB without bundle modification and scatter under targets""" await self._test_read_write_prims_mpib_impl(True) # ---------------------------------------------------------------------- async def _test_read_write_prims_mpib_impl(self, scatter_under_targets: bool): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB without bundle modification""" target_prim_paths = ["/target0", "/target1"] usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) cube2_prim = ogts.create_cube(stage, "Cube2", (0, 1, 0)) (graph, [read_prims_node, _], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[cube1_prim.GetPath(), cube2_prim.GetPath()], ) for target_path in target_prim_paths: target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # Reading the prim into a bundle again must leave the attributes intact, as we didn't modify anything await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) graph_context = graph.get_default_graph_context() output_prims_bundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(output_prims_bundle.valid) child_bundles = output_prims_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 2) expected_colors = { "/Cube1": [[1.0, 0.0, 0.0]], "/Cube2": [[0.0, 1.0, 0.0]], } child_bundles = sort_child_bundles(child_bundles, scatter_under_targets) for i, bundle in enumerate(child_bundles): path = bundle.get_attribute_by_name("sourcePrimPath").get() expected_color = expected_colors[path] self.assertNotEqual(expected_color, None) # Check bundle values self.assertListEqual(bundle.get_attribute_by_name("primvars:displayColor").get().tolist(), expected_color) def check_prim_values(source_prim_path, target_prim_path, expected_color): # Check USD prim values prim = stage.GetPrimAtPath(source_prim_path) self.assertEqual([rgb[:] for rgb in prim.GetAttribute("primvars:displayColor").Get()], expected_color) # Check Fabric prim values prim_rt = stage_rt.GetPrimAtPath(source_prim_path) self.assertTrue(prim_rt.IsValid()) self.assertEqual( [rgb[:] for rgb in prim_rt.GetAttribute("primvars:displayColor").Get()], expected_color ) # Check target Fabric prim values prim_rt = stage_rt.GetPrimAtPath(target_prim_path) self.assertTrue(prim_rt.IsValid()) self.assertEqual( [rgb[:] for rgb in prim_rt.GetAttribute("primvars:displayColor").Get()], expected_color ) if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_values(path, target_prim_path + path, expected_color) else: check_prim_values(path, target_prim_paths[i], expected_color) # ---------------------------------------------------------------------- async def test_read_write_prims_spib(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims SPiB without bundle modification and output to targets""" await self._test_read_write_prims_spib_impl(False) # ---------------------------------------------------------------------- async def test_read_write_prims_spib_no_source_prim_info(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims SPiB without bundle modification and output to targets""" await self._test_read_write_prims_spib_impl(False, True) # ---------------------------------------------------------------------- async def test_read_write_prims_spib_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims SPiB without bundle modification and scatter under targets""" await self._test_read_write_prims_spib_impl(True) # ---------------------------------------------------------------------- async def _test_read_write_prims_spib_impl( self, scatter_under_targets: bool, remove_source_prim_info: bool = False ): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims SPiB without bundle modification""" target_prim_paths = ["/target0", "/target1"] usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) (graph, [read_prims_node, *_], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("ExtractCube1", "omni.graph.nodes.ExtractPrim"), ("RemoveAttrs", "omni.graph.nodes.RemoveAttribute"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("ExtractCube1.inputs:primPath", "/Cube1"), ("RemoveAttrs.inputs:allowRemovePrimInternal", True), ( "RemoveAttrs.inputs:attrNamesToRemove", "sourcePrimPath;sourcePrimType" if remove_source_prim_info else "", ), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube1.inputs:prims"), ("ExtractCube1.outputs_primBundle", "RemoveAttrs.inputs:data"), ("RemoveAttrs.outputs_data", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube1_prim.GetPath(), ) for target_path in target_prim_paths: target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # Reading the prim into a bundle again must leave the attributes intact, as we didn't modify anything await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) graph_context = graph.get_default_graph_context() output_prims_bundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(output_prims_bundle.valid) child_bundles = output_prims_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 1) expected_colors = { "/Cube1": [[1.0, 0.0, 0.0]], } child_bundles = sort_child_bundles(child_bundles, scatter_under_targets) for i, bundle in enumerate(child_bundles): path = bundle.get_attribute_by_name("sourcePrimPath").get() expected_color = expected_colors[path] self.assertNotEqual(expected_color, None) # Check bundle values self.assertListEqual(bundle.get_attribute_by_name("primvars:displayColor").get().tolist(), expected_color) def check_prim_values(target_prim_path, expected_color): # Check Target USD prim values prim = stage.GetPrimAtPath(target_prim_path) # if source prim info is removed, the target prim type should not change. Otherwise it changes from Xform to Cube self.assertEqual(prim.GetTypeName(), "Xform" if remove_source_prim_info else "Cube") self.assertEqual([rgb[:] for rgb in prim.GetAttribute("primvars:displayColor").Get()], expected_color) # Check Target Fabric prim values prim_rt = stage_rt.GetPrimAtPath(target_prim_path) self.assertEqual( [rgb[:] for rgb in prim_rt.GetAttribute("primvars:displayColor").Get()], expected_color ) if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_values(target_prim_path + path, expected_color) else: check_prim_values(target_prim_paths[i], expected_color) # ---------------------------------------------------------------------- async def test_read_write_prims_int_to_fabric(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an integer attribute, Fabric only""" await self._read_write_prims_int(False, False) # ---------------------------------------------------------------------- async def test_read_write_prims_int_to_fabric_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an integer attribute, Fabric only""" await self._read_write_prims_int(False, True) # ---------------------------------------------------------------------- async def test_read_write_prims_int_to_usd(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an integer attribute, writing back to USD""" await self._read_write_prims_int(True, False) # ---------------------------------------------------------------------- async def test_read_write_prims_int_to_usd_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an integer attribute, writing back to USD""" await self._read_write_prims_int(True, True) # ---------------------------------------------------------------------- async def _read_write_prims_int(self, usd_write_back: bool, scatter_under_targets: bool): target_prim_paths = ["/target0", "/target1"] usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube1_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) cube2_prim = ogts.create_cube(stage, "Cube2", (0, 1, 0)) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ExtractCube1", "omni.graph.nodes.ExtractPrim"), ("ExtractCube2", "omni.graph.nodes.ExtractPrim"), ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ("SizeCube1", "omni.graph.nodes.ConstantDouble"), ("SizeCube2", "omni.graph.nodes.ConstantDouble"), ("InsertSizeCube1", "omni.graph.nodes.InsertAttribute"), ("InsertSizeCube2", "omni.graph.nodes.InsertAttribute"), ], keys.SET_VALUES: [ ("ExtractCube1.inputs:primPath", "/Cube1"), ("ExtractCube2.inputs:primPath", "/Cube2"), ("SizeCube1.inputs:value", 200), ("SizeCube2.inputs:value", 300), ("InsertSizeCube1.inputs:outputAttrName", "size"), ("InsertSizeCube2.inputs:outputAttrName", "size"), ("Write.inputs:usdWriteBack", usd_write_back), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube1.inputs:prims"), ("Read.outputs_primsBundle", "ExtractCube2.inputs:prims"), ("SizeCube1.inputs:value", "InsertSizeCube1.inputs:attrToInsert"), ("SizeCube2.inputs:value", "InsertSizeCube2.inputs:attrToInsert"), ("ExtractCube1.outputs_primBundle", "InsertSizeCube1.inputs:data"), ("ExtractCube2.outputs_primBundle", "InsertSizeCube2.inputs:data"), ("InsertSizeCube1.outputs_data", "Write.inputs:primsBundle"), ("InsertSizeCube2.outputs_data", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[cube1_prim.GetPath(), cube2_prim.GetPath()], ) for target_path in target_prim_paths: target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) def check_prim_values(cube_1_path, cube_2_path): if usd_write_back: # Check USD write-back cube1_prim_target = stage.GetPrimAtPath(cube_1_path) cube2_prim_target = stage.GetPrimAtPath(cube_2_path) self.assertEqual(cube1_prim_target.GetAttribute("size").Get(), 200 if usd_write_back else 1) self.assertEqual(cube2_prim_target.GetAttribute("size").Get(), 300 if usd_write_back else 1) # Make sure the prim-bundle internal attributes are not written to the USD prim for attr_name in ["sourcePrimPath", "sourcePrimType"]: self.assertEqual(cube1_prim_target.HasAttribute(attr_name), False) self.assertEqual(cube2_prim_target.HasAttribute(attr_name), False) # Check Fabric values self.assertEqual(stage_rt.GetPrimAtPath(cube_1_path).GetAttribute("size").Get(), 200) self.assertEqual(stage_rt.GetPrimAtPath(cube_2_path).GetAttribute("size").Get(), 300) if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_values(target_prim_path + "/Cube1", target_prim_path + "/Cube2") else: check_prim_values(target_prim_paths[0], target_prim_paths[1]) # ---------------------------------------------------------------------- async def test_read_write_prims_translate_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to just translate""" await self._test_read_write_prims_patterns( "xformOp:trans*", None, None, [ [(1.0, 2.0, 3.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (0.0, 0.0, 0.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_translate_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to just translate""" await self._test_read_write_prims_patterns( "xformOp:trans*", None, None, [ [(1.0, 2.0, 3.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (0.0, 0.0, 0.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_rotate_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to just rotate""" await self._test_read_write_prims_patterns( "xformOp:rotate*", None, None, [ [(0.0, 0.0, 0.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_rotate_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to just rotate""" await self._test_read_write_prims_patterns( "xformOp:rotate*", None, None, [ [(0.0, 0.0, 0.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_xform_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to translate and rotate""" await self._test_read_write_prims_patterns( "xformOp:*", None, None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_xform_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an attribute pattern to translate and rotate""" await self._test_read_write_prims_patterns( "xformOp:*", None, None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_shape1_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to Shape1 only""" await self._test_read_write_prims_patterns( None, "/Shape1", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_shape1_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to Shape1 only""" await self._test_read_write_prims_patterns( None, "/Shape1", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_shape2_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to Shape2 only""" await self._test_read_write_prims_patterns( None, "/Shape2", None, [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_shape2_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to Shape2 only""" await self._test_read_write_prims_patterns( None, "/Shape2", None, [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_both_shapes(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to write to both shapes""" await self._test_read_write_prims_patterns( None, "/Shape*", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_both_shapes_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to write to both shapes""" await self._test_read_write_prims_patterns( None, "/Shape*", None, [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cube_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to cubes only""" await self._test_read_write_prims_patterns( None, None, "Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cube_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an path pattern to limit writing to cubes only""" await self._test_read_write_prims_patterns( None, None, "Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cone_only(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an type pattern to limit writing to cones only""" await self._test_read_write_prims_patterns( None, None, "Cone", [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cone_only_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an type pattern to limit writing to cones only""" await self._test_read_write_prims_patterns( None, None, "Cone", [ [(0.0, 0.0, 0.0), (0.0, 0.0, 0.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cube_and_cone(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an type pattern to write to both cubes and cones""" await self._test_read_write_prims_patterns( None, None, "Cone;Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], False, ) # ---------------------------------------------------------------------- async def test_read_write_prims_cube_and_cone_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims using an type pattern to write to both cubes and cones""" await self._test_read_write_prims_patterns( None, None, "Cone;Cube", [ [(1.0, 2.0, 3.0), (7.0, 8.0, 9.0)], [(4.0, 5.0, 6.0), (10.0, 11.0, 12.0)], ], True, ) # ---------------------------------------------------------------------- async def _test_read_write_prims_patterns( self, attr_pattern, path_pattern, type_pattern, expected_prim_values, scatter_under_targets: bool ): target_prim_paths = ["/target0", "/target1"] # test USD write back since it's the main workflow currently usd_write_back = True usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys cube_prim = ogts.create_cube(stage, "Shape1", (1, 0, 0)) cone_prim = ogts.create_cone(stage, "Shape2", (0, 1, 0)) # add transforms with double precision xform_precision = UsdGeom.XformOp.PrecisionDouble for prim in [cube_prim, cone_prim]: UsdGeom.Xformable(prim).AddTranslateOp(xform_precision).Set((0, 0, 0)) UsdGeom.Xformable(prim).AddRotateXYZOp(xform_precision).Set((0, 0, 0)) UsdGeom.Xformable(prim).AddScaleOp(xform_precision).Set((1, 1, 1)) set_values = [ ("ExtractCube.inputs:primPath", "/Shape1"), ("ExtractCone.inputs:primPath", "/Shape2"), ("TranslateCube.inputs:value", (1, 2, 3)), ("TranslateCone.inputs:value", (4, 5, 6)), ("RotateCube.inputs:value", (7, 8, 9)), ("RotateCone.inputs:value", (10, 11, 12)), ("InsertTranslateCube.inputs:outputAttrName", "xformOp:translate"), ("InsertTranslateCone.inputs:outputAttrName", "xformOp:translate"), ("InsertRotateCube.inputs:outputAttrName", "xformOp:rotateXYZ"), ("InsertRotateCone.inputs:outputAttrName", "xformOp:rotateXYZ"), ("Write.inputs:usdWriteBack", usd_write_back), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ] if attr_pattern: set_values.append(("Write.inputs:attrNamesToExport", attr_pattern)) if path_pattern: set_values.append(("Write.inputs:pathPattern", path_pattern)) if type_pattern: set_values.append(("Write.inputs:typePattern", type_pattern)) (graph, [extract_cube, extract_cone, *_], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ExtractCube", "omni.graph.nodes.ExtractPrim"), ("ExtractCone", "omni.graph.nodes.ExtractPrim"), ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ("TranslateCube", "omni.graph.nodes.ConstantDouble3"), ("TranslateCone", "omni.graph.nodes.ConstantDouble3"), ("RotateCube", "omni.graph.nodes.ConstantDouble3"), ("RotateCone", "omni.graph.nodes.ConstantDouble3"), ("InsertTranslateCube", "omni.graph.nodes.InsertAttribute"), ("InsertTranslateCone", "omni.graph.nodes.InsertAttribute"), ("InsertRotateCube", "omni.graph.nodes.InsertAttribute"), ("InsertRotateCone", "omni.graph.nodes.InsertAttribute"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube.inputs:prims"), ("Read.outputs_primsBundle", "ExtractCone.inputs:prims"), ("TranslateCube.inputs:value", "InsertTranslateCube.inputs:attrToInsert"), ("TranslateCone.inputs:value", "InsertTranslateCone.inputs:attrToInsert"), ("RotateCube.inputs:value", "InsertRotateCube.inputs:attrToInsert"), ("RotateCone.inputs:value", "InsertRotateCone.inputs:attrToInsert"), ("ExtractCube.outputs_primBundle", "InsertTranslateCube.inputs:data"), ("ExtractCone.outputs_primBundle", "InsertTranslateCone.inputs:data"), ("InsertTranslateCube.outputs_data", "InsertRotateCube.inputs:data"), ("InsertTranslateCone.outputs_data", "InsertRotateCone.inputs:data"), ("InsertRotateCube.outputs_data", "Write.inputs:primsBundle"), ("InsertRotateCone.outputs_data", "Write.inputs:primsBundle"), ], keys.SET_VALUES: set_values, }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[cube_prim.GetPath(), cone_prim.GetPath()], ) for target_path in target_prim_paths: target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) graph_context = graph.get_default_graph_context() cube_bundle = graph_context.get_output_bundle(extract_cube, "outputs_primBundle") cone_bundle = graph_context.get_output_bundle(extract_cone, "outputs_primBundle") prim_bundles = [cube_bundle, cone_bundle] prim_paths = ["/Shape1", "/Shape2"] prim_types = ["Cube", "Cone"] # We will check these attributes attr_names = ["xformOp:translate", "xformOp:rotateXYZ"] # We need two lists of values, one for each prim self.assertEqual(len(expected_prim_values), 2) attr_pattern_tokens = attr_pattern.split(";") if attr_pattern else [] path_pattern_tokens = path_pattern.split(";") if path_pattern else [] type_pattern_tokens = type_pattern.split(";") if type_pattern else [] for prim_index, _prim_bundle in enumerate(prim_bundles): expected_values = expected_prim_values[prim_index] # All attribute values must be passed self.assertEqual(len(expected_values), len(attr_names)) # Check attributes values in prim bundle for attr_index, expected_value in enumerate(expected_values): attr_name = attr_names[attr_index] def check_prim_values(source_prim_path, target_prim_path, prim_type, attr_name, expected_value): if usd_write_back: prim = stage.GetPrimAtPath(target_prim_path) else: prim = stage_rt.GetPrimAtPath(target_prim_path) # to emulate matcher behavior attr_matched = True if attr_pattern_tokens: attr_matched = False for token in attr_pattern_tokens: attr_matched |= fnmatch.fnmatch(attr_name, token) if attr_matched: break prim_matched = True if path_pattern_tokens: path_matched = False for token in path_pattern_tokens: path_matched |= fnmatch.fnmatch(source_prim_path, token) prim_matched &= path_matched if type_pattern_tokens: type_matched = False for token in type_pattern_tokens: type_matched |= fnmatch.fnmatch(prim_type, token) prim_matched &= type_matched # Check values if prim_matched: if usd_write_back: # usdrt syncs usd prim type if only change the type in fabric self.assertEqual(prim.GetTypeName(), prim_type) if attr_matched: actual_value_rt = tuple(prim.GetAttribute(attr_name).Get()) self.assertEqual(actual_value_rt, expected_value) else: # if attribute does not match, it won't be exported self.assertFalse(prim.GetAttribute(attr_name).IsValid()) else: if scatter_under_targets: # if unmatched, the target prim won't exist if filter failed self.assertFalse(prim.IsValid()) else: # if unmatched, the prim type won't change from xform to cube/cone self.assertTrue(prim.IsValid()) self.assertEqual(prim.GetTypeName(), "Xform") if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_values( prim_paths[prim_index], target_prim_path + prim_paths[prim_index], prim_types[prim_index], attr_name, expected_value, ) else: check_prim_values( prim_paths[prim_index], target_prim_paths[prim_index], prim_types[prim_index], attr_name, expected_value, ) # ---------------------------------------------------------------------- async def test_read_write_prims_array_new_attr_to_fabric(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for a new array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, False, False) # ---------------------------------------------------------------------- async def test_read_write_prims_array_new_attr_to_fabric_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for a new array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, False, True) # ---------------------------------------------------------------------- async def test_read_write_prims_array_new_attr_to_usd(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for a new array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, False, False) # ---------------------------------------------------------------------- async def test_read_write_prims_array_new_attr_to_usd_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for a new array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, False, True) # ---------------------------------------------------------------------- async def test_read_write_prims_array_attr_to_fabric(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an existing array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, True, False) # ---------------------------------------------------------------------- async def test_read_write_prims_array_attr_to_fabric_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an existing array attribute, Fabric only""" await self._test_read_write_prims_vec3_array(False, True, True) # ---------------------------------------------------------------------- async def test_read_write_prims_array_attr_to_usd(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an existing array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, True, False) # ---------------------------------------------------------------------- async def test_read_write_prims_array_attr_to_usd_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims for an existing array attribute, writing back to USD""" await self._test_read_write_prims_vec3_array(True, True, True) # ---------------------------------------------------------------------- async def _test_read_write_prims_vec3_array( self, usd_write_back: bool, add_new_attr: bool, scatter_under_targets: bool ): target_prim_paths = ["/target0", "/target1"] usd_context = omni.usd.get_context() stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) cube_prim = ogts.create_cube(stage, "Cube", (1, 0, 0)) attr_name = "new_array_attr" if not add_new_attr: # if graph is not going to add a new attr, make the attr now with USD API so it exists before graph execution. # Cannot reuse primvars:displayColor because it's a color3f[], not a strict float3[], and ConstructArray node # cannot set role. cube_prim.CreateAttribute(attr_name, Sdf.ValueTypeNames.Float3Array).Set([(1, 0, 0)]) controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ("ExtractCube", "omni.graph.nodes.ExtractPrim"), ("MakeArray", "omni.graph.nodes.ConstructArray"), ("InsertAttribute", "omni.graph.nodes.InsertAttribute"), ], keys.SET_VALUES: [ ("ExtractCube.inputs:primPath", "/Cube"), ("MakeArray.inputs:arraySize", 1), ("MakeArray.inputs:arrayType", "float[3][]"), ("MakeArray.inputs:input0", [0.25, 0.50, 0.75]), ("InsertAttribute.inputs:outputAttrName", attr_name), ("Write.inputs:usdWriteBack", usd_write_back), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractCube.inputs:prims"), ("ExtractCube.outputs_primBundle", "InsertAttribute.inputs:data"), ("MakeArray.outputs:array", "InsertAttribute.inputs:attrToInsert"), ("InsertAttribute.outputs_data", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube_prim.GetPath(), ) for target_path in target_prim_paths: target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) graph_context = graph.get_default_graph_context() cube_bundle = graph_context.get_output_bundle(nodes[2], "outputs_primBundle") self.assertTrue(cube_bundle.valid) cube_path = "/Cube" def check_prim_values(source_prim_path, target_prim_path): # Check Fabric values fabric_values = stage_rt.GetPrimAtPath(target_prim_path).GetAttribute(attr_name).Get() self.assertEqual(len(fabric_values), 1) self.assertEqual(tuple(fabric_values[0]), (0.25, 0.50, 0.75)) if usd_write_back: # With USD write back, the existing attribute should be updated in USD usd_values = stage.GetPrimAtPath(target_prim_path).GetAttribute(attr_name).Get() self.assertEqual(len(usd_values), 1) self.assertEqual(tuple(usd_values[0]), (0.25, 0.50, 0.75)) else: if scatter_under_targets: self.assertFalse(stage.GetPrimAtPath(target_prim_path).IsValid()) if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_values(cube_path, target_prim_path + cube_path) else: # only one source check_prim_values(cube_path, target_prim_paths[0]) async def test_read_write_prims_remove_missing_to_usd(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB with remove missing attributes and prims matching to USD""" await self._test_read_write_prims_remove_missing(True, False) async def test_read_write_prims_remove_missing_to_usd_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB with remove missing attributes and prims matching to USD""" await self._test_read_write_prims_remove_missing(True, True) async def test_read_write_prims_remove_missing_to_fabric(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB with remove missing attributes and prims matching to Fabric""" await self._test_read_write_prims_remove_missing(False, False) async def test_read_write_prims_remove_missing_to_fabric_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB with remove missing attributes and prims matching to Fabric""" await self._test_read_write_prims_remove_missing(False, True) # ---------------------------------------------------------------------- async def _test_read_write_prims_remove_missing(self, usd_write_back: bool, scatter_under_targets: bool): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB with exact attributes and prims matching""" usd_context = omni.usd.get_context() stage_usd: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys # Stage hierarchy: # # /Xform # /Xform # /Cube2 # /Cube1 # /target0 # /target1 stage_usd.DefinePrim("/Xform", "Xform") stage_usd.DefinePrim("/Xform/Xform", "Xform") cube1_prim = stage_usd.DefinePrim("/Xform/Cube1", "Cube") cube2_prim = stage_usd.DefinePrim("/Xform/Xform/Cube2", "Cube") test_attr_name = "test_attr" test_target_existing_attr_name = "test_attr2" test_both_existing_attr_name = "test_attr3" cube1_prim.CreateAttribute(test_attr_name, Sdf.ValueTypeNames.Float3) cube2_prim.CreateAttribute(test_attr_name, Sdf.ValueTypeNames.Float3) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:usdWriteBack", usd_write_back), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage_usd.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[cube1_prim.GetPath(), cube2_prim.GetPath()], ) target_prim_paths = ["/target0", "/target1"] for target_path in target_prim_paths: target_xform = UsdGeom.Cube.Define(stage_usd, target_path) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage_usd.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) # put a Sphere under the target. This should NOT be removed by removeMissingPrims later, as it doesn't exist in the upstream bundle stage_usd.DefinePrim(target_path + "/Sphere", "Sphere") await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # check attributes are exported correctly and setup the test scenario for removeMissingAttrs # Add test_target_existing_attr_name to target prims only # Add test_both_existing_attr_name to both source and target prims for i, path in enumerate([cube1_prim.GetPath(), cube2_prim.GetPath()]): def check_initial_prim(target_prim_path): for stage in [stage_rt, stage_usd]: # Check prim prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(prim.IsValid()) # Check attribute attr = prim.GetAttribute(test_attr_name) self.assertTrue(attr.IsValid()) # skip stage_usd check if usd_write_back is off if not usd_write_back: break def add_attribute_to_source(source_prim_path): # creates additional attributes on output prims. # these attribute should not be removed, as there did not exist in upstream bundle for stage, sdf in [(stage_rt, SdfRT), (stage_usd, Sdf)]: prim = stage.GetPrimAtPath(source_prim_path) prim.CreateAttribute(test_both_existing_attr_name, sdf.ValueTypeNames.Float2, True) if not usd_write_back: break def add_attribute_to_target_output(target_prim_path): # creates additional attributes on output prims. # these attribute should not be removed, as there did not exist in upstream bundle for stage, sdf in [(stage_rt, SdfRT), (stage_usd, Sdf)]: prim = stage.GetPrimAtPath(target_prim_path) prim.CreateAttribute(test_target_existing_attr_name, sdf.ValueTypeNames.Float2, True) prim.CreateAttribute(test_both_existing_attr_name, sdf.ValueTypeNames.Float2, True) if not usd_write_back: break if scatter_under_targets: for target_prim_path in target_prim_paths: check_initial_prim(target_prim_path + path.pathString) add_attribute_to_target_output(target_prim_path + path.pathString) else: check_initial_prim(target_prim_paths[i]) add_attribute_to_target_output(target_prim_paths[i]) add_attribute_to_source(path.pathString) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # --------------------------- test removeMissingAttrs ----------------------------------------- # remove the test_attr from source and tick the graph, it must be removed from target too cube1_prim.RemoveProperty(test_attr_name) cube2_prim.RemoveProperty(test_attr_name) # remove the test_attr from source and tick the graph, it must be removed from target too cube1_prim.RemoveProperty(test_both_existing_attr_name) cube2_prim.RemoveProperty(test_both_existing_attr_name) # TODO ReadPrims node won't clear the attributes from output bundle due to lack of USD change tracking, # has to set attrNamesToImport to force a re-evaluation # FIXME when ReadPrims node properly tracks USD changes. controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ # changing filter from '*' to '**' applies same filter but forces node to re-evaluate to remove deleted attributes ("Read.inputs:attrNamesToImport", "**"), ], }, ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) for i, path in enumerate([cube1_prim.GetPath(), cube2_prim.GetPath()]): def check_prim_attr_matched(source_prim_path, target_prim_path): for stage in [stage_rt, stage_usd]: prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(prim.IsValid()) # Check attribute, it should be gone attr = prim.GetAttribute(test_attr_name) self.assertFalse(attr.IsValid()) # Check pre-existing attribute that has not been written to, it should stay attr = prim.GetAttribute(test_target_existing_attr_name) self.assertTrue(attr.IsValid()) # Check pre-existing attribute that has been written to, it should stay attr = prim.GetAttribute(test_both_existing_attr_name) self.assertTrue(attr.IsValid()) # skip stage_usd check if usd_write_back is off if not usd_write_back: break if scatter_under_targets: for target_prim_path in target_prim_paths: check_prim_attr_matched(path, target_prim_path + path.pathString) else: check_prim_attr_matched(path, target_prim_paths[i]) # ------------------------- test removeMissingPrims --------------------------------- # remove the /Cube1 from source and tick the graph, it must be removed from target too omni.kit.commands.execute( "RemoveRelationshipTarget", relationship=stage_usd.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube2_prim.GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) def check_prim_matched(target_root_path, prim_path, valid: bool): # Check USD and fabric prim, "Cube2" should be removed, "Cube1" stays target_prim_path = target_root_path + prim_path for stage in [stage_rt, stage_usd]: prim = stage.GetPrimAtPath(target_prim_path) self.assertEqual(prim.IsValid(), valid) # The pre-existing Sphere prim should still exist self.assertTrue(stage.GetPrimAtPath(target_root_path + "/Sphere").IsValid()) # The stub prim /targetN/Xform/Xform should also be removed self.assertFalse(stage.GetPrimAtPath(target_root_path + "/Xform/Xform").IsValid()) # skip stage_usd check if usd_write_back is off if not usd_write_back: break if scatter_under_targets: for i, path in enumerate([cube1_prim.GetPath(), cube2_prim.GetPath()]): for target_prim_path in target_prim_paths: check_prim_matched(target_prim_path, path.pathString, i == 0) else: check_prim_matched(target_prim_paths[0], "", True) # test removeMissingPrims with no prim input # remove all prims from ReadPrims node, and the target should be empty omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage_usd.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[], ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # target prims should have only the "Sphere" prim as child for target_prim_path in target_prim_paths: target_prim = stage_usd.GetPrimAtPath(target_prim_path) self.assertEqual(target_prim.GetAllChildrenNames(), ["Sphere"]) async def test_read_write_prims_remove_schema_properties(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB that removes attributes defined within schema""" await self._test_read_write_prims_remove_schema_properties(False) async def test_read_write_prims_remove_schema_properties_scatter(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB that removes attributes defined within schema""" await self._test_read_write_prims_remove_schema_properties(True) # ---------------------------------------------------------------------- async def _test_read_write_prims_remove_schema_properties(self, scatter_under_targets: bool): """ Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB that removes attributes defined within schema This is a USD-only test as Fabric doesn't have the schema concept yet """ usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys # Stage hierarchy: # # /Xform # /target xform_prim = stage.DefinePrim("/Xform", "Xform") # both are schema properties of Xformable test_attr_name = UsdGeom.Tokens.visibility test_rel_name = UsdGeom.Tokens.proxyPrim xform_prim.GetAttribute(UsdGeom.Tokens.visibility).Set(UsdGeom.Tokens.invisible) xform_prim.GetRelationship(test_rel_name).AddTarget("/Foo/bar") (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:usdWriteBack", True), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[xform_prim.GetPath()], ) target_xform = UsdGeom.Xform.Define(stage, "/target") omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) def check_initial_prim(target_prim_path): # Check prim prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(prim.IsValid()) # Check attribute # It should be both valid and authored for target prim attr = prim.GetAttribute(test_attr_name) self.assertTrue(attr.IsAuthored()) self.assertEqual(attr.Get(), UsdGeom.Tokens.invisible) # Check relationship # It should be both valid and authored for target prim rel = prim.GetRelationship(test_rel_name) self.assertTrue(rel.IsAuthored()) self.assertListEqual(rel.GetTargets(), ["/Foo/bar"]) if scatter_under_targets: check_initial_prim("/target/Xform") else: check_initial_prim("/target") # Remove spec for both properties # XXX cannot use RemoveProperty due to change tracking not working properly in ReadPrimsV2 node # set attrNamesToImport to empty instead to clear the attributes from ReadPrimsV2 output bundle # xform_prim.RemoveProperty(test_attr_name) # xform_prim.RemoveProperty(test_rel_name) controller.edit(self.TEST_GRAPH_PATH, {keys.SET_VALUES: ("Read.inputs:attrNamesToImport", "")}) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) def check_ticked_prim(target_prim_path): # Check prim prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(prim.IsValid()) # Check attribute # It should still exits but be reverted to unauthored schema value attr = prim.GetAttribute(test_attr_name) self.assertTrue(attr.IsValid()) self.assertFalse(attr.IsAuthored()) self.assertEqual(attr.Get(), UsdGeom.Tokens.inherited) # Check relationship # It should still exits but be reverted to unauthored schema value rel = prim.GetRelationship(test_rel_name) self.assertTrue(rel.IsValid()) self.assertFalse(rel.IsAuthored()) self.assertListEqual(rel.GetTargets(), []) if scatter_under_targets: check_ticked_prim("/target/Xform") else: check_ticked_prim("/target") # ---------------------------------------------------------------------- async def test_read_write_prims_fill_usd_hierarchy_gap(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims when some prim along target hierarchy does not fully exist""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys UsdGeom.Xform.Define(stage, "/Xform") scope = UsdGeom.Scope.Define(stage, "/Xform/Scope") cube = UsdGeom.Cube.Define(stage, "/Xform/Scope/Cube") target_xform = UsdGeom.Xform.Define(stage, "/Target") (graph, [_, _], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:usdWriteBack", True), ("Write.inputs:scatterUnderTargets", True), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube.GetPrim().GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # check the target hierarchy was created, all missing prims has the type Xform self.assertTrue(UsdGeom.Xform.Get(stage, "/Target/Xform")) self.assertTrue(UsdGeom.Xform.Get(stage, "/Target/Xform/Scope")) self.assertTrue(UsdGeom.Cube.Get(stage, "/Target/Xform/Scope/Cube")) # add /Xform/Scope to import targets omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=scope.GetPrim().GetPath(), ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # check the target hierarchy was created, because "/Xform/Scope" is also exported, # the type should be changed from Xform to Scope self.assertTrue(UsdGeom.Xform.Get(stage, "/Target/Xform")) self.assertTrue(UsdGeom.Scope.Get(stage, "/Target/Xform/Scope")) self.assertFalse(UsdGeom.Xform.Get(stage, "/Target/Xform/Scope")) self.assertTrue(UsdGeom.Cube.Get(stage, "/Target/Xform/Scope/Cube")) # ---------------------------------------------------------------------- async def test_read_write_prims_find_prims_loop_guard(self): await self._test_read_write_prims_find_prims_loop_guard(False) # ---------------------------------------------------------------------- async def test_read_write_prims_find_prims_loop_guard_scatter(self): await self._test_read_write_prims_find_prims_loop_guard(True) # ---------------------------------------------------------------------- async def _test_read_write_prims_find_prims_loop_guard(self, scatter_under_targets: bool): """Test omni.graph.nodes.ReadPrimsV2 find prims tracker and WritePrims that loop can be detect and prevented""" logging = carb.logging.acquire_logging() usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys xform = UsdGeom.Xform.Define(stage, "/Xform") xform_xform = UsdGeom.Xform.Define(stage, "/Xform/Xform") xform2 = UsdGeom.Xform.Define(stage, "/Xform2") xform2_xform = UsdGeom.Xform.Define(stage, "/Xform2/Xform") (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Read2", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Read.inputs:pathPattern", "*"), ("Write.inputs:usdWriteBack", True), ("Write.inputs:scatterUnderTargets", scatter_under_targets), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) # ------------ test path tracker on connected Read node ------------ omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=xform.GetPrim().GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=xform_xform.GetPrim().GetPath(), ) log_was_enabled = logging.is_log_enabled() # turn off carb logging so the error does not trigger test failure # og logging still works and logs node error message. logging.set_log_enabled(False) await self._evaluate_graph(graph, controller) error_message = self._get_node_messages(graph, og.ERROR) # check the error is logged self.assertEqual( error_message, [ "[/World/TestGraph] Target prim '/Xform/Xform' is a descendant of FindPrims/ReadPrims source '/Xform', writing to the target may mutate the input state. Please choose a different target" ], ) # check the target prim is NOT created if scatter_under_targets: self.assertFalse(stage.GetPrimAtPath("/Xform/Xform/Xform").IsValid()) # ------------ test path tracker on unconnected Read node ------------ controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("Read2.inputs:pathPattern", "*"), ] }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read2.inputs:prims"), target=xform2.GetPrim().GetPath(), ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), targets=[xform2_xform.GetPrim().GetPath()], ) await self._evaluate_graph(graph, controller) error_message = self._get_node_messages(graph, og.ERROR) # check the error is logged self.assertEqual( error_message, [ "[/World/TestGraph] Target prim '/Xform2/Xform' is a descendant of FindPrims/ReadPrims source '/Xform2', writing to the target may mutate the input state. Please choose a different target" ], ) # check the target prim is NOT created if scatter_under_targets: self.assertFalse(stage.GetPrimAtPath("/Xform2/Xform/Xform").IsValid()) logging.set_log_enabled(log_was_enabled) # ---------------------------------------------------------------------- async def test_write_prims_empty_bundle(self): """Test warnings and errors issued by omni.graph.nodes.WritePrimsV2 when its input bundle is empty""" controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("bundle_ctor", "omni.graph.nodes.BundleConstructor"), ("write_prims", "omni.graph.nodes.WritePrimsV2"), ], keys.CONNECT: [ ("bundle_ctor.outputs_bundle", "write_prims.inputs:primsBundle"), ], }, ) with self.CarbLogSuppressor(): await self._evaluate_graph(graph, controller) # no warning or errors messages are expected self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # ---------------------------------------------------------------------- async def test_write_prims_source_prim_path_validation_str(self): """Test warnings and errors issued by omni.graph.nodes.WritePrimsV2 when a string sourcePrimPath is detected""" await self._test_write_prims_attribute_validation_impl( "sourcePrimPath", "foo", "String", "sourcePrimPath attribute must hold a token" ) async def test_write_prims_source_prim_path_validation_int(self): """Test warnings and errors issued by omni.graph.nodes.WritePrimsV2 when an integer sourcePrimPath is detected""" await self._test_write_prims_attribute_validation_impl( "sourcePrimPath", 42, "Int", "sourcePrimPath attribute must hold a token" ) async def test_write_prims_source_prim_type_validation_str(self): """Test warnings and errors issued by omni.graph.nodes.WritePrimsV2 when a string sourcePrimType is detected""" await self._test_write_prims_attribute_validation_impl( "sourcePrimType", "bar", "String", "sourcePrimType attribute must hold a token" ) async def test_write_prims_source_prim_type_validation_int(self): """Test warnings and errors issued by omni.graph.nodes.WritePrimsV2 when an integer rsourcePrimType is detected""" await self._test_write_prims_attribute_validation_impl( "sourcePrimType", 42, "Int", "sourcePrimType attribute must hold a token" ) async def _test_write_prims_attribute_validation_impl( self, attr_name, attr_value, attr_type, expected_error_message ): usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys ogts.create_cube(stage, "Cube", (1, 0, 0)) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("CreateEmptyBundle", "omni.graph.nodes.BundleConstructor"), ("WritePrims", "omni.graph.nodes.WritePrimsV2"), ("ConstSourcePrimPath", f"omni.graph.nodes.Constant{attr_type}"), ("InsertSourcePrimPath", "omni.graph.nodes.InsertAttribute"), ], keys.SET_VALUES: [ ("ConstSourcePrimPath.inputs:value", attr_value), ("InsertSourcePrimPath.inputs:outputAttrName", attr_name), ], keys.CONNECT: [ ("ConstSourcePrimPath.inputs:value", "InsertSourcePrimPath.inputs:attrToInsert"), ("CreateEmptyBundle.outputs_bundle", "InsertSourcePrimPath.inputs:data"), ("InsertSourcePrimPath.outputs_data", "WritePrims.inputs:primsBundle"), ], }, ) target_xform = UsdGeom.Xform.Define(stage, "/Targets") omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/WritePrims.inputs:prims"), target=target_xform.GetPrim().GetPath(), ) with self.CarbLogSuppressor(): await self._evaluate_graph(graph, controller) # check the error is logged expected_message = f"[{self.TEST_GRAPH_PATH}] Bundle '{self.TEST_GRAPH_PATH}/__runtime_data/InsertSourcePrimPath_outputs_data' was skipped because it was invalid! {expected_error_message}" self.assertEqual(self._get_node_messages(graph, og.WARNING), [expected_message]) # no warning message is expected self._assert_no_compute_messages(graph, [og.ERROR]) # ---------------------------------------------------------------------- async def test_read_write_prims_to_layer(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrims MPiB to a different layer""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys session_layer = stage.GetSessionLayer() sub_layer = Sdf.Layer.CreateAnonymous() sub_layer2 = Sdf.Layer.CreateAnonymous() root_layer = stage.GetRootLayer() root_layer.subLayerPaths.append(sub_layer.identifier) root_layer.subLayerPaths.append(sub_layer2.identifier) test_layers = [session_layer, sub_layer, sub_layer2, root_layer] # switch edit target to sub_layer2 with Usd.EditContext(stage, sub_layer2): def create_scope_with_test_attrs(prim_path: str): scope = UsdGeom.Scope.Define(stage, prim_path) scope_prim = scope.GetPrim() scope_prim.CreateAttribute("test_attr_0", Sdf.ValueTypeNames.Bool).Set(True) scope_prim.CreateAttribute("test_attr_1", Sdf.ValueTypeNames.Bool).Set(True) scope_prim.CreateAttribute("test_attr_2", Sdf.ValueTypeNames.Bool).Set(True) scope_prim.CreateAttribute("test_attr_3", Sdf.ValueTypeNames.Bool).Set(True) return scope_prim test_layer_count = len(test_layers) source_prims = [] for i in range(test_layer_count): source_prims.append(create_scope_with_test_attrs(f"/Scope{i}")) # make a graph to Read from scope_prim_N, Write to scope_N_out prim with only test_attr_N to layer index N (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read0", "omni.graph.nodes.ReadPrimsV2"), ("Read1", "omni.graph.nodes.ReadPrimsV2"), ("Read2", "omni.graph.nodes.ReadPrimsV2"), ("Read3", "omni.graph.nodes.ReadPrimsV2"), ("Write0", "omni.graph.nodes.WritePrimsV2"), ("Write1", "omni.graph.nodes.WritePrimsV2"), ("Write2", "omni.graph.nodes.WritePrimsV2"), ("Write3", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write0.inputs:layerIdentifier", "<Session Layer>"), ("Write1.inputs:layerIdentifier", sub_layer.identifier), ("Write2.inputs:layerIdentifier", ""), # write to current edit target (sub_layer2 in this case) ("Write3.inputs:layerIdentifier", "<Root Layer>"), ("Write0.inputs:attrNamesToExport", "test_attr_0"), ("Write1.inputs:attrNamesToExport", "test_attr_1"), ("Write2.inputs:attrNamesToExport", "test_attr_2"), ("Write3.inputs:attrNamesToExport", "test_attr_3"), ], keys.CONNECT: [ ("Read0.outputs_primsBundle", "Write0.inputs:primsBundle"), ("Read1.outputs_primsBundle", "Write1.inputs:primsBundle"), ("Read2.outputs_primsBundle", "Write2.inputs:primsBundle"), ("Read3.outputs_primsBundle", "Write3.inputs:primsBundle"), ], }, ) for i in range(test_layer_count): omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read{i}.inputs:prims"), targets=[source_prims[i].GetPath()], ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write{i}.inputs:prims"), targets=[f"/Scope_{i}_out"], ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # Scope_0_out should only exist on test_layers[0] with test_attr_0 # Scope_1_out should only exist on test_layers[1] with test_attr_1 # Scope_2_out should only exist on test_layers[2] with test_attr_2 # Scope_3_out should only exist on test_layers[3] with test_attr_3 for layer_idx, layer in enumerate(test_layers): for prim_idx in range(test_layer_count): prim_out_spec = layer.GetPrimAtPath(f"/Scope_{prim_idx}_out") if prim_idx == layer_idx: self.assertTrue(prim_out_spec) self.assertEqual(prim_out_spec.specifier, Sdf.SpecifierDef) for attr_idx in range(test_layer_count): attr_out_spec = layer.GetAttributeAtPath(f"/Scope_{prim_idx}_out.test_attr_{attr_idx}") if attr_idx == layer_idx: self.assertTrue(attr_out_spec) self.assertTrue(attr_out_spec.default) else: self.assertFalse(attr_out_spec) else: self.assertFalse(prim_out_spec) ############################################################# # Change the target to session layer and check `over` spec test_layer_index = 2 # change value from True to False source_prims[test_layer_index].GetAttribute(f"test_attr_{test_layer_index}").Set(False) controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ (f"Write{test_layer_index}.inputs:layerIdentifier", "<Session Layer>"), ], }, ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) prim_out_spec = session_layer.GetPrimAtPath(f"/Scope_{test_layer_index}_out") self.assertTrue(prim_out_spec) self.assertEqual(prim_out_spec.specifier, Sdf.SpecifierOver) attr_out_spec = session_layer.GetAttributeAtPath( f"/Scope_{test_layer_index}_out.test_attr_{test_layer_index}" ) self.assertTrue(attr_out_spec) self.assertFalse(attr_out_spec.default) # value should be set to False because we changed it prev_attr_out_spec = test_layers[test_layer_index].GetAttributeAtPath( f"/Scope_{test_layer_index}_out.test_attr_{test_layer_index}" ) self.assertTrue(prev_attr_out_spec) self.assertTrue( prev_attr_out_spec.default ) # the value should still be True as it should not be written to anymore # ---------------------------------------------------------------------- async def test_read_write_prims_layer_identifier_resolver(self): """ Test omni.graph.nodes.ReadPrimsV2 and WritePrimsV2 layer identifier resolver Construct file hierarchy like this: /Ref/ref.usda /Ref/ref_sublayer.usda /main.usda /Ref/ref_sublayer.usda is a sublayer of /Ref/ref.usda A graph with WritePrimsV2 node is in /Ref/ref.usda, with a layerIdentifier to ./ref_sublayer.usda If /Ref/ref.usda is opened in Kit and graph executes, the output should be written to /Ref/ref_sublayer.usda /Ref/ref_sublayer.usda is also a sublayer of /main.usda /main.usda also references /Ref/ref.usda If /main.usda is opened in Kit and graph executes, the relative layerIdentifier of ./ref_sublayer.usda should still be resolved to /Ref/ref_sublayer.usda, but not /ref_sublayer.usda, and graph out put on that layer. """ with tempfile.TemporaryDirectory() as tmpdirname: usd_context = omni.usd.get_context() controller = og.Controller() keys = og.Controller.Keys ref_dir = os.path.join(tmpdirname, "Ref") ref_sublayer_fn = os.path.join(ref_dir, "ref_sub_layer.usda") ref_sublayer = Sdf.Layer.CreateNew(ref_sublayer_fn) ref_sublayer.Save() ref_fn = os.path.join(ref_dir, "ref.usda") Sdf.Layer.CreateNew(ref_fn).Save() success, error = await usd_context.open_stage_async(str(ref_fn)) self.assertTrue(success, error) stage = usd_context.get_stage() root_layer = stage.GetRootLayer() root_layer.subLayerPaths.append("./ref_sub_layer.usda") world = UsdGeom.Xform.Define(stage, "/World") stage.SetDefaultPrim(world.GetPrim()) source = UsdGeom.Scope.Define(stage, "/World/Source") source_prim = source.GetPrim() source_prim.CreateAttribute("test_attr", Sdf.ValueTypeNames.Bool).Set(True) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:layerIdentifier", "./ref_sub_layer.usda"), ("Write.inputs:attrNamesToExport", "test_attr"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=["/World/Source"], ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), targets=["/World/Target"], ) # Block saving the stage first before graph ticking. The ticked result should not be saved and discard later result = usd_context.save_stage() self.assertTrue(result) # Tick the graph to make sure the layerIdentifier is resolved correctly within /Ref/ref.usda stage await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) prim_out_spec = ref_sublayer.GetPrimAtPath("/World/Target") self.assertTrue(prim_out_spec) self.assertEqual(prim_out_spec.specifier, Sdf.SpecifierDef) attr_out_spec = ref_sublayer.GetAttributeAtPath("/World/Target.test_attr") self.assertTrue(attr_out_spec) self.assertTrue(attr_out_spec.default) prim_out_spec = root_layer.GetPrimAtPath("/World/Target") self.assertFalse(prim_out_spec) # close the stage and release layer ref to discard all temporary changes. await omni.usd.get_context().close_stage_async() ref_sublayer = None # Now make the main.usda, add Ref/ref.usda as a reference and tick graph main_fn = os.path.join(tmpdirname, "main.usda") Sdf.Layer.CreateNew(main_fn).Save() success, error = await usd_context.open_stage_async(str(main_fn)) self.assertTrue(success, error) stage = usd_context.get_stage() # Add "./Ref/ref_sub_layer.usda" again as a local sublayer so graph can resolve and write to it on this new stage root_layer = stage.GetRootLayer() root_layer.subLayerPaths.append("./Ref/ref_sub_layer.usda") # For whatever reason need to make an empty graph otherwise test crashes when referencing in "./Ref/ref.usda" # same code does NOT crash while executed within Kit Script Editor without the dummy graph controller.edit("/dummy", {}) ref_prim = stage.DefinePrim("/Ref") refs = ref_prim.GetReferences() refs.AddReference("./Ref/ref.usda") # reopen Ref/ref_sublayer.usda ref_sublayer = Sdf.Layer.FindOrOpen(ref_sublayer_fn) self.assertTrue(ref_sublayer) # double check the target spec does not exist before tick the graph self.assertFalse(ref_sublayer.GetPrimAtPath("/Ref/Target")) # let OG populate the referenced graph await omni.kit.app.get_app().next_update_async() # Tick the graph to make sure the layerIdentifier is resolved correctly when referencing /Ref/ref.usda graph = og.get_graph_by_path("/Ref/TestGraph") await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # the references graph should be able to resolve layerIdentifier even if the relative path anchors differently prim_out_spec = ref_sublayer.GetPrimAtPath("/Ref/Target") self.assertTrue(prim_out_spec) self.assertEqual(prim_out_spec.specifier, Sdf.SpecifierDef) attr_out_spec = ref_sublayer.GetAttributeAtPath("/Ref/Target.test_attr") self.assertTrue(attr_out_spec) self.assertTrue(attr_out_spec.default) prim_out_spec = root_layer.GetPrimAtPath("/Ref/Target") self.assertFalse(prim_out_spec) # ---------------------------------------------------------------------- async def test_write_prims_relationship(self): """Test WritePrims MPiB to export a relationship""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() stage_rt = UsdRT.Stage.Attach(usd_context.get_stage_id()) controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("RelBundle", "__test_write_prims_v2__.relationship_bundle"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.CONNECT: [ ("RelBundle.outputs_out_0", "Write.inputs:primsBundle"), ], }, ) target_path = "/Target" target_xform = UsdGeom.Xform.Define(stage, target_path) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), targets=[target_xform.GetPrim().GetPath()], ) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) # Check USD prim relationship prim = stage.GetPrimAtPath(target_path) rel = prim.GetRelationship(REL_BUNDLE_TRL_NAME) self.assertTrue(rel) self.assertListEqual(REL_BUNDLE_TARGETS, rel.GetTargets()) # Check Fabric prim relationship prim_rt = stage_rt.GetPrimAtPath(target_path) rel_rt = prim_rt.GetRelationship(REL_BUNDLE_TRL_NAME) self.assertTrue(rel_rt) self.assertListEqual(REL_BUNDLE_TARGETS_RT, rel_rt.GetTargets()) # ---------------------------------------------------------------------- async def test_write_prims_interpolation(self): """Test writing interpolation metadata through omni.graph.nodes.WritePrimsV2""" target_prim_path = "/target" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys xform_prim = UsdGeom.Xform.Define(stage, target_prim_path) cube_prim = ogts.create_cube(stage, "Cube1", (1, 0, 0)) (graph, [_, _], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Write", "omni.graph.nodes.WritePrimsV2"), ], keys.SET_VALUES: [ ("Write.inputs:scatterUnderTargets", True), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Write.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), targets=[cube_prim.GetPath()], ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prims"), target=xform_prim.GetPrim().GetPath(), ) # Set the interpolation on a primvar interpolation = "uniform" primvar = UsdGeom.Primvar(cube_prim.GetAttribute("primvars:displayColor")) self.assertTrue(primvar) primvar.SetInterpolation(interpolation) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) target_prim_path = xform_prim.GetPath().AppendPath( cube_prim.GetPath().MakeRelativePath(Sdf.Path.absoluteRootPath) ) target_prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(target_prim) attr = target_prim.GetAttribute("primvars:displayColor") self.assertTrue(attr) primvar = UsdGeom.Primvar(attr) self.assertTrue(primvar) self.assertEqual(primvar.GetInterpolation(), interpolation) # Change the interpolation of the input prim, then evaluate the graph again... interpolation = "constant" primvar = UsdGeom.Primvar(cube_prim.GetAttribute("primvars:displayColor")) self.assertTrue(primvar) primvar.SetInterpolation(interpolation) await self._evaluate_graph(graph, controller) self._assert_no_compute_messages(graph, [og.WARNING, og.ERROR]) target_prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(target_prim) attr = target_prim.GetAttribute("primvars:displayColor") self.assertTrue(attr) primvar = UsdGeom.Primvar(attr) self.assertTrue(primvar) self.assertEqual(primvar.GetInterpolation(), interpolation) # Finally, clear the metadata on the input prim and ensure that the metadata is cleared on the output prim attr = cube_prim.GetAttribute("primvars:displayColor") attr.ClearMetadata("interpolation") await self._evaluate_graph(graph, controller) # Just check for errors here; we do expect to get a warning that the metadata field no longer exists self._assert_no_compute_messages(graph, [og.ERROR]) target_prim = stage.GetPrimAtPath(target_prim_path) self.assertTrue(target_prim) attr = target_prim.GetAttribute("primvars:displayColor") self.assertTrue(attr) self.assertFalse(attr.HasMetadata("interpolation")) # ---------------------------------------------------------------------- # Helpers def _assert_no_compute_messages(self, graph, severity_list): graph_nodes = graph.get_nodes() for severity in severity_list: for node in graph_nodes: self.assertEqual(node.get_compute_messages(severity), []) async def _evaluate_graph(self, graph, controller): await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() def _get_node_messages(self, graph, severity): error_message = [] graph_nodes = graph.get_nodes() for node in graph_nodes: error = node.get_compute_messages(severity) if error: error_message += error return error_message class CarbLogSuppressor: def __init__(self): self.logging = carb.logging.acquire_logging() self.log_was_enabled = self.logging.is_log_enabled() def __enter__(self): # turn off carb logging so the error does not trigger test failure # og logging still works and logs node error message. self.logging.set_log_enabled(False) return self def __exit__(self, *_): # restore carb logging self.logging.set_log_enabled(self.log_was_enabled)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_read_prim_node.py
# noqa: PLC0302 from math import isnan import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test from pxr import Sdf, Usd, UsdGeom # Tests for ReadPrim (singular) node class TestReadPrimNode(ogts.OmniGraphTestCase): """Unit tests for ReadPrim node in this extension""" async def test_read_prim_node_v1(self): """Validate backward compatibility for legacy versions of ReadPrim node.""" # load the test scene which contains a ReadPrim V1 node (result, error) = await ogts.load_test_file("TestReadPrimNode_v1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/World/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) read_prim_node = test_graph.get_node(test_graph_path + "/read_prim") self.assertTrue(read_prim_node.is_valid()) # validate new attributes can be automatically created with their default value set. self.assertTrue(read_prim_node.get_attribute_exists("inputs:computeBoundingBox")) self.assertFalse(read_prim_node.get_attribute("inputs:computeBoundingBox").get()) self.assertTrue(read_prim_node.get_attribute_exists("inputs:usdTimecode")) self.assertTrue(isnan(read_prim_node.get_attribute("inputs:usdTimecode").get())) # Tests for ReadPrimBundle node class TestReadPrimsBundle(ogts.OmniGraphTestCase): """Unit tests for ReadPrimBundle node in this extension""" async def test_read_prims_bundle_node_target_mpib(self): """Validate backward compatibility for legacy versions of ReadPrim node.""" (result, error) = await ogts.load_test_file("TestReadPrimNode_targetMPiB.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) test_context = test_graph.get_default_graph_context() read_prim_bundle_node = test_graph.get_node(test_graph_path + "/read_prims_into_bundle") self.assertTrue(read_prim_bundle_node.is_valid()) factory = og.IBundleFactory.create() output_bundle = test_context.get_output_bundle(read_prim_bundle_node, "outputs_primsBundle") output_bundle2 = factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle2.valid) self.assertTrue(output_bundle2.get_child_bundle_count(), 2) child0 = output_bundle2.get_child_bundle(0) child1 = output_bundle2.get_child_bundle(1) self.assertTrue(child0.valid) self.assertTrue(child1.valid) self.assertTrue("size" in child0.get_attribute_names()) self.assertTrue("size" in child1.get_attribute_names()) async def test_read_prims_bundle_node_path_mpib(self): """Load multiple primitives into a bundle through input path""" (result, error) = await ogts.load_test_file("TestReadPrimNode_pathMPiB.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) test_context = test_graph.get_default_graph_context() read_prim_bundle_node = test_graph.get_node(test_graph_path + "/read_prims_into_bundle") self.assertTrue(read_prim_bundle_node.is_valid()) factory = og.IBundleFactory.create() output_bundle = test_context.get_output_bundle(read_prim_bundle_node, "outputs_primsBundle") output_bundle2 = factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle2.valid) self.assertTrue(output_bundle2.get_child_bundle_count(), 2) child0 = output_bundle2.get_child_bundle(0) child1 = output_bundle2.get_child_bundle(1) self.assertTrue(child0.valid) self.assertTrue(child1.valid) self.assertTrue("size" in child0.get_attribute_names()) self.assertTrue("size" in child1.get_attribute_names()) # Tests for both ReadPrims (legacy) and ReadPrimsV2 node # Must be inherited by a child test class to be tested class TestReadPrimsCommon: """Unit tests for both ReadPrims (legacy) and ReadPrimsV2 node in this extension""" def __init__(self, read_prims_node_type): self._read_prims_node_type = read_prims_node_type async def test_import_matrix_and_bbox(self): """Verify that bounding box and matrix are correctly computed by ReadPrim.""" controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() # create 500 cubes to feed ReadPrims and trigger its concurrent collection of prims cube_paths = [] cubes = [] for i in range(500): cube_path = "/World/Cube" + str(i) cube = ogts.create_cube(stage, cube_path[1:], (1, 1, 1)) UsdGeom.Xformable(cube).AddTranslateOp() cube_paths.append(cube_path) cubes.append(cube) self.assertEqual(cube.GetPath(), cube_path) # noqa: PLE1101 (_, nodes, _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("ReadPrims", self._read_prims_node_type), ("ExtractPrim", "omni.graph.nodes.ExtractPrim"), ("ExtractBundle", "omni.graph.nodes.ExtractBundle"), ("Inv", "omni.graph.nodes.OgnInvertMatrix"), ("Const0", "omni.graph.nodes.ConstantDouble3"), ("Const1", "omni.graph.nodes.ConstantDouble3"), ], keys.SET_VALUES: [ ("ExtractPrim.inputs:primPath", cube_paths[0]), ], keys.CONNECT: [ ("ReadPrims.outputs_primsBundle", "ExtractPrim.inputs:prims"), ("ExtractPrim.outputs_primBundle", "ExtractBundle.inputs:bundle"), ], }, ) # add target prim omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath("/TestGraph/ReadPrims.inputs:prims"), targets=cube_paths, ) # get initial output attributes await controller.evaluate() # connect the matrix controller.edit("/TestGraph", {keys.CONNECT: ("ExtractBundle.outputs:worldMatrix", "Inv.inputs:matrix")}) await controller.evaluate() read_prims_node = nodes[0] extract_bundle = nodes[2] # We did not ask for BBox self.assertFalse(read_prims_node.get_attribute_exists("outputs:bboxMinCorner")) # noqa: PLE1101 self.assertFalse(read_prims_node.get_attribute_exists("outputs:bboxMaxCorner")) # noqa: PLE1101 self.assertFalse(read_prims_node.get_attribute_exists("outputs:bboxTransform")) # noqa: PLE1101 # but we should have the default matrix mat_attr = extract_bundle.get_attribute("outputs:worldMatrix") mat = mat_attr.get() self.assertTrue((mat == [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]).all()) # noqa: PLE1101 # move the cube, check the new matrix pos = cubes[0].GetAttribute("xformOp:translate") pos.Set((2, 2, 2)) await controller.evaluate() mat = mat_attr.get() self.assertTrue((mat == [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2, 2, 2, 1]).all()) # noqa: PLE1101 # now ask for bbox, and check its value controller.edit( "/TestGraph", { keys.SET_VALUES: ("ReadPrims.inputs:computeBoundingBox", True), }, ) await controller.evaluate() self.assertTrue(extract_bundle.get_attribute_exists("outputs:bboxMinCorner")) # noqa: PLE1101 self.assertTrue(extract_bundle.get_attribute_exists("outputs:bboxMaxCorner")) # noqa: PLE1101 self.assertTrue(extract_bundle.get_attribute_exists("outputs:bboxTransform")) # noqa: PLE1101 # connect the bbox controller.edit( "/TestGraph", { keys.CONNECT: [ ("ExtractBundle.outputs:bboxMinCorner", "Const0.inputs:value"), ("ExtractBundle.outputs:bboxMaxCorner", "Const1.inputs:value"), ] }, ) await controller.evaluate() bbox_min = extract_bundle.get_attribute("outputs:bboxMinCorner") bbox_max = extract_bundle.get_attribute("outputs:bboxMaxCorner") bbox_min_val = bbox_min.get() bbox_max_val = bbox_max.get() self.assertTrue((bbox_min_val == [-0.5, -0.5, -0.5]).all()) # noqa: PLE1101 self.assertTrue((bbox_max_val == [0.5, 0.5, 0.5]).all()) # noqa: PLE1101 # then resize the cube, and check new bbox ext = cubes[0].GetAttribute("extent") ext.Set([(-10, -10, -10), (10, 10, 10)]) await controller.evaluate() bbox_min_val = bbox_min.get() bbox_max_val = bbox_max.get() self.assertTrue((bbox_min_val == [-10, -10, -10]).all()) # noqa: PLE1101 self.assertTrue((bbox_max_val == [10, 10, 10]).all()) # noqa: PLE1101 async def _test_apply_skel_binding_on_skinned_model(self, test_scene): """shared function to validate applying skel binding on a model which has SkelBindingAPI schema.""" # load test scene which contains a mesh that is bound with a skeleton and a skel animation (result, error) = await ogts.load_test_file(test_scene, use_caller_subdirectory=True) self.assertTrue(result, error) # noqa: PLE1101 controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() bundle_factory = og.IBundleFactory.create() # create a ReadPrims node (test_graph, [read_prims_node], _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("read_prims", self._read_prims_node_type), ], }, ) # add target prim cylinder_path = "/Root/group1/pCylinder1_Skinned" omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath("/TestGraph/read_prims.inputs:prims"), target=cylinder_path, ) await controller.evaluate() # validate a single child bundle is created when applySkelBinding is not enabled yet. test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(read_prims_node, "outputs_primsBundle") output_bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle.valid) # noqa: PLE1101 child_bundles = output_bundle.get_child_bundles() self.assertTrue(len(child_bundles), 1) # noqa: PLE1101 single_prim_in_bundle = child_bundles[0] self.assertTrue(single_prim_in_bundle.valid) # noqa: PLE1101 source_prim_path_str = "sourcePrimPath" source_prim_path_attr = single_prim_in_bundle.get_attribute_by_name(source_prim_path_str) self.assertTrue(source_prim_path_attr.is_valid()) # noqa: PLE1101 self.assertEqual(source_prim_path_attr.get(), cylinder_path) # noqa: PLE1101 attributes_without_skel_binding = set(single_prim_in_bundle.get_attribute_names()) self.assertTrue("points" in attributes_without_skel_binding) # noqa: PLE1101 self.assertTrue("normals" in attributes_without_skel_binding) # noqa: PLE1101 # apply skel binding controller.edit( "/TestGraph", { keys.SET_VALUES: ("read_prims.inputs:applySkelBinding", True), }, ) await controller.evaluate() # validate child bundles are created for cylinder, skeleton and skel animation. child_bundles = output_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 3) # noqa: PLE1101 cylinder_bundle = None skeleton_bundle = None skelanim_bundle = None for child_bundle in child_bundles: source_prim_path_attr = child_bundle.get_attribute_by_name(source_prim_path_str) if source_prim_path_attr.get() == cylinder_path: cylinder_bundle = child_bundle else: source_prim_type_attr = child_bundle.get_attribute_by_name("sourcePrimType") source_prim_type = source_prim_type_attr.get() if source_prim_type == "Skeleton": skeleton_bundle = child_bundle elif source_prim_type == "SkelAnimation": skelanim_bundle = child_bundle self.assertIsNotNone(cylinder_bundle) # noqa: PLE1101 self.assertIsNotNone(skeleton_bundle) # noqa: PLE1101 self.assertIsNotNone(skelanim_bundle) # noqa: PLE1101 # the cylinder bundle has the skel:skeleton attribute that stores the link to the Skeleton bundle skeleton_path_attr = cylinder_bundle.get_attribute_by_name("skel:skeleton") self.assertTrue(skeleton_path_attr.is_valid()) # noqa: PLE1101 source_prim_path_attr = skeleton_bundle.get_attribute_by_name(source_prim_path_str) self.assertTrue(source_prim_path_attr.is_valid()) # noqa: PLE1101 skeleton_path = skeleton_path_attr.get() self.assertEqual(source_prim_path_attr.get(), skeleton_path) # noqa: PLE1101 # the skeleton bundle has the skel:animationSource attribute that stores the link to the SkelAnimation bundle skelanim_path_attr = skeleton_bundle.get_attribute_by_name("skel:animationSource") self.assertTrue(skelanim_path_attr.is_valid()) # noqa: PLE1101 source_prim_path_attr = skelanim_bundle.get_attribute_by_name(source_prim_path_str) self.assertTrue(source_prim_path_attr.is_valid()) # noqa: PLE1101 skelanim_path = skelanim_path_attr.get() self.assertEqual(source_prim_path_attr.get(), skelanim_path) # noqa: PLE1101 # validate additional skel attributes added to the cylinder bundle attributes_with_skel_binding = set(cylinder_bundle.get_attribute_names()) self.assertTrue(attributes_without_skel_binding.issubset(attributes_with_skel_binding)) # noqa: PLE1101 additional_skel_attributes = attributes_with_skel_binding.difference(attributes_without_skel_binding) self.assertTrue("points:default" in additional_skel_attributes) # noqa: PLE1101 self.assertTrue("normals:default" in additional_skel_attributes) # noqa: PLE1101 # validate the joints attribute joints_attr = skeleton_bundle.get_attribute_by_name("joints") self.assertTrue(joints_attr.is_valid()) # noqa: PLE1101 num_joints = joints_attr.size() # validate the rest pose matrix_attr_type = og.Type(og.BaseDataType.DOUBLE, 16, 1, og.AttributeRole.MATRIX) rest_transforms_attr = skeleton_bundle.get_attribute_by_name("restTransforms") self.assertTrue(rest_transforms_attr.is_valid()) # noqa: PLE1101 self.assertEqual(rest_transforms_attr.get_type(), matrix_attr_type) # noqa: PLE1101 self.assertEqual(rest_transforms_attr.size(), num_joints) # noqa: PLE1101 # validate the animated pose which is stored at the "jointLocalTransforms" attribute joint_local_transforms_attr = skeleton_bundle.get_attribute_by_name("jointLocalTransforms") self.assertTrue(joint_local_transforms_attr.is_valid()) # noqa: PLE1101 self.assertEqual(joint_local_transforms_attr.get_type(), matrix_attr_type) # noqa: PLE1101 self.assertEqual(joint_local_transforms_attr.size(), num_joints) # noqa: PLE1101 async def test_apply_skel_binding_on_authored_skeletal_relationships(self): """validate applying skel binding on a prim that has SkelBindingAPI schema and authored skeletal relationships.""" await self._test_apply_skel_binding_on_skinned_model("skelcylinder.usda") async def test_apply_skel_binding_on_inherited_skeletal_relationships(self): """validate applying skel binding on a prim that has SkelBindingAPI schema and inherited skeletal relationships.""" await self._test_apply_skel_binding_on_skinned_model("skelcylinder_inherited_skeleton.usda") async def test_apply_skel_binding_on_model_without_normals(self): """validate applying skel binding on a model which has SkelBindingAPI schema and no normals.""" # load test scene which contains a mesh that is bound with a skeleton and a skel animation (result, error) = await ogts.load_test_file("skel_model_without_normals.usda", use_caller_subdirectory=True) self.assertTrue(result, error) # noqa: PLE1101 controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() bundle_factory = og.IBundleFactory.create() # create a ReadPrims node (test_graph, [read_prims_node], _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("read_prims", self._read_prims_node_type), ], keys.SET_VALUES: [ # Remove the normals attribute from the list of attributes to import, because ReadPrims # imports normals by default, and we want to test the SkelBinding when the normals are not # imported. ("read_prims.inputs:attrNamesToImport", "* ^normals") ], }, ) # add target prim mesh_path = "/Model/Arm" omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath("/TestGraph/read_prims.inputs:prims"), target=mesh_path, ) await controller.evaluate() # validate a single child bundle is created when applySkelBinding is not enabled yet. test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(read_prims_node, "outputs_primsBundle") output_bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle.valid) # noqa: PLE1101 child_bundles = output_bundle.get_child_bundles() self.assertTrue(len(child_bundles), 1) # noqa: PLE1101 mesh_bundle = child_bundles[0] self.assertTrue(mesh_bundle.valid) # noqa: PLE1101 # the mesh bundle has points but no normals attributes_without_skel_binding = set(mesh_bundle.get_attribute_names()) self.assertTrue("points" in attributes_without_skel_binding) # noqa: PLE1101 self.assertFalse("normals" in attributes_without_skel_binding) # noqa: PLE1101 # apply skel binding controller.edit( "/TestGraph", { keys.SET_VALUES: ("read_prims.inputs:applySkelBinding", True), }, ) await controller.evaluate() # there will be three bundles and we need to get the mesh bundles child_bundles = output_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 3) # noqa: PLE1101 mesh_bundle = None for child_bundle in child_bundles: source_prim_path_attr = child_bundle.get_attribute_by_name("sourcePrimPath") if source_prim_path_attr.get() == mesh_path: mesh_bundle = child_bundle break self.assertIsNotNone(mesh_bundle) # noqa: PLE1101 # validate additional skel attributes added to the cylinder bundle attributes_with_skel_binding = set(mesh_bundle.get_attribute_names()) self.assertTrue(attributes_without_skel_binding.issubset(attributes_with_skel_binding)) # noqa: PLE1101 additional_skel_attributes = attributes_with_skel_binding.difference(attributes_without_skel_binding) self.assertTrue("points:default" in additional_skel_attributes) # noqa: PLE1101 self.assertFalse("normals:default" in additional_skel_attributes) # noqa: PLE1101 async def test_apply_skel_binding_on_prim_without_required_schema(self): """validate applying skel binding to a simple cube which has no SkelBindingAPI schema.""" controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() bundle_factory = og.IBundleFactory.create() # create a ReadPrims node (test_graph, [read_prims_node], _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("read_prims", self._read_prims_node_type), ], }, ) # add target prim cube = ogts.create_cube(stage, "World/Cube", (1, 1, 1)) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath("/TestGraph/read_prims.inputs:prims"), target=cube.GetPath(), ) await controller.evaluate() # validate a single child bundle is created before applying skel binding. test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(read_prims_node, "outputs_primsBundle") output_bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle.valid) # noqa: PLE1101 child_bundles = output_bundle.get_child_bundles() self.assertTrue(len(child_bundles), 1) # noqa: PLE1101 child_bundle_before_skel_binding = child_bundles[0] self.assertTrue(child_bundle_before_skel_binding.valid) # noqa: PLE1101 source_prim_path_str = "sourcePrimPath" source_prim_path_attr = child_bundle_before_skel_binding.get_attribute_by_name(source_prim_path_str) self.assertTrue(source_prim_path_attr.is_valid()) # noqa: PLE1101 self.assertEqual(source_prim_path_attr.get(), cube.GetPath()) # noqa: PLE1101 attributes_before_skel_binding = set(child_bundle_before_skel_binding.get_attribute_names()) # apply skel binding controller.edit( "/TestGraph", { keys.SET_VALUES: ("read_prims.inputs:applySkelBinding", True), }, ) await controller.evaluate() # validate no additional child bundle is created after applying skel binding. child_bundles = output_bundle.get_child_bundles() self.assertEqual(len(child_bundles), 1) # noqa: PLE1101 child_bundle_after_skel_binding = child_bundles[0] self.assertTrue(child_bundle_after_skel_binding.valid) # noqa: PLE1101 source_prim_path_attr = child_bundle_after_skel_binding.get_attribute_by_name(source_prim_path_str) self.assertTrue(source_prim_path_attr.is_valid()) # noqa: PLE1101 self.assertEqual(source_prim_path_attr.get(), cube.GetPath()) # noqa: PLE1101 # validate no additional attributes have been added to the bundle attributes_after_skel_binding = set(child_bundle_after_skel_binding.get_attribute_names()) self.assertEqual(attributes_before_skel_binding, attributes_after_skel_binding) # noqa: PLE1101 async def _test_apply_skel_binding_on_joint_ordering(self, test_scene, path_skinned_mesh, path_baked_mesh): """shared function to validate applying skel binding on joint ordering.""" test_graph_path = "/TestGraph" time_code_range = range(1, 30) # load test scene which contains a mesh that is bound with a skeleton and a skel animation (result, error) = await ogts.load_test_file(test_scene, use_caller_subdirectory=True) self.assertTrue(result, error) # noqa: PLE1101 controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() bundle_factory = og.IBundleFactory.create() (test_graph, (_, extracter_0, extracter_1), _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("ReadPrims", self._read_prims_node_type), ("ExtractPrim_SkelBinding", "omni.graph.nodes.ExtractPrim"), ("ExtractPrim_BakeSkinning", "omni.graph.nodes.ExtractPrim"), ], keys.SET_VALUES: [ ("ReadPrims.inputs:applySkelBinding", True), ("ExtractPrim_SkelBinding.inputs:primPath", path_skinned_mesh), ("ExtractPrim_BakeSkinning.inputs:primPath", path_baked_mesh), ], keys.CONNECT: [ ("ReadPrims.outputs_primsBundle", "ExtractPrim_SkelBinding.inputs:prims"), ("ReadPrims.outputs_primsBundle", "ExtractPrim_BakeSkinning.inputs:prims"), ], }, ) # Assign the target prims to the import node. cylinder_paths = [path_skinned_mesh, path_baked_mesh] omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(test_graph_path + "/ReadPrims.inputs:prims"), targets=cylinder_paths, ) # get initial output attributes await controller.evaluate() # fetch skinned points test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(extracter_0, "outputs_primBundle") bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(bundle.valid) # noqa: PLE1101 skinned_points_attr = bundle.get_attribute_by_name("points") self.assertTrue(skinned_points_attr.is_valid()) # noqa: PLE1101 # fetch baked points test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(extracter_1, "outputs_primBundle") bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(bundle.valid) # noqa: PLE1101 baked_points_attr = bundle.get_attribute_by_name("points") self.assertTrue(baked_points_attr.is_valid()) # noqa: PLE1101 # playback and compare the two lists of points for time_code in time_code_range: controller.edit( test_graph_path, {keys.SET_VALUES: ("ReadPrims.inputs:usdTimecode", time_code)}, ) await og.Controller.evaluate(test_graph) skinned_points = skinned_points_attr.get().tolist() self.assertTrue(isinstance(skinned_points, list)) # noqa: PLE1101 self.assertTrue(len(skinned_points) != 0) # noqa: PLE1101 baked_points = baked_points_attr.get().tolist() self.assertTrue(isinstance(baked_points, list)) # noqa: PLE1101 self.assertTrue(len(baked_points) != 0) # noqa: PLE1101 self.assertTrue(skinned_points == baked_points) # noqa: PLE1101 async def test_apply_skel_binding_on_joint_ordering(self): """validate applying skel binding on joint ordering which is defined on skeleton but may or may not be overridden by skinned mesh""" # The skinned meshes are baked offline with the following script. Then we can compare the computation result of the # `ReadPrims` node with the baked meshes. # # from pxr import Gf, Usd, UsdSkel # # testFile = "lbs.usda" # stage = Usd.Stage.Open(testFile) # # UsdSkel.BakeSkinning(stage.Traverse()) # # stage.GetRootLayer().Export("lbs.baked.usda") # Each tuple is (test_scene, path_skinned_mesh, path_baked_mesh) test_cases = [ ("lbs.usda", "/Root/Mesh_Skinned", "/Root/Mesh_Baked"), ("lbs_custom_joint_ordering.usda", "/Root/Mesh_Skinned", "/Root/Mesh_Baked"), ("skelcylinder.usda", "/Root/group1/pCylinder1_Skinned", "/Root/group1/pCylinder1_Baked"), ( "skelcylinder_custom_joint_ordering.usda", "/Root/group1/pCylinder1_Skinned", "/Root/group1/pCylinder1_Baked", ), ] for test_case in test_cases: await self._test_apply_skel_binding_on_joint_ordering(*test_case) async def test_read_prims_attribute_filter(self): """Validate the attribute filter functionality of ReadPrim.""" await self._test_attribute_filter(self._read_prims_node_type) async def _test_attribute_filter(self, node_type): """Shared function to validate the attribute filter functionality of ReadPrimBundle and ReadPrim.""" controller = og.Controller() keys = og.Controller.Keys test_graph_path = "/TestGraph" (test_graph, [read_prims_node], _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [("read_prims_node", node_type)], }, ) # Create a cube and connect it as the input prim. stage = omni.usd.get_context().get_stage() cube = ogts.create_cube(stage, "World/Cube", (1, 1, 1)) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(test_graph_path + "/read_prims_node.inputs:prims"), target=cube.GetPath(), ) await controller.evaluate() # Get the output bundle. test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(read_prims_node, "outputs_primsBundle") bundle_factory = og.IBundleFactory.create() output_bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(output_bundle.valid) # noqa: PLE1101 self.assertEqual(output_bundle.get_child_bundle_count(), 1) # noqa: PLE1101 # Get the only child bundle. child_bundle = output_bundle.get_child_bundle(0) self.assertTrue(child_bundle.valid) # noqa: PLE1101 # The "size" attribute is expected for a cube by default. default_attribute_names = child_bundle.get_attribute_names() self.assertTrue("size" in default_attribute_names) # noqa: PLE1101 # The filtered attribute names will be the same as the default. attr_filters = ["*", "* dummy", "dummy *"] for attr_filter in attr_filters: controller.edit( test_graph_path, { keys.SET_VALUES: ("read_prims_node.inputs:attrNamesToImport", attr_filter), }, ) await controller.evaluate() self.assertEqual(set(child_bundle.get_attribute_names()), set(default_attribute_names)) # noqa: PLE1101 # The filtered attribute names will contain "size" only. attr_filters = [ "size", "size dummy", "dummy size", "????", "s???", "?ize", "?i?e", "*z?", "?im* ?ix* ?iz*", "???? dummy", "dummy ????", ] # "sourcePrimPath", "sourcePrimType" and "worldMatrix" are additional attributes created by the node. expected_attribute_names = {"sourcePrimPath", "sourcePrimType", "worldMatrix", "size"} for attr_filter in attr_filters: controller.edit( test_graph_path, { keys.SET_VALUES: ("read_prims_node.inputs:attrNamesToImport", attr_filter), }, ) await controller.evaluate() self.assertEqual(set(child_bundle.get_attribute_names()), expected_attribute_names) # noqa: PLE1101 # The filtered attribute names will not contain "size". attr_filters = [ " ", "Size", "SIZE", "dummy", "sizedummy", "dummysize", "size:dummy", "dummy:size", "size&dummy", "dummy&size", "*:dummy", "dummy:*", "???", "??", "?", "????:dummy", "dummy:????", ] # "sourcePrimPath", "sourcePrimType" and "worldMatrix" are additional attributes created by the node. expected_attribute_names = {"sourcePrimPath", "sourcePrimType", "worldMatrix"} for attr_filter in attr_filters: controller.edit( test_graph_path, { keys.SET_VALUES: ("read_prims_node.inputs:attrNamesToImport", attr_filter), }, ) await controller.evaluate() self.assertEqual(set(child_bundle.get_attribute_names()), expected_attribute_names) # noqa: PLE1101 async def test_read_prims_time_code_mpib(self): """Test whether points and normals keep consistent after modifying time code.""" controller = og.Controller() keys = og.Controller.Keys bundle_factory = og.IBundleFactory.create() stage = omni.usd.get_context().get_stage() # Create two cubes, whose types are Mesh and Cube respectively. cube_paths = ["/cube_mesh", "/cube_shape"] _, default_cube_mesh_path = omni.kit.commands.execute("CreateMeshPrim", prim_type="Cube") omni.kit.commands.execute("MovePrim", path_from=default_cube_mesh_path, path_to=cube_paths[0]) og.Controller.create_prim(cube_paths[1], {}, "Cube") # Create a graph that reads the two prims and extract the bundle of the cube mesh test_graph_path = "/TestGraph" (test_graph, [_, extract_prim_node], _, _,) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("read_prims", self._read_prims_node_type), ("extract_prim", "omni.graph.nodes.ExtractPrim"), ], keys.SET_VALUES: [ ("extract_prim.inputs:primPath", cube_paths[0]), ], keys.CONNECT: [ ("read_prims.outputs_primsBundle", "extract_prim.inputs:prims"), ], }, ) # Assign the target prims to the import node. omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(test_graph_path + "/read_prims.inputs:prims"), targets=cube_paths, ) await og.Controller.evaluate(test_graph) # Get output bundle. test_context = test_graph.get_default_graph_context() output_bundle = test_context.get_output_bundle(extract_prim_node, "outputs_primBundle") bundle = bundle_factory.get_bundle(test_context, output_bundle) self.assertTrue(bundle.valid) # noqa: PLE1101 # Get points points_attr = bundle.get_attribute_by_name("points") self.assertTrue(points_attr.is_valid()) # noqa: PLE1101 points = points_attr.get().tolist() self.assertTrue(isinstance(points, list)) # noqa: PLE1101 self.assertTrue(len(points) != 0) # noqa: PLE1101 # Get normals normals_attr = bundle.get_attribute_by_name("normals") self.assertTrue(normals_attr.is_valid()) # noqa: PLE1101 normals = normals_attr.get().tolist() self.assertTrue(isinstance(normals, list)) # noqa: PLE1101 self.assertTrue(len(normals) != 0) # noqa: PLE1101 # Modify timecode and trigger evaluation. Run 60 times to eliminate random factor. for timecode in range(60): controller.edit( test_graph_path, {keys.SET_VALUES: ("read_prims.inputs:usdTimecode", timecode)}, ) await og.Controller.evaluate(test_graph) # Test whether the points data keep consistent points_attr = bundle.get_attribute_by_name("points") self.assertTrue(points_attr.is_valid()) # noqa: PLE1101 self.assertSequenceEqual(points_attr.get().tolist(), points) # noqa: PLE1101 # Test whether the points data keep consistent normals_attr = bundle.get_attribute_by_name("normals") self.assertTrue(normals_attr.is_valid()) # noqa: PLE1101 self.assertSequenceEqual(normals_attr.get().tolist(), normals) # noqa: PLE1101 async def test_read_prims_attribute_interpolation(self): controller = og.Controller() keys = og.Controller.Keys usd_context = omni.usd.get_context() stage = usd_context.get_stage() # Create Mesh and Primvar with interpolation mesh = ogts.create_grid_mesh(stage, "/Mesh") sts_primvar = UsdGeom.PrimvarsAPI(mesh).CreatePrimvar("st", Sdf.ValueTypeNames.Float2Array) sts_primvar.SetInterpolation("faceVarying") # Create Read Prim with test node to test if interpolation was read test_graph_path = "/TestGraph" (test_graph, [_, attr_interp], _, _,) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("read_prims", self._read_prims_node_type), ("attr_interp", "omni.graph.test.TestBundleAttributeInterpolation"), ], keys.SET_VALUES: ("attr_interp.inputs:attribute", "primvars:st"), keys.CONNECT: ("read_prims.outputs_primsBundle", "attr_interp.inputs:prims"), }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(test_graph_path + "/read_prims.inputs:prims"), target=mesh.GetPath(), ) await og.Controller.evaluate(test_graph) # Confirm the interpolation is carried properly from Read Prims and Bundle Prims self.assertEqual(attr_interp.get_attribute("outputs:interpolation").get(), "faceVarying") # noqa: PLE1101 async def test_read_prim_nodes_have_nan_defaults(self): """Validates that manually created prim nodes have nan as default""" controller = og.Controller() keys = og.Controller.Keys test_graph_path = "/TestGraph" (_, nodes, _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("ReadPrims", self._read_prims_node_type), ("ReadPrimAttr", "omni.graph.nodes.ReadPrimAttribute"), ("ReadPrimAttrs", "omni.graph.nodes.ReadPrimAttributes"), ("ReadPrimsBundle", "omni.graph.nodes.ReadPrimsBundle"), ], }, ) for node in nodes: self.assertTrue(isnan(node.get_attribute("inputs:usdTimecode").get())) # noqa: PLE1101 async def test_read_prim_have_no_errors_on_creation(self): """Validates that creating ReadPrimAttribute nodes with default values doesn't throw errors""" controller = og.Controller() keys = og.Controller.Keys test_graph_path = "/TestGraph" (test_graph, nodes, _, _) = controller.edit( {"graph_path": test_graph_path}, { keys.CREATE_NODES: [ ("ReadPrimAttr", "omni.graph.nodes.ReadPrimAttribute"), ], keys.SET_VALUES: [ ("ReadPrimAttr.inputs:name", ""), ], }, ) self.assertEqual(len(nodes[0].get_compute_messages(og.ERROR)), 0) # noqa: PLE1101 nodes[0].clear_old_compute_messages() with ogts.ExpectedError(): await og.Controller.evaluate(test_graph) self.assertEqual(len(nodes[0].get_compute_messages(og.ERROR)), 1) # noqa: PLE1101 # Tests for ReadPrims (legacy) node only + all tests in TestReadPrimsCommon class TestReadPrimsNode(ogts.OmniGraphTestCase, TestReadPrimsCommon): """ Unit tests for ReadPrims (legacy) node in this extension It also inherits all tests from TestReadPrimsCommon unless explicitly opted out """ def __init__(self, *args, **kwargs): ogts.OmniGraphTestCase.__init__(self, *args, **kwargs) TestReadPrimsCommon.__init__(self, read_prims_node_type="omni.graph.nodes.ReadPrims") async def test_read_prims_node_v1(self): """Validate backward compatibility for legacy versions of ReadPrims node.""" # load the test scene which contains a ReadPrims V1 node (result, error) = await ogts.load_test_file("TestReadPrimsNode_v1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/World/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) read_prim_node = test_graph.get_node(test_graph_path + "/read_prims") self.assertTrue(read_prim_node.is_valid()) # validate new attributes can be automatically created with their default value set. attr_names_and_values = [ ("inputs:applySkelBinding", False), ] for attr_name, attr_value in attr_names_and_values: self.assertTrue(read_prim_node.get_attribute_exists(attr_name)) self.assertTrue(read_prim_node.get_attribute(attr_name).get() == attr_value) # this is a test for ReadPrimBundle, to utilize _test_attribute_filter, thus it is not in TestReadPrimsBundle async def test_read_prims_bundle_attribute_filter(self): """Validate the attribute filter functionality of ReadPrimBundle.""" await self._test_attribute_filter("omni.graph.nodes.ReadPrimsBundle") # Tests for ReadPrimsV2 node only + all tests in TestReadPrimsCommon class TestReadPrimsV2Node(ogts.OmniGraphTestCase, TestReadPrimsCommon): """ Unit tests for ReadPrimsV2 node in this extension It also inherits all tests from TestReadPrimsCommon unless explicitly opted out """ def __init__(self, *args, **kwargs): ogts.OmniGraphTestCase.__init__(self, *args, **kwargs) TestReadPrimsCommon.__init__(self, read_prims_node_type="omni.graph.nodes.ReadPrimsV2") async def test_read_prims_root_prims_targets(self): """Test omni.graph.nodes.ReadPrims with rootPrims targets""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() test_graph_path = "/World/TestGraph" controller = og.Controller() keys = og.Controller.Keys root1 = stage.DefinePrim("/Root1", "Xform") stage.DefinePrim("/Root1/Xform", "Xform") stage.DefinePrim("/Root1/Xform/Cube", "Cube") stage.DefinePrim("/Root2", "Xform") stage.DefinePrim("/Root2/Xform", "Xform") stage.DefinePrim("/Root2/Xform/Sphere", "Sphere") root3 = stage.DefinePrim("/Root3", "Xform") stage.DefinePrim("/Root3/Xform", "Xform") stage.DefinePrim("/Root3/Xform/Cone", "Cone") (graph, [read_prims_node], _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("Read", self._read_prims_node_type), ], keys.SET_VALUES: [ ("Read.inputs:pathPattern", "*"), ], }, ) # connect /Root1 and /Root3 to inputs:rootPrims # The node should find all prims under them, but not /Root2 omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[root1.GetPath(), root3.GetPath()], ) await controller.evaluate() graph_context = graph.get_default_graph_context() output_prims_bundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(output_prims_bundle.valid) expected_matched_prim_paths = { "/Root1", "/Root1/Xform", "/Root1/Xform/Cube", "/Root3", "/Root3/Xform", "/Root3/Xform/Cone", } child_bundles = output_prims_bundle.get_child_bundles() self.assertEqual(len(child_bundles), len(expected_matched_prim_paths)) for bundle in child_bundles: path = bundle.get_attribute_by_name("sourcePrimPath").get() expected_matched_prim_paths.remove(path) # no exception should raise when remove a path in the loop above # after the loop, all paths should have been removed self.assertEqual(len(expected_matched_prim_paths), 0)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_timeline_nodes.py
"""Unit tests for the timeline playback nodes in this extension""" import carb.events import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.stage_templates import omni.kit.test import omni.timeline import omni.usd # ====================================================================== class TestTimelineNodes(ogts.OmniGraphTestCase): TEST_GRAPH_PATH = "/World/TestGraph" FRAME_RATE = 64 # power of two so that FRAME_DURATION is an exact binary number FRAME_DURATION = 1.0 / FRAME_RATE START_FRAME = 10 END_FRAME = 20 START_TIME = START_FRAME * FRAME_DURATION END_TIME = END_FRAME * FRAME_DURATION TEST_MESSAGE_NAME = "omni.graph.nodes/triggerTimelineNode" TEST_MESSAGE_EVENT = carb.events.type_from_string(TEST_MESSAGE_NAME) def flush(self): # The timeline is async, we need to commit any pending changes before we can read its last state. self._timeline.commit() def current_time(self): self.flush() return self._timeline.get_current_time() def current_frame(self): return self._timeline.time_to_time_code(self.current_time()) def assert_from_start(self, frame: int, message: str): self.assertEqual(self.current_frame(), self.START_FRAME + frame, message) def is_playing(self): self.flush() return self._timeline.is_playing() def is_looping(self): self.flush() return self._timeline.is_looping() def dump(self, header=""): self.flush() tl = self._timeline print( f""" Timeline {header} tick:{tl.get_current_tick()} time:{tl.get_current_time()} start:{tl.get_start_time()} end:{tl.get_end_time()} playing:{tl.is_playing()} looping:{tl.is_looping()} """ ) async def tick(self): await omni.kit.app.get_app().next_update_async() async def fire(self): app = omni.kit.app.get_app() message_bus = app.get_message_bus_event_stream() message_bus.push(self.TEST_MESSAGE_EVENT) await self.tick() # ---------------------------------------------------------------------- async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() fps = self.FRAME_RATE # make sure we put the global timeline in the same initial state self._timeline = omni.timeline.get_timeline_interface() self._timeline.stop() self._timeline.set_current_time(0) self._timeline.set_end_time(self.END_TIME) self._timeline.set_start_time(self.START_TIME) self._timeline.set_time_codes_per_second(fps) self._timeline.set_looping(False) self._timeline.set_fast_mode(False) self._timeline.set_prerolling(True) self._timeline.set_auto_update(True) self._timeline.set_play_every_frame(True) self._timeline.set_ticks_per_frame(1) self._timeline.set_target_framerate(fps) self._timeline.commit() # ---------------------------------------------------------------------- async def test_timeline_start_node(self): """Test OgnTimelineStart node""" # convert to action graph og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "execution"}) controller = og.Controller() keys = og.Controller.Keys controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnMessage", "omni.graph.action.OnMessageBusEvent"), ("StartTimeline", "omni.graph.nodes.StartTimeline"), ], keys.CONNECT: [ ("OnMessage.outputs:execOut", "StartTimeline.inputs:execIn"), ], keys.SET_VALUES: [ ("OnMessage.inputs:onlyPlayback", False), ("OnMessage.inputs:eventName", self.TEST_MESSAGE_NAME), ], }, ) # Initialize await self.tick() self.assertFalse(self.is_playing(), "Should not have started yet") # Trigger the node await self.fire() self.assertTrue(self.is_playing(), "Should have started") self.assert_from_start(0, "Should have started at frame 0 from start") await self.tick() self.assert_from_start(1, "Should have advanced one frame after starting") # Trigger the node again await self.fire() self.assert_from_start(2, "Should not have restarted after starting twice") # Pause the timeline self._timeline.pause() self._timeline.commit() await self.tick() self.assert_from_start(2, "Should have been paused at frame 2") # Start again await self.fire() self.assert_from_start(2, "Should be at frame 2 after paused and starting again") await self.tick() self.assert_from_start(3, "Should be at frame 3 after paused and playing for one frame") # ---------------------------------------------------------------------- async def test_timeline_stop_node(self): """Test OgnTimelineStop node""" # convert to action graph og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "execution"}) controller = og.Controller() keys = og.Controller.Keys controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnMessage", "omni.graph.action.OnMessageBusEvent"), ("StopTimeline", "omni.graph.nodes.StopTimeline"), ], keys.CONNECT: [ ("OnMessage.outputs:execOut", "StopTimeline.inputs:execIn"), ], keys.SET_VALUES: [ ("OnMessage.inputs:onlyPlayback", False), ("OnMessage.inputs:eventName", self.TEST_MESSAGE_NAME), ], }, ) # Initialize await self.tick() self.assertFalse(self.is_playing(), "Should not have started") # Trigger the node await self.fire() await self.tick() # Stopping a stopped timeline has no effect self.assertTrue(self.current_frame() == 0, "Should not have started when stopping") # Start the timeline self._timeline.play() self.assertTrue(self.is_playing(), "Should have started") play_frames = 5 # Advance the timeline N frames for _ in range(play_frames): await self.tick() self.assert_from_start(play_frames, f"Should have played {play_frames} frames") # Trigger the node await self.fire() stop_frame = play_frames + 1 self.assertFalse(self.is_playing(), "Should have stopped") self.assert_from_start(stop_frame, f"Should have stopped at frame {stop_frame}") await self.tick() self.assert_from_start( stop_frame, f"Should still be at frame {stop_frame} after stopped one frame", ) # Trigger the node again await self.fire() # Should still be at the current frame self.assert_from_start( stop_frame, f"Should still be at frame {stop_frame} after stopping twice", ) # ---------------------------------------------------------------------- async def test_timeline_loop_node(self): """Test OgnTimelineLoop node""" # convert to action graph og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "execution"}) controller = og.Controller() keys = og.Controller.Keys controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnMessage", "omni.graph.action.OnMessageBusEvent"), ("LoopTimeline", "omni.graph.nodes.LoopTimeline"), ], keys.CONNECT: [ ("OnMessage.outputs:execOut", "LoopTimeline.inputs:execIn"), ], keys.SET_VALUES: [ ("OnMessage.inputs:onlyPlayback", False), ("OnMessage.inputs:eventName", self.TEST_MESSAGE_NAME), ], }, ) def set_looping(value): controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("LoopTimeline.inputs:loop", value), ], }, ) # Initialize await self.tick() self.assertFalse(self.is_looping(), "Should not be looping yet") # Enable looping set_looping(True) await self.fire() self.assertTrue(self.is_looping(), "Should be looping") # Disable looping set_looping(False) await self.fire() self.assertFalse(self.is_looping(), "Should not be looping") # ---------------------------------------------------------------------- async def test_timeline_get_node(self): """Test OgnTimelineGet node""" # convert to push graph og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "push"}) controller = og.Controller() keys = og.Controller.Keys (_, [node], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GetTimeline", "omni.graph.nodes.GetTimeline"), ], }, ) def get_attr_value(name): attr = og.Controller.attribute(f"outputs:{name}", node) return og.Controller(attr).get() def assert_attr_value(name, value): self.assertEqual(get_attr_value(name), value, name) async def assert_node_values(playing, looping): await self.tick() assert_attr_value("time", self._timeline.get_current_time()) assert_attr_value("frame", self.current_frame()) assert_attr_value("startTime", self.START_TIME) assert_attr_value("startFrame", self.START_FRAME) assert_attr_value("endTime", self.END_TIME) assert_attr_value("endFrame", self.END_FRAME) assert_attr_value("framesPerSecond", self.FRAME_RATE) assert_attr_value("isPlaying", playing) assert_attr_value("isLooping", looping) await assert_node_values(playing=False, looping=False) self._timeline.pause() await assert_node_values(playing=False, looping=False) self._timeline.play() await assert_node_values(playing=True, looping=False) await assert_node_values(playing=True, looping=False) self._timeline.set_looping(True) await assert_node_values(playing=True, looping=True) await assert_node_values(playing=True, looping=True) # ---------------------------------------------------------------------- async def test_timeline_set_node(self): """Test OgnTimelineSet node""" # convert to push graph og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "push"}) controller = og.Controller() keys = og.Controller.Keys (_, [node], _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("SetTimeline", "omni.graph.nodes.SetTimeline"), ], }, ) def get_attr_value(name): attr = og.Controller.attribute(f"outputs:{name}", node) return og.Controller(attr).get() async def set_node_property(property_name, property_value): attr = og.Controller.attribute("inputs:propName", node) attr.set(property_name) attr = og.Controller.attribute("inputs:propValue", node) attr.set(property_value) await self.tick() self.flush() async def assert_set_position(target_frame, expected_frame, clamped): await set_node_property("Frame", target_frame) self.assertEqual(self.current_frame(), expected_frame, "Wrong Frame") self.assertEqual(get_attr_value("clamped"), clamped, "Wrong clamping") target_time = target_frame * self.FRAME_DURATION expected_time = expected_frame * self.FRAME_DURATION await set_node_property("Time", target_time) self.assertEqual(self.current_time(), expected_time, "Wrong Time") self.assertEqual(get_attr_value("clamped"), clamped, "Wrong clamping") for f in range(self.START_FRAME, self.END_FRAME): await assert_set_position(f, f, False) await assert_set_position(self.START_FRAME - 1, self.START_FRAME, True) await assert_set_position(self.END_FRAME + 1, self.END_FRAME, True) await set_node_property("StartTime", 0) self.assertEqual(self._timeline.get_start_time(), 0, "Wrong StartTime") await set_node_property("StartFrame", 1) self.assertEqual(self._timeline.get_start_time(), self.FRAME_DURATION, "Wrong StartFrame") await set_node_property("EndTime", 10) self.assertEqual(self._timeline.get_end_time(), 10, "Wrong EndTime") await set_node_property("EndFrame", 2) self.assertEqual(self._timeline.get_end_time(), 2 * self.FRAME_DURATION, "Wrong EndFrame") await set_node_property("FramesPerSecond", 30) self.assertEqual(self._timeline.get_time_codes_per_seconds(), 30, "Wrong FramesPerSecond") # ----------------------------------------------------------------------
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_bundle_inspector.py
"""Test the node that inspects attribute bundles""" import omni.graph.core as og import omni.graph.core.tests as ogts from .bundle_test_utils import ( bundle_inspector_results, get_bundle_with_all_results, prim_with_everything_definition, verify_bundles_are_equal, ) # ====================================================================== class TestBundleInspector(ogts.test_case_class()): """Run a simple unit test that exercises graph functionality""" # ---------------------------------------------------------------------- async def test_node_with_contents(self): """Test the node with some pre-made input bundle contents""" prim_definition = prim_with_everything_definition() keys = og.Controller.Keys (_, [inspector_node, _], [prim], _) = og.Controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CREATE_PRIMS: ("TestPrim", prim_definition), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_BUNDLE, "/TestPrim", "TestPrimExtract"), keys.CONNECT: [ ("TestPrimExtract.outputs_primBundle", "Inspector.inputs:bundle"), ], }, ) await og.Controller.evaluate() results = bundle_inspector_results(inspector_node) expected_values = get_bundle_with_all_results(str(prim.GetPrimPath()), prim_source_type=str(prim.GetTypeName())) try: verify_bundles_are_equal(results, expected_values) except ValueError as error: self.assertTrue(False, error) async def test_bundle_inspector_node_v2(self): """Validate backward compatibility for legacy versions of BundleInspector node.""" # load the test scene which contains a ReadPrim V1 node (result, error) = await ogts.load_test_file("TestBundleInspectorNode_v2.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) read_prim_node = test_graph.get_node(test_graph_path + "/Inspector") self.assertTrue(read_prim_node.is_valid()) # validate new attributes can be automatically created with their default value set. attr_names_and_values = [ ("inputs:inspectDepth", 1), ] for (attr_name, attr_value) in attr_names_and_values: self.assertTrue(read_prim_node.get_attribute_exists(attr_name)) self.assertTrue(read_prim_node.get_attribute(attr_name).get() == attr_value)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_variant_nodes.py
"""Testing the stability of the API in this module""" import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from pxr import Sdf # ====================================================================== class TestVariantNodes(ogts.OmniGraphTestCase): def __init__(self, arg): super().__init__(arg) self.usda_file = "variant_sets.usda" self.input_prim = "/InputPrim" @staticmethod def set_variant_selection(prim_path, variant_set_name, variant_name): # noqa: C901 stage = omni.usd.get_context().get_stage() prim = stage.GetPrimAtPath(prim_path) variant_set = prim.GetVariantSet(variant_set_name) variant_names = variant_set.GetVariantNames() if variant_name not in variant_names: variant_set.AddVariant(variant_name) variant_set.SetVariantSelection(variant_name) def set_up_variant_sets(self): for prim_path in [self.input_prim]: stage = omni.usd.get_context().get_stage() prim = stage.DefinePrim(prim_path, "Xform") attr = prim.CreateAttribute("primvars:displayColor", Sdf.ValueTypeNames.Color3f) variant_set_name = "color" variant_sets = prim.GetVariantSets() variant_set = variant_sets.GetVariantSet(variant_set_name) variant_set.AddVariant("red") variant_set.AddVariant("green") variant_set.AddVariant("blue") variant_set.SetVariantSelection("red") with variant_set.GetVariantEditContext(): attr.Set((1, 0, 0)) variant_set.SetVariantSelection("green") with variant_set.GetVariantEditContext(): attr.Set((0, 1, 0)) variant_set.SetVariantSelection("blue") with variant_set.GetVariantEditContext(): attr.Set((0, 0, 1)) variant_set.SetVariantSelection("default_color") variant_set_name = "size" variant_sets = prim.GetVariantSets() variant_set = variant_sets.GetVariantSet(variant_set_name) variant_set.AddVariant("small") variant_set.AddVariant("medium") variant_set.AddVariant("large") variant_set.SetVariantSelection("default_size") def get_variant_selection(self, prim_path, variant_set_name): stage = omni.usd.get_context().get_stage() prim = stage.GetPrimAtPath(prim_path) variant_set = prim.GetVariantSet(variant_set_name) return variant_set.GetVariantSelection() async def _test_variant_node( self, node_type, node_attrs, expected_values, expected_variants=None, expected_attr_values=None, read_file=True, use_connected_prim=False, variant_selection=None, ): await omni.usd.get_context().new_stage_async() if read_file: (result, error) = await ogts.load_test_file(self.usda_file, use_caller_subdirectory=True) self.assertTrue(result, error) else: self.set_up_variant_sets() if variant_selection: prim_path, variant_set_name, variant_name = variant_selection self.set_variant_selection(prim_path, variant_set_name, variant_name) keys = og.Controller.Keys controller = og.Controller() graph = "/TestGraph" variant_node = "VariantNode" values = [(f"{variant_node}.{key}", value) for key, value in node_attrs.items()] controller.edit( graph, { keys.CREATE_NODES: [ (variant_node, node_type), ], keys.SET_VALUES: values, }, ) stage = omni.usd.get_context().get_stage() # use a prim path connection instead of setting the value directly if use_connected_prim: (_, (_prim_at_path, _), _, _) = controller.edit( graph, { keys.CREATE_NODES: [ ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ("GetPrimAtPath.outputs:prims", f"{variant_node}.inputs:prim"), ], keys.SET_VALUES: [ ("ConstToken.inputs:value", self.input_prim), ], }, ) else: omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{graph}/{variant_node}.inputs:prim"), target=self.input_prim, ) await controller.evaluate() for output in expected_values.keys(): test_attribute = controller.attribute(output, f"{graph}/{variant_node}") actual_value = controller.get(attribute=test_attribute) if isinstance(expected_values[output], list): actual_value = list(actual_value) self.assertTrue( actual_value == expected_values[output], f"actual_value: {actual_value}, expected_value: {expected_values[output]}", ) if expected_variants: for prim_path, variant_set_name, expected_variant_name in expected_variants: actual_value = self.get_variant_selection(prim_path, variant_set_name) self.assertTrue( actual_value == expected_variant_name, f"actual_value: {actual_value}, expected_value: {expected_variant_name}", ) if expected_attr_values: for prim_path, attr_name, expected_value in expected_attr_values: test_attribute = stage.GetPropertyAtPath(f"{prim_path}.{attr_name}") actual_value = test_attribute.Get() self.assertTrue( actual_value == expected_value, f"actual_value: {actual_value}, expected_value: {expected_value}", ) async def test_get_variant_names_1(self): node_type = "omni.graph.nodes.GetVariantNames" node_attrs = { "inputs:variantSetName": "color", } expected_values = {"outputs:variantNames": ["blue", "green", "red"]} await self._test_variant_node(node_type, node_attrs, expected_values) async def test_get_variant_names_2(self): node_type = "omni.graph.nodes.GetVariantNames" node_attrs = { "inputs:variantSetName": "color", } expected_values = {"outputs:variantNames": ["blue", "green", "red"]} await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=False) await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=True) async def test_get_variant_selection(self): node_type = "omni.graph.nodes.GetVariantSelection" node_attrs = { "inputs:variantSetName": "color", } expected_values = {"outputs:variantName": "default_color"} await self._test_variant_node(node_type, node_attrs, expected_values) async def test_get_variant_selection_2(self): node_type = "omni.graph.nodes.GetVariantSelection" node_attrs = { "inputs:variantSetName": "color", } expected_values = {"outputs:variantName": "green"} variant_selection = (self.input_prim, "color", "green") await self._test_variant_node( node_type, node_attrs, expected_values, variant_selection=variant_selection, use_connected_prim=False, ) await self._test_variant_node( node_type, node_attrs, expected_values, variant_selection=variant_selection, use_connected_prim=True, ) async def test_get_variant_set_names(self): node_type = "omni.graph.nodes.GetVariantSetNames" node_attrs = {} expected_values = {"outputs:variantSetNames": ["color", "size"]} await self._test_variant_node(node_type, node_attrs, expected_values) async def test_get_variant_set_names_2(self): node_type = "omni.graph.nodes.GetVariantSetNames" node_attrs = {} expected_values = {"outputs:variantSetNames": ["color", "size"]} await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=False) await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=True) async def test_has_variant_set_1(self): node_type = "omni.graph.nodes.HasVariantSet" node_attrs = { "inputs:variantSetName": "color", } expected_values = {"outputs:exists": True} await self._test_variant_node(node_type, node_attrs, expected_values) async def test_has_variant_set_2(self): node_type = "omni.graph.nodes.HasVariantSet" node_attrs = { "inputs:variantSetName": "flavor", } expected_values = {"outputs:exists": False} await self._test_variant_node(node_type, node_attrs, expected_values) async def test_has_variant_set_3(self): node_type = "omni.graph.nodes.HasVariantSet" node_attrs = { "inputs:variantSetName": "flavor", } expected_values = {"outputs:exists": False} await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=False) await self._test_variant_node(node_type, node_attrs, expected_values, use_connected_prim=True) async def test_clear_variant_set_with_default(self): node_type = "omni.graph.nodes.ClearVariantSelection" node_attrs = { "inputs:variantSetName": "color", } expected_values = {} expected_variants = [(self.input_prim, "color", "default_color")] await self._test_variant_node(node_type, node_attrs, expected_values, expected_variants) async def test_clear_variant_set(self): node_type = "omni.graph.nodes.ClearVariantSelection" node_attrs = { "inputs:variantSetName": "color", } expected_values = {} expected_variants = [(self.input_prim, "color", "default_color")] await self._test_variant_node(node_type, node_attrs, expected_values, expected_variants, read_file=False) async def test_clear_variant_set_2(self): node_type = "omni.graph.nodes.ClearVariantSelection" node_attrs = { "inputs:variantSetName": "color", } expected_values = {} expected_variants = [(self.input_prim, "color", "default_color")] await self._test_variant_node( node_type, node_attrs, expected_values, expected_variants, read_file=False, use_connected_prim=False, ) await self._test_variant_node( node_type, node_attrs, expected_values, expected_variants, read_file=False, use_connected_prim=True, ) async def test_set_variant_selection(self): node_type = "omni.graph.nodes.SetVariantSelection" node_attrs = { "inputs:setVariant": True, "inputs:variantSetName": "color", "inputs:variantName": "red", } expected_values = {} expected_variants = [(self.input_prim, "color", "red")] await self._test_variant_node(node_type, node_attrs, expected_values, expected_variants) async def test_set_variant_selection_2(self): node_type = "omni.graph.nodes.SetVariantSelection" node_attrs = { "inputs:setVariant": True, "inputs:variantSetName": "color", "inputs:variantName": "red", } expected_values = {} expected_variants = [(self.input_prim, "color", "red")] await self._test_variant_node( node_type, node_attrs, expected_values, expected_variants, use_connected_prim=False, ) await self._test_variant_node( node_type, node_attrs, expected_values, expected_variants, use_connected_prim=True, ) async def test_blend_variants(self): node_type = "omni.graph.nodes.BlendVariants" node_attrs = { "inputs:variantSetName": "color", "inputs:blend": 0.5, "inputs:variantNameA": "red", "inputs:variantNameB": "green", } expected_values = {} expected_variants = [] expected_attr_values = [(self.input_prim, "primvars:displayColor", [0.5, 0.5, 0.0])] await self._test_variant_node( node_type, node_attrs, expected_values, expected_variants, expected_attr_values, read_file=False, )
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_timer_node.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and related documentation without an express # license agreement from NVIDIA CORPORATION is strictly prohibited. # import asyncio from pathlib import Path from typing import Tuple import omni.graph.core as og import omni.kit.app import omni.kit.commands import omni.kit.test import omni.kit.ui_test as ui_test import omni.usd from carb.input import KeyboardInput as Key class TestTimerNode(omni.kit.test.AsyncTestCase): async def setUp(self): extension_root_folder = Path( omni.kit.app.get_app().get_extension_manager().get_extension_path_by_module(__name__) ) self._test_files = extension_root_folder.joinpath("data/tests/usd") await self._load_stage() async def tearDown(self): await omni.usd.get_context().close_stage_async() async def test_timer_node(self): await self._test_timer_node_impl() async def _load_stage(self): usd_context = omni.usd.get_context() filename = "timer.usda" test_file_path = self._test_files.joinpath(filename).absolute() await usd_context.open_stage_async(str(test_file_path)) print(f"Loaded: {test_file_path}") self._stage = usd_context.get_stage() async def _test_timer_node_impl(self): node = self._stage.GetPrimAtPath("/World/ActionGraph/Timer") graph = self._stage.GetPrimAtPath("/World/ActionGraph") self.assertEqual(graph.GetTypeName(), "OmniGraph") await ui_test.emulate_keyboard_press(Key.A) await omni.kit.app.get_app().next_update_async() await self._test_time_and_range(node, [(0, (0, 0.1)), (1, (0.4, 0.6)), (2.5, (1, 1))]) async def _test_time_and_range(self, node: og.Node, time_range: Tuple[float, Tuple[float, float]]): for (time, (min_value, max_value)) in time_range: print("Time: ", time, "Range: ", min_value, max_value) if time > 0: print("sleeping for ", time, " seconds") await asyncio.sleep(time) print("sleeping done") self._test_y_within_range(node, min_value, max_value) # because asyncio.sleep(1) does not sleep for exactly that amount of time, check the result in an range def _test_y_within_range(self, node: og.Node, min_value: float, max_value: float): actual_value = og.Controller.get(f"{node.GetPath()}.outputs:value") print(f"min_value: {min_value}, max_value: {max_value} actual_value: {actual_value}") self.assertGreaterEqual(actual_value, min_value) self.assertLessEqual(actual_value, max_value)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_read_prims_incremental.py
# noqa: PLC0302 from typing import List import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test from pxr import Sdf, Usd, UsdGeom _debug = False class TestReadPrimsIncremental(ogts.OmniGraphTestCase): """Unit tests for incremental behavior of the ReadPrimsV2 node in this extension""" async def test_read_prims_change_tracking_path_targets(self): """Test change tracking of omni.graph.nodes.ReadPrimsV2 using path targets""" await self._test_read_prims_change_tracking_impl(False) async def test_read_prims_change_tracking_path_pattern(self): """Test change tracking of omni.graph.nodes.ReadPrimsV2 using path pattern""" await self._test_read_prims_change_tracking_impl(True) async def _test_read_prims_change_tracking_impl(self, use_path_pattern): usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() test_graph_path = "/World/TestGraph" controller = og.Controller() keys = og.Controller.Keys xcube = UsdGeom.Xform.Define(stage, "/XCube") UsdGeom.Xform.Define(stage, "/XCone") cube = ogts.create_cube(stage, "XCube/Cube", (1, 0, 0)) cone = ogts.create_cone(stage, "XCone/Cone", (0, 1, 0)) cube.GetAttribute("size").Set(100) cone.GetAttribute("radius").Set(50) cone.GetAttribute("height").Set(10) cube_path = str(cube.GetPath()) cone_path = str(cone.GetPath()) (graph, [read_prims_node, _], _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("Inspector.inputs:print", False), ], }, ) if use_path_pattern: controller.edit( test_graph_path, { keys.SET_VALUES: [ ("Read.inputs:pathPattern", "/X*/C*"), ], }, ) else: omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[cube_path, cone_path], ) def get_attr(bundle, name): return bundle.get_attribute_by_name(name) def get_attr_value(bundle, name): return get_attr(bundle, name).get() def assert_attr_value(bundle, name, value): if isinstance(value, list): self.assertEqual(get_attr_value(bundle, name).tolist(), value) else: self.assertEqual(get_attr_value(bundle, name), value) def assert_attr_missing(bundle, name): self.assertFalse(get_attr(bundle, name).is_valid()) def assert_stamp(bundle, stamp): assert_attr_value(bundle, "_debugStamp", stamp) def assert_stamp_missing(bundle): assert_attr_missing(bundle, "_debugStamp") def set_stamp(stamp): if _debug: print(f"### Setting debug stamp to {stamp}") controller.edit(test_graph_path, {keys.SET_VALUES: ("Read.inputs:_debugStamp", stamp)}) def set_change_tracking(enable): controller.edit(test_graph_path, {keys.SET_VALUES: ("Read.inputs:enableChangeTracking", enable)}) def get_expected_prim_attributes_count(prim, debug_stamp=False, bbox=False): n = len(prim.GetPropertyNames()) n += 3 # sourcePrimPath, sourcePrimType, worldMatrix n -= 1 # remove "proxyPrim" which is skipped unless it has targets if debug_stamp: n += 1 # _debugStamp if bbox: n += 3 # bboxTransform, bboxCenter, bboxSize return n id_mat = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] # initial update set_stamp(10) await controller.evaluate() graph_context = graph.get_default_graph_context() container_rwbundle = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(container_rwbundle.valid) self.assertFalse(container_rwbundle.is_read_only()) bundle_factory = og.IBundleFactory.create() container = bundle_factory.get_const_bundle_from_path(graph_context, container_rwbundle.get_path()) self.assertTrue(container.is_read_only()) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) # check initial bundle output # full updates will have negative debug stamps on the container bundle assert_stamp(container, -10) cube_bundle = None cone_bundle = None for bundle in child_bundles: # reading attribute values from writable bundle will bump dirty ids, so make sure it is a read-only bundle. self.assertTrue(bundle.is_read_only()) assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: cube_bundle = bundle n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) elif path == cone_path: cone_bundle = bundle n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "radius", 50) assert_attr_value(bundle, "height", 10) assert_attr_value(bundle, "primvars:displayColor", [[0, 1, 0]]) else: self.fail(path) self.assertIsNotNone(cube_bundle) self.assertIsNotNone(cone_bundle) # empty update set_stamp(15) await controller.evaluate() # nothing should have been updated. assert_stamp(container, -10) container_bundle_name = container.get_name() cube_bundle_name = cube_bundle.get_name() cone_bundle_name = cone_bundle.get_name() dirtyid_interface = og._og_unstable.IDirtyID2.create(graph_context) # noqa: PLW0212 self.assertIsNotNone(dirtyid_interface) # dirty tracking is not activated for the output bundle entries = [container] entry_names = [container_bundle_name] for bundle in child_bundles: bundle_name = bundle.get_name() attrs = bundle.get_attributes() entries.append(bundle) entries.extend(attrs) entry_names.append(bundle_name) entry_names.extend([bundle_name + "." + attr.get_name() for attr in attrs]) # invalid dirty ids expected curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid_validity(dirtyid_interface, entry_names, curr_dirtyids, False) # activate dirty tracking controller.edit( test_graph_path, { keys.SET_VALUES: [ ("Read.inputs:enableBundleChangeTracking", True), ], }, ) await controller.evaluate() # valid dirty ids expected curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid_validity(dirtyid_interface, entry_names, curr_dirtyids, True) for bundle in child_bundles: assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "radius", 50) assert_attr_value(bundle, "height", 10) assert_attr_value(bundle, "primvars:displayColor", [[0, 1, 0]]) else: self.fail(path) # no change before this evaluation await controller.evaluate() # the dirty ids shouldn't be bumped when there is no change prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, []) # change just the cube size set_stamp(20) cube.GetAttribute("size").Set(200) await controller.evaluate() # check that only the cube bundle was updated assert_stamp(container, 20) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: path = get_attr_value(bundle, "sourcePrimPath") assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "radius", 50) assert_attr_value(bundle, "height", 10) assert_attr_value(bundle, "primvars:displayColor", [[0, 1, 0]]) else: self.fail(path) # only the changed entries will have the dirty ids bumped prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) changed_entry_names = [container_bundle_name, cube_bundle_name, cube_bundle_name + ".size"] self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, changed_entry_names) # change just the cone radius and height set_stamp(30) cone.GetAttribute("radius").Set(300) cone.GetAttribute("height").Set(20) await controller.evaluate() # check that only the cone bundle was updated assert_stamp(container, 30) for bundle in child_bundles: assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 20) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 30) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "radius", 300) assert_attr_value(bundle, "height", 20) assert_attr_value(bundle, "primvars:displayColor", [[0, 1, 0]]) else: self.fail(path) # only the changed entries will have the dirty ids bumped prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) changed_entry_names = [ container_bundle_name, cone_bundle_name, cone_bundle_name + ".radius", cone_bundle_name + ".height", ] self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, changed_entry_names) # delete the cone, full update will be triggered for now set_stamp(40) removed_entries = [] removed_entry_names = [] for bundle in child_bundles: bundle_path = get_attr_value(bundle, "sourcePrimPath") if bundle_path == cone_path: bundle_name = bundle.get_name() attrs = bundle.get_attributes() removed_entries.append(bundle) removed_entries.extend(attrs) removed_entry_names.append(bundle_name) removed_entry_names.extend([bundle_name + "." + attr.get_name() for attr in attrs]) stage.RemovePrim(cone_path) await controller.evaluate() # for now, deleting does a full update assert_stamp(container, -40) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) # invalid dirty ids expected for removed entries self.assert_dirtyid_validity( dirtyid_interface, removed_entry_names, dirtyid_interface.get(removed_entries), False ) # the dirty ids should be bumped for all remaining entries remaining_prev_dirtyids = [] remaining_entries = [] remaining_entry_names = [] num_entries = len(entries) for i in range(num_entries): if entry_names[i] not in removed_entry_names: remaining_prev_dirtyids.append(curr_dirtyids[i]) remaining_entries.append(entries[i]) remaining_entry_names.append(entry_names[i]) remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, remaining_entry_names, ) # create the cone again, using blue color now set_stamp(50) cone = ogts.create_cone(stage, "XCone/Cone", (0, 0, 1)) cone.GetAttribute("radius").Set(400) cone.GetAttribute("height").Set(40) await controller.evaluate() # for now, creation does a full update assert_stamp(container, -50) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_attr_value(bundle, "radius", 400) assert_attr_value(bundle, "height", 40) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "primvars:displayColor", [[0, 0, 1]]) else: self.fail(path) # for now, creation does a full update prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # create a new cube attribute set_stamp(60) dummy_attr_name = "dummy" cube.CreateAttribute(dummy_attr_name, Sdf.ValueTypeNames.Float3Array).Set([(1, 2, 3)]) await controller.evaluate() # only the cube should update, and should contain the new attribute assert_stamp(container, 60) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 60) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) self.assertListEqual(get_attr_value(bundle, dummy_attr_name).tolist(), [[1, 2, 3]]) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "radius", 400) assert_attr_value(bundle, "height", 40) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "primvars:displayColor", [[0, 0, 1]]) else: self.fail(path) dummy_attr = get_attr(cube_bundle, dummy_attr_name) self.assertTrue(dummy_attr.is_valid()) dummy_entry_name = cube_bundle_name + "." + dummy_attr_name dummy_dirtyids = dirtyid_interface.get([dummy_attr]) self.assert_dirtyid_validity(dirtyid_interface, [dummy_entry_name], dummy_dirtyids, True) dummy_entries = entries + [dummy_attr] dummy_entry_names = entry_names + [dummy_entry_name] dummy_prev_dirtyids = curr_dirtyids + dummy_dirtyids dummy_curr_dirtyids = dirtyid_interface.get(dummy_entries) self.assert_dirtyid( dirtyid_interface, dummy_entry_names, dummy_curr_dirtyids, dummy_prev_dirtyids, [container_bundle_name, cube_bundle_name], ) # clear new cube attribute set_stamp(70) cube.GetAttribute(dummy_attr_name).Clear() await controller.evaluate() # only the cube should update, and should contain the cleared attribute assert_stamp(container, 70) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 70) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) self.assertListEqual(get_attr_value(bundle, dummy_attr_name).tolist(), []) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "radius", 400) assert_attr_value(bundle, "height", 40) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "primvars:displayColor", [[0, 0, 1]]) else: self.fail(path) dummy_attr = get_attr(cube_bundle, dummy_attr_name) self.assertTrue(dummy_attr.is_valid()) dummy_prev_dirtyids = curr_dirtyids + dummy_dirtyids dummy_curr_dirtyids = dirtyid_interface.get(dummy_entries) self.assert_dirtyid( dirtyid_interface, dummy_entry_names, dummy_curr_dirtyids, dummy_prev_dirtyids, [container_bundle_name, cube_bundle_name, dummy_entry_name], ) # remove the new cube attribute set_stamp(80) cube.RemoveProperty(dummy_attr_name) await controller.evaluate() # only the cube should update, and should not contain the new attribute anymore assert_stamp(container, 80) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 80) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) assert_attr_missing(bundle, dummy_attr_name) elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "radius", 400) assert_attr_value(bundle, "height", 40) assert_attr_value(bundle, "sourcePrimType", "Cone") assert_attr_value(bundle, "primvars:displayColor", [[0, 0, 1]]) else: self.fail(path) dummy_attr = get_attr(cube_bundle, dummy_attr_name) self.assertFalse(dummy_attr.is_valid()) prev_dirtyids = dummy_prev_dirtyids[:-1] curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid( dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, [container_bundle_name, cube_bundle_name] ) curr_dummy_dirtyids = dirtyid_interface.get([dummy_attr]) self.assert_dirtyid_validity(dirtyid_interface, [dummy_entry_name], curr_dummy_dirtyids, False) # remove the cone from the input paths if use_path_pattern: controller.edit( test_graph_path, { keys.SET_VALUES: [ ("Read.inputs:pathPattern", cube_path), ], }, ) else: omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[cube.GetPath()], ) set_stamp(90) await controller.evaluate() # for now, changing inputs:prims does a full update assert_stamp(container, -90) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 0]]) # invalid dirty ids expected for removed entries self.assert_dirtyid_validity( dirtyid_interface, removed_entry_names, dirtyid_interface.get(removed_entries), False ) # the dirty ids should be bumped for all remaining entries remaining_prev_dirtyids = [] remaining_entries = [] remaining_entry_names = [] num_entries = len(entries) for i in range(num_entries): if entry_names[i] not in removed_entry_names: remaining_prev_dirtyids.append(curr_dirtyids[i]) remaining_entries.append(entries[i]) remaining_entry_names.append(entry_names[i]) remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, remaining_entry_names, ) # add the cone again to the input paths if use_path_pattern: controller.edit( test_graph_path, { keys.SET_VALUES: [ ("Read.inputs:pathPattern", "/X*/C*"), ], }, ) else: omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[cube.GetPath(), cone.GetPath()], ) set_stamp(100) await controller.evaluate() # for now, changing inputs:prims does a full update assert_stamp(container, -100) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) for bundle in child_bundles: assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) path = get_attr_value(bundle, "sourcePrimPath") if path == cube_path: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "sourcePrimType", "Cube") elif path == cone_path: n_attrs = get_expected_prim_attributes_count(cone) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "radius", 400) assert_attr_value(bundle, "height", 40) assert_attr_value(bundle, "sourcePrimType", "Cone") # for now, changing inputs:prims does a full update prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # modify, delete and create again, but don't evaluate the graph yet. set_stamp(110) cube.GetAttribute("size").Set(1000) cone.GetAttribute("height").Set(10) stage.RemovePrim(cube_path) cone.GetAttribute("radius").Set(10) stage.RemovePrim(cone_path) cube = ogts.create_cube(stage, "XCube/Cube", (0, 1, 1)) cube.GetAttribute("size").Set(100) removed_entries = [] removed_entry_names = [] for bundle in child_bundles: bundle_path = get_attr_value(bundle, "sourcePrimPath") if bundle_path == cone_path: bundle_name = bundle.get_name() attrs = bundle.get_attributes() removed_entries.append(bundle) removed_entries.extend(attrs) removed_entry_names.append(bundle_name) removed_entry_names.extend([bundle_name + "." + attr.get_name() for attr in attrs]) await controller.evaluate() # the multiple changes should have be collected together # but for now, deleting and creation does a full update unfortunately assert_stamp(container, -110) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[0, 1, 1]]) # invalid dirty ids expected for removed entries self.assert_dirtyid_validity( dirtyid_interface, removed_entry_names, dirtyid_interface.get(removed_entries), False ) # the dirty ids should be bumped for all remaining entries remaining_prev_dirtyids = [] remaining_entries = [] remaining_entry_names = [] num_entries = len(entries) for i in range(num_entries): if entry_names[i] not in removed_entry_names: remaining_prev_dirtyids.append(curr_dirtyids[i]) remaining_entries.append(entries[i]) remaining_entry_names.append(entry_names[i]) remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, remaining_entry_names, ) # remove the Cube parent xform # this should remove the Cube from the bundle set_stamp(120) stage.RemovePrim("/XCube") await controller.evaluate() if use_path_pattern: # The path pattern matcher will not find any prim matches, # so the input paths will be empty. # In this case, the output bundle is just cleared. assert_stamp_missing(container) else: # The relationship still has a path to the delete cone # So the input paths won't change, but the deletion # will be detected by the change tracker assert_stamp(container, -120) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 0) container_prev_dirtyids = [remaining_curr_dirtyids[0]] container_curr_dirtyids = dirtyid_interface.get([container]) self.assert_dirtyid( dirtyid_interface, [container_bundle_name], container_curr_dirtyids, container_prev_dirtyids, [container_bundle_name], ) # create the cube again set_stamp(130) xcube = UsdGeom.Xform.Define(stage, "/XCube") cube = ogts.create_cube(stage, "XCube/Cube", (1, 0, 1)) cube.GetAttribute("size").Set(100) await controller.evaluate() # for now creation of prims results in a full update assert_stamp(container, -130) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", id_mat) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) remaining_prev_dirtyids = remaining_curr_dirtyids remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, remaining_entry_names, ) # translate the cube through its parent xform set_stamp(140) UsdGeom.XformCommonAPI(xcube).SetTranslate((10.0, 10.0, 10.0)) await controller.evaluate() # the cube bundle wordMatrix should have updated assert_stamp(container, 140) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 10000140) # 1e7 means only world matrix was updated assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_missing(bundle, "bboxMaxCorner") assert_attr_missing(bundle, "bboxMinCorner") assert_attr_missing(bundle, "bboxTransform") assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) remaining_prev_dirtyids = remaining_curr_dirtyids remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, [container_bundle_name, cube_bundle_name, cube_bundle_name + ".worldMatrix"], ) # request bounding boxes set_stamp(150) controller.edit( test_graph_path, { keys.SET_VALUES: ("Read.inputs:computeBoundingBox", True), }, ) await controller.evaluate() # changing the computeBoundingBox causes a full update assert_stamp(container, -150) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [50, 50, 50]) assert_attr_value(bundle, "bboxMinCorner", [-50, -50, -50]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) remaining_prev_dirtyids = remaining_curr_dirtyids remaining_curr_dirtyids = dirtyid_interface.get(remaining_entries) self.assert_dirtyid( dirtyid_interface, remaining_entry_names, remaining_curr_dirtyids, remaining_prev_dirtyids, remaining_entry_names, ) bbox_entries = [ get_attr(cube_bundle, "bboxMaxCorner"), get_attr(cube_bundle, "bboxMinCorner"), get_attr(cube_bundle, "bboxTransform"), ] bbox_entry_names = [ cube_bundle_name + ".bboxMaxCorner", cube_bundle_name + ".bboxMinCorner", cube_bundle_name + ".bboxTransform", ] bbox_curr_dirtyids = dirtyid_interface.get(bbox_entries) self.assert_dirtyid_validity(dirtyid_interface, bbox_entry_names, bbox_curr_dirtyids, True) # modify bounding box set_stamp(160) cube.GetAttribute("size").Set(200) await controller.evaluate() # check incremental update assert_stamp(container, 160) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 160) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [100, 100, 100]) assert_attr_value(bundle, "bboxMinCorner", [-100, -100, -100]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) entries = remaining_entries + bbox_entries entry_names = remaining_entry_names + bbox_entry_names prev_dirtyids = remaining_curr_dirtyids + bbox_curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid( dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, [ container_bundle_name, cube_bundle_name, cube_bundle_name + ".size", cube_bundle_name + ".bboxMaxCorner", cube_bundle_name + ".bboxMinCorner", ], ) # evaluate bbox without modification set_stamp(170) await controller.evaluate() # check nothing was updated assert_stamp(container, 160) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 160) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [100, 100, 100]) assert_attr_value(bundle, "bboxMinCorner", [-100, -100, -100]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, []) # animate for timecode in range(10): set_stamp(180 + timecode) controller.edit(test_graph_path, {keys.SET_VALUES: ("Read.inputs:usdTimecode", timecode)}) await controller.evaluate() # check a full update is done assert_stamp(container, -(180 + timecode)) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [100, 100, 100]) assert_attr_value(bundle, "bboxMinCorner", [-100, -100, -100]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # switch back to non-animating set_stamp(200) controller.edit(test_graph_path, {keys.SET_VALUES: ("Read.inputs:usdTimecode", float("nan"))}) # changes to the cube should not trigger an incremental update when switching cube.GetAttribute("size").Set(100) await controller.evaluate() # check a full update is done assert_stamp(container, -200) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [50, 50, 50]) assert_attr_value(bundle, "bboxMinCorner", [-50, -50, -50]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # change the cube again set_stamp(210) # changes to the cube should now trigger an incremental update cube.GetAttribute("size").Set(200) await controller.evaluate() # an incremental update should be done assert_stamp(container, 210) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, debug_stamp=True, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp(bundle, 210) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [100, 100, 100]) assert_attr_value(bundle, "bboxMinCorner", [-100, -100, -100]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) # disable change tracking set_change_tracking(False) set_stamp(220) await controller.evaluate() # the input change should trigger a full update assert_stamp(container, -220) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [100, 100, 100]) assert_attr_value(bundle, "bboxMinCorner", [-100, -100, -100]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 200) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # change the cube again, with change tracking disabled set_stamp(230) # changes to the cube should now trigger a full update cube.GetAttribute("size").Set(100) await controller.evaluate() assert_stamp(container, -230) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [50, 50, 50]) assert_attr_value(bundle, "bboxMinCorner", [-50, -50, -50]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # enable change tracking again set_change_tracking(True) set_stamp(250) await controller.evaluate() # the input change should trigger a full update assert_stamp(container, -250) for bundle in child_bundles: n_attrs = get_expected_prim_attributes_count(cube, bbox=True) self.assertEqual(bundle.get_attribute_count(), n_attrs) assert_stamp_missing(bundle) assert_attr_value(bundle, "sourcePrimPath", cube_path) assert_attr_value(bundle, "sourcePrimType", "Cube") assert_attr_value(bundle, "bboxMaxCorner", [50, 50, 50]) assert_attr_value(bundle, "bboxMinCorner", [-50, -50, -50]) assert_attr_value(bundle, "bboxTransform", id_mat) assert_attr_value(bundle, "worldMatrix", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10, 10, 10, 1]) assert_attr_value(bundle, "size", 100) assert_attr_value(bundle, "primvars:displayColor", [[1, 0, 1]]) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) # create, remove and create the cone, in one go set_stamp(260) cone = ogts.create_cube(stage, "XCone/Cone", (1, 1, 1)) stage.RemovePrim(cone_path) cone = ogts.create_cube(stage, "XCone/Cone", (1, 1, 1)) await controller.evaluate() # the second removal should not cancel the last creation assert_stamp(container, -260) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 2) prev_dirtyids = curr_dirtyids curr_dirtyids = dirtyid_interface.get(entries) self.assert_dirtyid(dirtyid_interface, entry_names, curr_dirtyids, prev_dirtyids, entry_names) async def test_read_prims_change_tracking_no_debug_stamps(self): """omni.graph.nodes.ReadPrimsV2 change tracking should not add debug stamps unless requested""" usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() test_graph_path = "/World/TestGraph" controller = og.Controller() keys = og.Controller.Keys xcube = UsdGeom.Xform.Define(stage, "/XCube") cube = ogts.create_cube(stage, "XCube/Cube", (1, 0, 0)) cube.GetAttribute("size").Set(100) (graph, [read_prims_node, _], _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ("Inspector", "omni.graph.nodes.BundleInspector"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "Inspector.inputs:bundle"), ], keys.SET_VALUES: [ ("Inspector.inputs:print", False), ], }, ) omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=[cube.GetPath()], ) def get_attr(bundle, name): return bundle.get_attribute_by_name(name) def assert_attr_missing(bundle, name): self.assertFalse(get_attr(bundle, name).is_valid()) def assert_stamp_missing(bundle): assert_attr_missing(bundle, "_debugStamp") # initial update await controller.evaluate() graph_context = graph.get_default_graph_context() container = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(container.valid) # no stamps should be added assert_stamp_missing(container) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: assert_stamp_missing(bundle) # trigger incremental empty update await controller.evaluate() # no stamps should be added assert_stamp_missing(container) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: assert_stamp_missing(bundle) # move the xform UsdGeom.XformCommonAPI(xcube).SetTranslate((10.0, 10.0, 10.0)) # trigger incremental update, world matrices should be updated await controller.evaluate() # but no stamps should be added assert_stamp_missing(container) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), 1) for bundle in child_bundles: assert_stamp_missing(bundle) def assert_dirtyid_validity( self, dirtyid_interface: og._og_unstable.IDirtyID2, entry_names: List[str], curr_dirtyids: list, is_valid: bool ): self.assertEqual(len(entry_names), len(curr_dirtyids)) if _debug: print() for entry_name, curr_dirty_id in zip(entry_names, curr_dirtyids): print(entry_name, curr_dirty_id) for entry_name, curr_dirty_id in zip(entry_names, curr_dirtyids): self.assertEqual(dirtyid_interface.is_valid(curr_dirty_id), is_valid, entry_name) def assert_dirtyid( self, dirtyid_interface: og._og_unstable.IDirtyID2, entry_names: List[str], curr_dirtyids: list, prev_dirtyids: list, changed_entry_names: List[str], ): self.assertEqual(len(entry_names), len(curr_dirtyids)) self.assertEqual(len(entry_names), len(prev_dirtyids)) if _debug: print() for entry_name, curr_dirty_id, prev_dirty_id in zip(entry_names, curr_dirtyids, prev_dirtyids): print(entry_name, curr_dirty_id, prev_dirty_id) for entry_name, curr_dirty_id, prev_dirty_id in zip(entry_names, curr_dirtyids, prev_dirtyids): self.assertTrue(dirtyid_interface.is_valid(curr_dirty_id), entry_name) self.assertTrue(dirtyid_interface.is_valid(prev_dirty_id), entry_name) if entry_name in changed_entry_names: self.assertGreater(curr_dirty_id, prev_dirty_id, entry_name) else: self.assertEqual(curr_dirty_id, prev_dirty_id, entry_name)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_dynamic_nodes.py
"""Tests for nodes with dynamic attributes""" # noqa: PLC0302 import unittest from typing import Any, Dict import omni.graph.core as og import omni.graph.core.tests as ogts import omni.usd from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene, _test_verify_scene, _TestGraphAndNode from pxr import OmniGraphSchemaTools DYN_ATTRIBUTE_FORMAT = "inputs:" # ====================================================================== class TestDynamicNodes(ogts.OmniGraphTestCase): """Unit tests for nodes with dynamic attributes""" PERSISTENT_SETTINGS_PREFIX = "/persistent" TEST_GRAPH_PATH = "/World/TestGraph" # This method is copied from the module omnigraph_test_utils and is modified to support the "dynamicInputs" keyword # in test data. Once the dynamic inputs can directly be tested in .ogn files, this implementation should be replaced # with the standard implementation. async def _test_setup_scene( tc: unittest.TestCase, # noqa: N805 controller: og.Controller, test_graph_name: str, test_node_name: str, test_node_type: str, test_run: Dict[str, Any], last_test_info: _TestGraphAndNode, instance_count=0, ) -> _TestGraphAndNode: """Setup the scene based on given test run dictionary Args: tc: Unit test case executing this method. Used to raise errors controller: Controller object to use when constructing the scene (e.g. may have undo support disabled) test_graph_name: Graph name to use when constructing the scene test_node_name: Node name to use when constructing the scene without "setup" explicitly provided in test_run test_node_type: Node type to use when constructing the scene without "setup" explicitly provided in test_run test_run: Dictionary of consist of four sub-lists and a dictionary: - values for input attributes, set before the test starts - values for output attributes, checked after the test finishes - initial values for state attributes, set before the test starts - final values for state attributes, checked after the test finishes - setup to be used for populating the scene via controller For complete implementation see generate_user_test_data. last_test_info: When executing multiple tests cases for the same node, this represents graph and node used in previous run instance_count: number of instances to create assotiated to this graph, in order to test vectorized compute Returns: Graph and node to use in current execution of the test """ test_info = last_test_info setup = test_run.get("setup", None) if setup: (test_info.graph, test_nodes, _, _) = controller.edit(test_graph_name, setup) tc.assertTrue(test_nodes) test_info.node = test_nodes[0] elif setup is None: test_info.graph = controller.create_graph(test_graph_name) test_info.node = controller.create_node((test_node_name, test_info.graph), test_node_type) else: tc.assertTrue( test_info.graph is not None and test_info.graph.is_valid(), "Test is misconfigured - empty setup cannot be in the first test", ) tc.assertTrue(test_info.graph is not None and test_info.graph.is_valid(), "Test graph invalid") tc.assertTrue(test_info.node is not None and test_info.node.is_valid(), "Test node invalid") await controller.evaluate(test_info.graph) inputs = test_run.get("inputs", []) state_set = test_run.get("state_set", []) values_to_set = inputs + state_set if values_to_set: for attribute_name, attribute_value, _ in values_to_set: controller.set(attribute=(attribute_name, test_info.node), value=attribute_value) dynamic_inputs = test_run.get("dynamicInputs", []) if dynamic_inputs: for attribute_name, attribute_value, _ in dynamic_inputs: controller.create_attribute( test_info.node, attribute_name, attribute_value["type"], og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, attribute_value["value"], ) # create some instance prims, and apply the graph on it if instance_count != 0: stage = omni.usd.get_context().get_stage() for i in range(instance_count): prim_name = f"/World/Test_Instance_Prim_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, test_graph_name) return test_info async def test_node_is_updated_when_dynamic_attributes_are_added_or_removed(self): """Tests that the node database is notified and updated when dynamic attributes are added or removed""" # Arrange: create an Add node and add two dynamic attributes on it controller = og.Controller() keys = og.Controller.Keys (graph, (add_node, _, _), _, _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Add", "omni.graph.nodes.Add"), ("Const1", "omni.graph.nodes.ConstantFloat"), ("Const2", "omni.graph.nodes.ConstantFloat"), ], keys.CONNECT: [ ("Const1.inputs:value", "Add.inputs:a"), ("Const2.inputs:value", "Add.inputs:b"), ], keys.SET_VALUES: [ ("Const1.inputs:value", 2.0), ("Const2.inputs:value", 3.0), ], }, ) # Evaluate the graph once to ensure the node has a Database created await controller.evaluate(graph) controller.create_attribute( add_node, "inputs:input0", og.Type(og.BaseDataType.FLOAT), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, 5, # the default value will be applied in the computation ) controller.create_attribute( add_node, "inputs:input1", og.Type(og.BaseDataType.FLOAT), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, 7, # the default value will be applied in the computation ) # Act: evaluate the graph await controller.evaluate(graph) # Assert: read the sum output and test that the dynamic attributes were included in the computation sum_attr = controller.attribute("outputs:sum", add_node) self.assertEqual(17, controller.get(sum_attr), "The dynamic attributes were not included in the computation") # Arrange 2: remove one of the dynamic inputs input0_attr = controller.attribute("inputs:input0", add_node) controller.remove_attribute(input0_attr) # Act 2: evaluate the graph await controller.evaluate(graph) # Assert 2: assert that only one of the dynamic inputs were used in the computation sum_attr = controller.attribute("outputs:sum", add_node) self.assertEqual( 12, og.Controller.get(sum_attr), "The node was not notified of the removal of a dynamic attribute" ) TEST_DATA_ADD = [ { "inputs": [ ["inputs:a", {"type": "float[2]", "value": [1.0, 2.0]}, False], ["inputs:b", {"type": "float[2]", "value": [0.5, 1.0]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[2]", "value": [3.0, 4.0]}, False], ["inputs:d", {"type": "float[2]", "value": [0.1, 0.1]}, False], ], "outputs": [ ["outputs:sum", {"type": "float[2]", "value": [4.6, 7.1]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "int64", "value": 10}, False], ["inputs:b", {"type": "int64", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64", "value": 4}, False], ["inputs:d", {"type": "int64", "value": 20}, False], ], "outputs": [ ["outputs:sum", {"type": "int64", "value": 40}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ["inputs:b", {"type": "double[2]", "value": [5, 5]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "double[2]", "value": [5, 5]}, False], ["inputs:d", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ], "outputs": [ ["outputs:sum", {"type": "double[2][]", "value": [[30, 20], [12, 12]]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ["inputs:b", {"type": "double", "value": 5}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "double[2]", "value": [5, 5]}, False], ["inputs:d", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ], "outputs": [ ["outputs:sum", {"type": "double[2][]", "value": [[30, 20], [12, 12]]}, False], ], }, ] async def test_add(self): """Validates the node OgnAdd with dynamic inputs""" test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_ADD): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Add", "omni.graph.nodes.Add", test_run, test_info ) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.nodes.Add User test case #{i+1}") async def test_add_vectorized(self): """Validates the node OgnAdd with dynamic inputs - vectorized computation""" test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_ADD): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Add", "omni.graph.nodes.Add", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.nodes.Add User test case #{i+1}", 16) TEST_DATA_SUBTRACT = [ { # 1 "inputs": [ ["inputs:a", {"type": "double", "value": 10.0}, False], ["inputs:b", {"type": "double", "value": 0.5}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "double", "value": 1.0}, False], ["inputs:d", {"type": "double", "value": 0.5}, False], ], "outputs": [ ["outputs:difference", {"type": "double", "value": 8}, False], ], }, { # 2 "inputs": [ ["inputs:a", {"type": "float", "value": 10.0}, False], ["inputs:b", {"type": "float", "value": 0.5}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float", "value": 1.0}, False], ["inputs:d", {"type": "float", "value": 0.5}, False], ], "outputs": [ ["outputs:difference", {"type": "float", "value": 8}, False], ], }, { # 3 "inputs": [ ["inputs:a", {"type": "half", "value": 10.0}, False], ["inputs:b", {"type": "half", "value": 0.5}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "half", "value": 1.0}, False], ["inputs:d", {"type": "half", "value": 0.5}, False], ], "outputs": [ ["outputs:difference", {"type": "half", "value": 8.0}, False], ], }, { # 4 "inputs": [ ["inputs:a", {"type": "int", "value": 10}, False], ["inputs:b", {"type": "int", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int", "value": 1}, False], ["inputs:d", {"type": "int", "value": 2}, False], ], "outputs": [ ["outputs:difference", {"type": "int", "value": 1}, False], ], }, { # 5 "inputs": [ ["inputs:a", {"type": "int64", "value": 10}, False], ["inputs:b", {"type": "int64", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64", "value": 1}, False], ["inputs:d", {"type": "int64", "value": 2}, False], ], "outputs": [ ["outputs:difference", {"type": "int64", "value": 1}, False], ], }, { # 6 "inputs": [ ["inputs:a", {"type": "uchar", "value": 10}, False], ["inputs:b", {"type": "uchar", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "uchar", "value": 1}, False], ["inputs:d", {"type": "uchar", "value": 2}, False], ], "outputs": [ ["outputs:difference", {"type": "uchar", "value": 1}, False], ], }, { # 7 "inputs": [ ["inputs:a", {"type": "uint", "value": 10}, False], ["inputs:b", {"type": "uint", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "uint", "value": 1}, False], ["inputs:d", {"type": "uint", "value": 2}, False], ], "outputs": [ ["outputs:difference", {"type": "uint", "value": 1}, False], ], }, { # 8 "inputs": [ ["inputs:a", {"type": "uint64", "value": 10}, False], ["inputs:b", {"type": "uint64", "value": 6}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "uint64", "value": 1}, False], ["inputs:d", {"type": "uint64", "value": 2}, False], ], "outputs": [ ["outputs:difference", {"type": "uint64", "value": 1}, False], ], }, { # 9 "inputs": [ ["inputs:a", {"type": "float[2]", "value": [10.0, 20.0]}, False], ["inputs:b", {"type": "float[2]", "value": [0.5, 1.0]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[2]", "value": [1.0, 2.0]}, False], ["inputs:d", {"type": "float[2]", "value": [3.0, 4.0]}, False], ], "outputs": [ ["outputs:difference", {"type": "float[2]", "value": [5.5, 13.0]}, False], ], }, { # 10 "inputs": [ ["inputs:a", {"type": "float[3]", "value": [10.0, 20.0, 30.0]}, False], ["inputs:b", {"type": "float[3]", "value": [0.5, 1.0, 1.5]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[3]", "value": [1.0, 2.0, 3.0]}, False], ["inputs:d", {"type": "float[3]", "value": [0.5, 1.0, 1.5]}, False], ], "outputs": [ ["outputs:difference", {"type": "float[3]", "value": [8.0, 16.0, 24.0]}, False], ], }, { # 11 "inputs": [ ["inputs:a", {"type": "float[4]", "value": [10.0, 20.0, 30.0, 40.0]}, False], ["inputs:b", {"type": "float[4]", "value": [0.5, 1.0, 1.5, 2.0]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[4]", "value": [1.0, 2.0, 3.0, 4.0]}, False], ["inputs:d", {"type": "float[4]", "value": [0.5, 0.5, 0.5, 0.5]}, False], ], "outputs": [ ["outputs:difference", {"type": "float[4]", "value": [8.0, 16.5, 25.0, 33.5]}, False], ], }, { # 12 "inputs": [ ["inputs:a", {"type": "float[2]", "value": [2.0, 3.0]}, False], ["inputs:b", {"type": "float", "value": 1.0}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[2]", "value": [0.5, 0.5]}, False], ["inputs:d", {"type": "float", "value": 1.0}, False], ], "outputs": [ ["outputs:difference", {"type": "float[2]", "value": [-0.5, 0.5]}, False], ], }, { # 13 "inputs": [ ["inputs:a", {"type": "float", "value": 1.0}, False], ["inputs:b", {"type": "float[2]", "value": [1.0, 2.0]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float", "value": 1.0}, False], ["inputs:d", {"type": "float[2]", "value": [1.0, 2.0]}, False], ], "outputs": [ ["outputs:difference", {"type": "float[2]", "value": [-2.0, -4.0]}, False], ], }, { # 14 "inputs": [ ["inputs:a", {"type": "float[]", "value": [2.0, 3.0]}, False], ["inputs:b", {"type": "float", "value": 1.0}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float[]", "value": [2.0, 3.0]}, False], ["inputs:d", {"type": "float", "value": 1.0}, False], ], "outputs": [ ["outputs:difference", {"type": "float[]", "value": [-2.0, -2.0]}, False], ], }, { # 15 "inputs": [ ["inputs:a", {"type": "float", "value": 1.0}, False], ["inputs:b", {"type": "float[]", "value": [1.0, 2.0]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "float", "value": 1.0}, False], ["inputs:d", {"type": "float[]", "value": [1.0, 2.0]}, False], ], "outputs": [ ["outputs:difference", {"type": "float[]", "value": [-2.0, -4.0]}, False], ], }, { # 16 "inputs": [ ["inputs:a", {"type": "int64[]", "value": [10]}, False], ["inputs:b", {"type": "int64[]", "value": [5]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64[]", "value": [1]}, False], ["inputs:d", {"type": "int64[]", "value": [2]}, False], ], "outputs": [ ["outputs:difference", {"type": "int64[]", "value": [2]}, False], ], }, { # 17 "inputs": [ ["inputs:a", {"type": "int64[]", "value": [10, 20]}, False], ["inputs:b", {"type": "int64[]", "value": [5, 10]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64[]", "value": [1, 2]}, False], ["inputs:d", {"type": "int64[]", "value": [3, 4]}, False], ], "outputs": [ ["outputs:difference", {"type": "int64[]", "value": [1, 4]}, False], ], }, { # 18 "inputs": [ ["inputs:a", {"type": "int64[]", "value": [10, 20, 30]}, False], ["inputs:b", {"type": "int64[]", "value": [5, 10, 15]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64[]", "value": [10, 20, 30]}, False], ["inputs:d", {"type": "int64[]", "value": [5, 10, 15]}, False], ], "outputs": [ ["outputs:difference", {"type": "int64[]", "value": [-10, -20, -30]}, False], ], }, { # 19 "inputs": [ ["inputs:a", {"type": "int64[]", "value": [10, 20, 30, 40]}, False], ["inputs:b", {"type": "int64[]", "value": [5, 10, 15, 20]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int64[]", "value": [10, 20, 30, 40]}, False], ["inputs:d", {"type": "int64[]", "value": [5, 10, 15, 20]}, False], ], "outputs": [ ["outputs:difference", {"type": "int64[]", "value": [-10, -20, -30, -40]}, False], ], }, { # 20 "inputs": [ ["inputs:a", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ["inputs:b", {"type": "int[3]", "value": [5, 10, 15]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ["inputs:d", {"type": "int[3]", "value": [5, 10, 15]}, False], ], "outputs": [ [ "outputs:difference", {"type": "int[3][]", "value": [[-10, -20, -30], [-10, -20, -30]]}, False, ], # output an array with a single int3 element ], }, { # 21 dynamic arrays mirror the default attributes - should give the same result as previous test "inputs": [ ["inputs:a", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ["inputs:b", {"type": "int[3]", "value": [5, 10, 15]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int[3]", "value": [5, 10, 15]}, False], ["inputs:d", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ], "outputs": [ ["outputs:difference", {"type": "int[3][]", "value": [[-10, -20, -30], [-10, -20, -30]]}, False], ], }, { # 22 "inputs": [ ["inputs:a", {"type": "int[3]", "value": [5, 10, 15]}, False], ["inputs:b", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int[3]", "value": [5, 10, 15]}, False], ["inputs:d", {"type": "int[3][]", "value": [[10, 20, 30], [40, 50, 60]]}, False], ], "outputs": [ ["outputs:difference", {"type": "int[3][]", "value": [[-20, -40, -60], [-80, -100, -120]]}, False], ], }, { # 23 "inputs": [ ["inputs:a", {"type": "int[2][]", "value": [[10, 20], [30, 40], [50, 60]]}, False], ["inputs:b", {"type": "int[2]", "value": [5, 10]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int[2][]", "value": [[10, 20], [30, 40], [50, 60]]}, False], ["inputs:d", {"type": "int[2]", "value": [5, 10]}, False], ], "outputs": [ ["outputs:difference", {"type": "int[2][]", "value": [[-10, -20], [-10, -20], [-10, -20]]}, False], ], }, { # 24 "inputs": [ ["inputs:a", {"type": "int[2]", "value": [5, 10]}, False], ["inputs:b", {"type": "int[2][]", "value": [[10, 20], [30, 40], [50, 60]]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "int[2]", "value": [5, 10]}, False], ["inputs:d", {"type": "int[2][]", "value": [[10, 20], [30, 40], [50, 60]]}, False], ], "outputs": [ ["outputs:difference", {"type": "int[2][]", "value": [[-20, -40], [-60, -80], [-100, -120]]}, False], ], }, ] async def test_subtract(self): """Validates the node OgnSubtract with dynamic inputs""" test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_SUBTRACT): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Subtract", "omni.graph.nodes.Subtract", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.Subtract User test case #{i+1}" ) async def test_subtract_vectorized(self): """Validates the node OgnSubtract with dynamic inputs - vectorized computation""" test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_SUBTRACT): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Subtract", "omni.graph.nodes.Subtract", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.Subtract User test case #{i+1}", 16 ) TEST_DATA_MULTIPLY = [ { "inputs": [ ["inputs:a", {"type": "float", "value": 42.0}, False], ["inputs:b", {"type": "float", "value": 2.0}, False], ], "outputs": [ ["outputs:product", {"type": "float", "value": 84.0}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2]", "value": [1.0, 42.0]}, False], ["inputs:b", {"type": "double[2]", "value": [2.0, 1.0]}, False], ], "outputs": [ ["outputs:product", {"type": "double[2]", "value": [2.0, 42.0]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[]", "value": [1.0, 42.0]}, False], ["inputs:b", {"type": "double", "value": 2.0}, False], ], "outputs": [ ["outputs:product", {"type": "double[]", "value": [2.0, 84.0]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ["inputs:b", {"type": "double[2]", "value": [5, 5]}, False], ], "outputs": [ ["outputs:product", {"type": "double[2][]", "value": [[50, 25], [5, 5]]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2][]", "value": [[10, 5], [1, 1]]}, False], ["inputs:b", {"type": "double", "value": 2}, False], ], "outputs": [ ["outputs:product", {"type": "double[2][]", "value": [[20, 10], [2, 2]]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "double[2]", "value": [10, 5]}, False], ["inputs:b", {"type": "double", "value": 2}, False], ], "outputs": [ ["outputs:product", {"type": "double[2]", "value": [20, 10]}, False], ], }, ] async def test_multiply(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_MULTIPLY): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Multiply", "omni.graph.nodes.Multiply", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.Multiply User test case #{i+1}" ) async def test_multiply_vectorized(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_MULTIPLY): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_Multiply", "omni.graph.nodes.Multiply", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.Multiply User test case #{i+1}", 16 ) TEST_DATA_AND = [ { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", False, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": True}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": True}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", True, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:b", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": True}, False], ["inputs:d", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "outputs": [ ["outputs:result", [False, False, False, True], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool[]", "value": [False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", [False, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": False}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True]}, False], ["inputs:d", {"type": "bool", "value": False}, False], ], "outputs": [ ["outputs:result", [False, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True]}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", [False, True], False], ], }, ] async def test_boolean_and(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_AND): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanAnd", "omni.graph.nodes.BooleanAnd", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanAnd User test case #{i+1}" ) async def test_boolean_and_vectorized(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_AND): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanAnd", "omni.graph.nodes.BooleanAnd", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanAnd User test case #{i+1}", 16 ) TEST_DATA_OR = [ { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", True, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:b", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", {"type": "bool[]", "value": [True, True, True, True]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool[]", "value": [False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", [True, True], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": False}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", [False, True], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": False}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", {"type": "bool[]", "value": [False, True]}, False], ], }, ] async def test_boolean_or(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_OR): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanOr", "omni.graph.nodes.BooleanOr", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanOr User test case #{i+1}" ) async def test_boolean_or_vectorized(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_OR): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanOr", "omni.graph.nodes.BooleanOr", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanOr User test case #{i+1}", 16 ) TEST_DATA_NAND = [ { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", True, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:b", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:d", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "outputs": [ ["outputs:result", [True, True, True, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool[]", "value": [False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", [True, True], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool[]", "value": [False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True]}, False], ["inputs:d", {"type": "bool", "value": False}, False], ], "outputs": [ ["outputs:result", [True, True], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True]}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", [True, False], False], ], }, ] async def test_boolean_nand(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_NAND): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanNand", "omni.graph.nodes.BooleanNand", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanNand User test case #{i+1}" ) async def test_boolean_nand_vectorized(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_NAND): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanNand", "omni.graph.nodes.BooleanNand", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanNand User test case #{i+1}", 16 ) TEST_DATA_NOR = [ { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool", "value": True}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool", "value": True}, False], ], "outputs": [ ["outputs:result", False, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool", "value": False}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ], "outputs": [ ["outputs:result", True, False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:b", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:d", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "outputs": [ ["outputs:result", [True, False, False, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, False, True, True]}, False], ["inputs:b", {"type": "bool[]", "value": [False, True, False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True, False, True]}, False], ["inputs:d", {"type": "bool[]", "value": [False, False, True, True]}, False], ], "outputs": [ ["outputs:result", [True, False, False, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool", "value": False}, False], ["inputs:b", {"type": "bool[]", "value": [False, True]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool", "value": False}, False], ["inputs:d", {"type": "bool[]", "value": [False, True]}, False], ], "outputs": [ ["outputs:result", [True, False], False], ], }, { "inputs": [ ["inputs:a", {"type": "bool[]", "value": [False, True]}, False], ["inputs:b", {"type": "bool", "value": False}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "bool[]", "value": [False, True]}, False], ["inputs:d", {"type": "bool", "value": False}, False], ], "outputs": [ ["outputs:result", [True, False], False], ], }, ] async def test_boolean_nor(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_NOR): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanNor", "omni.graph.nodes.BooleanNor", test_run, test_info, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanNor User test case #{i+1}" ) async def test_boolean_nor_vectorized(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_NOR): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "TestNode_omni_graph_nodes_BooleanNor", "omni.graph.nodes.BooleanNor", test_run, test_info, 16, ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BooleanNor User test case #{i+1}", 16 ) TEST_DATA_APPEND_STRING = [ { "inputs": [ ["inputs:a", {"type": "token", "value": "/"}, False], ["inputs:b", {"type": "token", "value": "foo"}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "token", "value": "/"}, False], ["inputs:d", {"type": "token", "value": "bar"}, False], ], "outputs": [ ["outputs:value", {"type": "token", "value": "/foo/bar"}, False], ], }, { "inputs": [ ["inputs:a", {"type": "token[]", "value": ["/World", "/World2"]}, False], ["inputs:b", {"type": "token", "value": "/foo"}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "token", "value": "/"}, False], ["inputs:d", {"type": "token", "value": "bar"}, False], ], "outputs": [ ["outputs:value", {"type": "token[]", "value": ["/World/foo/bar", "/World2/foo/bar"]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "token[]", "value": ["/World", "/World2"]}, False], ["inputs:b", {"type": "token[]", "value": ["/foo", "/bar"]}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "token[]", "value": ["/", "baz"]}, False], ["inputs:d", {"type": "token[]", "value": ["/", "biz"]}, False], ], "outputs": [ ["outputs:value", {"type": "token[]", "value": ["/World/foo//", "/World2/barbazbiz"]}, False], ], }, { "inputs": [ ["inputs:a", {"type": "string", "value": "/"}, False], ["inputs:b", {"type": "string", "value": "foo"}, False], ], "dynamicInputs": [ ["inputs:c", {"type": "string", "value": "/"}, False], ["inputs:d", {"type": "string", "value": "bar"}, False], ], "outputs": [ ["outputs:value", {"type": "string", "value": "/foo/bar"}, False], ], }, ] async def test_append_string(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA_APPEND_STRING): await _test_clear_scene(self, test_run) test_info = await self._test_setup_scene( controller, "/TestGraph", "AppendString", "omni.graph.nodes.BuildString", test_run, test_info ) await controller.evaluate(test_info.graph) _test_verify_scene( self, controller, test_run, test_info, f"omni.graph.nodes.BuildString User test case #{i+1}" )
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_nodes.py
# noqa: PLC0302 """Misc collection of tests for nodes in this extension""" import math import os from functools import partial from math import isnan from typing import Callable, Set import carb import carb.settings import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.stage_templates import omni.kit.test import omni.timeline import omni.usd import usdrt from omni.graph.core import ThreadsafetyTestUtils from pxr import Gf, OmniGraphSchemaTools, Sdf, Usd, UsdGeom, UsdShade # ====================================================================== class TestNodes(ogts.OmniGraphTestCase): """Unit tests nodes in this extension""" PERSISTENT_SETTINGS_PREFIX = "/persistent" TEST_GRAPH_PATH = "/World/TestGraph" async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() # Ensure that Xform prims are created with the full set of xformOp attributes with consistent behavior. settings = carb.settings.get_settings() settings.set(self.PERSISTENT_SETTINGS_PREFIX + "/app/primCreation/PrimCreationWithDefaultXformOps", True) settings.set( self.PERSISTENT_SETTINGS_PREFIX + "/app/primCreation/DefaultXformOpType", "Scale, Rotate, Translate" ) settings.set(self.PERSISTENT_SETTINGS_PREFIX + "/app/primCreation/DefaultRotationOrder", "XYZ") settings.set( self.PERSISTENT_SETTINGS_PREFIX + "/app/primCreation/DefaultXformOpOrder", "xformOp:translate, xformOp:rotate, xformOp:scale", ) settings.set(self.PERSISTENT_SETTINGS_PREFIX + "/app/primCreation/DefaultXformOpPrecision", "Double") # ---------------------------------------------------------------------- async def test_getprimrelationship(self): """Test GetPrimRelationship node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (get_node,), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: ("Get", "omni.graph.nodes.GetPrimRelationship"), keys.CREATE_PRIMS: [("RelHolder", {}), ("TestPrimA", {}), ("TestPrimB", {})], keys.SET_VALUES: [("Get.inputs:name", "test_rel"), ("Get.inputs:usePath", False)], }, ) await controller.evaluate(graph) prim = stage.GetPrimAtPath("/RelHolder") rel = prim.CreateRelationship("test_rel") for prim_path in ("/TestPrimA", "/TestPrimB"): omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=Sdf.Path(prim_path)) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Get.inputs:prim"), target=prim.GetPath(), ) await controller.evaluate(graph) rel_paths = og.Controller.get(controller.attribute("outputs:paths", get_node)) self.assertEqual(rel_paths, rel.GetTargets()) controller.edit( self.TEST_GRAPH_PATH, {keys.SET_VALUES: [("Get.inputs:path", "/RelHolder"), ("Get.inputs:usePath", True)]}, ) await controller.evaluate(graph) rel_paths = og.Controller.get(controller.attribute("outputs:paths", get_node)) self.assertEqual(rel_paths, rel.GetTargets()) # ---------------------------------------------------------------------- @ThreadsafetyTestUtils.make_threading_test def test_get_prim_path(self, test_instance_id: int = 0): """Test GetPrimPath node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph_path = self.TEST_GRAPH_PATH + str(test_instance_id) prim_path = "/World/TestPrim" ThreadsafetyTestUtils.add_to_threading_cache(test_instance_id, stage.DefinePrim(prim_path)) controller = og.Controller() keys = og.Controller.Keys (_, (get_node,), _, _) = controller.edit( graph_path, {keys.CREATE_NODES: ("GetPrimPath", "omni.graph.nodes.GetPrimPath")}, ) rel = stage.GetPropertyAtPath(f"{graph_path}/GetPrimPath.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=prim_path) yield ThreadsafetyTestUtils.EVALUATION_ALL_GRAPHS rel_paths = og.Controller.get(controller.attribute("outputs:primPath", get_node)) self.assertEqual(rel_paths, prim_path) ThreadsafetyTestUtils.single_evaluation_last_test_instance( test_instance_id, lambda: stage.RemovePrim(prim_path) ) # ---------------------------------------------------------------------- @ThreadsafetyTestUtils.make_threading_test def test_get_prim_paths(self, test_instance_id: int = 0): """Test GetPrimPaths node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph_path = self.TEST_GRAPH_PATH + str(test_instance_id) prim_paths = ["/World/TestPrim1", "/World/TestPrim2"] ThreadsafetyTestUtils.add_to_threading_cache(test_instance_id, stage.DefinePrim(prim_paths[0])) ThreadsafetyTestUtils.add_to_threading_cache(test_instance_id, stage.DefinePrim(prim_paths[1])) controller = og.Controller() keys = og.Controller.Keys (_, (get_node,), _, _) = controller.edit( graph_path, {keys.CREATE_NODES: ("GetPrimPaths", "omni.graph.nodes.GetPrimPaths")}, ) rel = stage.GetPropertyAtPath(f"{graph_path}/GetPrimPaths.inputs:prims") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=prim_paths[0]) omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=prim_paths[1]) yield ThreadsafetyTestUtils.EVALUATION_ALL_GRAPHS rel_paths = og.Controller.get(controller.attribute("outputs:primPaths", get_node)) self.assertEqual(rel_paths, prim_paths) ThreadsafetyTestUtils.single_evaluation_last_test_instance( test_instance_id, lambda: stage.RemovePrim(prim_paths[0]) ) ThreadsafetyTestUtils.single_evaluation_last_test_instance( test_instance_id, lambda: stage.RemovePrim(prim_paths[1]) ) # ---------------------------------------------------------------------- @ThreadsafetyTestUtils.make_threading_test def test_get_prims_at_path(self, test_instance_id: int = 0): """Test GetPrimAtPath node""" graph_path = self.TEST_GRAPH_PATH + str(test_instance_id) controller = og.Controller() prim_path = "/World/foo/bar" keys = og.Controller.Keys (_, (get_prim_at_path, get_prims_at_path, _, _), _, _) = controller.edit( graph_path, { keys.CREATE_NODES: [ ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("GetPrimsAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("MakeArray", "omni.graph.nodes.ConstructArray"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ("MakeArray.outputs:array", "GetPrimsAtPath.inputs:path"), ], keys.SET_VALUES: [ ("MakeArray.inputs:arraySize", 3), ("MakeArray.inputs:arrayType", "token[]"), ("MakeArray.inputs:input0", prim_path), ("ConstToken.inputs:value", prim_path), ], }, ) yield ThreadsafetyTestUtils.EVALUATION_ALL_GRAPHS out_path = og.Controller.get(controller.attribute("outputs:prims", get_prim_at_path)) self.assertEqual(out_path, [usdrt.Sdf.Path(prim_path)]) out_paths = og.Controller.get(controller.attribute("outputs:prims", get_prims_at_path)) self.assertEqual(out_paths, [usdrt.Sdf.Path(prim_path)] * 3) # ---------------------------------------------------------------------- @ThreadsafetyTestUtils.make_threading_test def test_constant_prims(self, test_instance_id: int = 0): """Test ConstantPrims node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph_path = self.TEST_GRAPH_PATH + str(test_instance_id) prim_paths = ["/World/TestPrim1", "/World/TestPrim2"] for prim_path in prim_paths: ThreadsafetyTestUtils.add_to_threading_cache(test_instance_id, stage.DefinePrim(prim_path)) controller = og.Controller() keys = og.Controller.Keys (_, (_const_prims, prim_paths_node), _, _) = controller.edit( graph_path, { keys.CREATE_NODES: [ ("ConstantPrims", "omni.graph.nodes.ConstantPrims"), ("GetPrimPath", "omni.graph.nodes.GetPrimPaths"), ], keys.CONNECT: [("ConstantPrims.inputs:value", "GetPrimPath.inputs:prims")], }, ) rel = stage.GetPropertyAtPath(f"{graph_path}/ConstantPrims.inputs:value") for prim_path in prim_paths: omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=prim_path) yield ThreadsafetyTestUtils.EVALUATION_ALL_GRAPHS out_paths = og.Controller.get(controller.attribute("outputs:primPaths", prim_paths_node)) self.assertEqual(out_paths, prim_paths) for prim_path in prim_paths: ThreadsafetyTestUtils.single_evaluation_last_test_instance( test_instance_id, partial(stage.RemovePrim, prim_path) ) # ---------------------------------------------------------------------- async def test_constant_prims_loads_from_file(self): """ Validation that connections are maintained when loading a graph from a file which uses ConstantPrims - which uses a target input attribute as its output """ await ogts.load_test_file("TestConstantPrims.usda", use_caller_subdirectory=True) self.assertTrue(og.Controller.graph("/World/PushGraph").is_valid()) self.assertTrue(og.Controller.node("/World/PushGraph/constant_prims").is_valid()) self.assertTrue(og.Controller.node("/World/PushGraph/get_prim_paths").is_valid()) attr_dst = og.Controller.attribute("/World/PushGraph/get_prim_paths.inputs:prims") attr_src = og.Controller.attribute("/World/PushGraph/constant_prims.inputs:value") self.assertTrue(attr_dst.is_valid()) self.assertTrue(attr_src.is_valid()) self.assertTrue(attr_dst.is_connected(attr_src)) self.assertEqual(attr_dst.get_upstream_connection_count(), 1) self.assertEqual(attr_dst.get_upstream_connections()[0].get_path(), attr_src.get_path()) actual_result = og.Controller.get(attr_dst) expected_result = [usdrt.Sdf.Path("/Environment"), usdrt.Sdf.Path("/Environment/defaultLight")] self.assertEqual(expected_result, actual_result) # ---------------------------------------------------------------------- @ThreadsafetyTestUtils.make_threading_test def test_get_parent_prims(self, test_instance_id: int = 0): """Test ConstantPrims node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph_path = self.TEST_GRAPH_PATH + str(test_instance_id) prim_paths = ["/World/Test", "/World/Test/Test"] prim_parents = ["/World", "/World/Test"] for prim_path in prim_paths: ThreadsafetyTestUtils.add_to_threading_cache(test_instance_id, stage.DefinePrim(prim_path)) controller = og.Controller() keys = og.Controller.Keys (_, (get_parent_prims,), _, _) = controller.edit( graph_path, {keys.CREATE_NODES: ("GetParentPrims", "omni.graph.nodes.GetParentPrims")} ) rel = stage.GetPropertyAtPath(f"{graph_path}/GetParentPrims.inputs:prims") for prim_path in prim_paths: omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=prim_path) yield ThreadsafetyTestUtils.EVALUATION_ALL_GRAPHS out_paths = og.Controller.get(controller.attribute("outputs:parentPrims", get_parent_prims)) self.assertEqual(out_paths, [usdrt.Sdf.Path(p) for p in prim_parents]) for prim_path in prim_paths: ThreadsafetyTestUtils.single_evaluation_last_test_instance( test_instance_id, partial(stage.RemovePrim, prim_path) ) # ---------------------------------------------------------------------- async def test_prim_relationship_load(self): """Test that a prim relationship when loading does not create OgnPrim node""" async def do_test(): await ogts.load_test_file("TestPrimRelationshipLoad.usda", use_caller_subdirectory=True) # Cube and Capsule are driving Sphere, Cylinder, Cone by various methods usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph = og.get_graph_by_path("/World/PushGraph") controller = og.Controller() nodes = graph.get_nodes() node_paths = [n.get_prim_path() for n in nodes] # These prims are only connected by relationship, so should not show up in OG self.assertNotIn("/World/Cube", node_paths) self.assertNotIn("/World/Sphere", node_paths) self.assertNotIn("/World/Cylinder", node_paths) self.assertNotIn("/World/Cone", node_paths) # Sanity check that the rotate connections are working for p in ("Sphere", "Capsule", "Cylinder", "Cone"): rotate_xyz = stage.GetPrimAtPath("/World/" + p).GetAttribute("xformOp:rotateXYZ").Get() self.assertEqual(rotate_xyz[0], 0) self.assertEqual(rotate_xyz[1], 0) stage.GetPrimAtPath("/World/Cube").GetAttribute("xformOp:rotateXYZ").Set((100, 0, 0)) stage.GetPrimAtPath("/World/Capsule").GetAttribute("xformOp:rotateXYZ").Set((100, 0, 0)) await controller.evaluate(graph) for p in ("Sphere", "Cylinder", "Cone"): rotate_xyz = stage.GetPrimAtPath("/World/" + p).GetAttribute("xformOp:rotateXYZ").Get() if p == "Cone": # /World/Cone is not loaded into Flatcache, so we expect this part of the # graph to be non-functional (Cone will not change) self.assertEqual(rotate_xyz[0], 0) self.assertEqual(rotate_xyz[1], 0) await do_test() # ---------------------------------------------------------------------- @staticmethod def _get_expected_read_prims_property_names(prim) -> Set[str]: properties = set(prim.GetAuthoredPropertyNames()) properties.update({"worldMatrix", "sourcePrimPath", "sourcePrimType"}) return properties # ---------------------------------------------------------------------- @staticmethod def _get_expected_read_prims_v2_property_names(prim) -> Set[str]: properties = set(prim.GetPropertyNames()) properties.remove("proxyPrim") # remove "proxyPrim" which is skipped unless it has targets properties.update({"worldMatrix", "sourcePrimPath", "sourcePrimType"}) return properties # ---------------------------------------------------------------------- async def test_read_prims_write_prim(self): """Test omni.graph.nodes.ReadPrims and WritePrim""" await self._read_prims_write_prim( "omni.graph.nodes.ReadPrims", False, compute_expected_property_names=self._get_expected_read_prims_property_names, ) # ---------------------------------------------------------------------- async def test_read_prims_write_prim_with_target(self): await self._read_prims_write_prim( "omni.graph.nodes.ReadPrims", True, compute_expected_property_names=self._get_expected_read_prims_property_names, ) # ---------------------------------------------------------------------- async def test_read_prims_v2_write_prim(self): """Test omni.graph.nodes.ReadPrimsV2 and WritePrim""" await self._read_prims_write_prim( "omni.graph.nodes.ReadPrimsV2", False, compute_expected_property_names=self._get_expected_read_prims_v2_property_names, ) # ---------------------------------------------------------------------- async def test_read_prims_v2_write_prim_with_target(self): await self._read_prims_write_prim( "omni.graph.nodes.ReadPrimsV2", True, compute_expected_property_names=self._get_expected_read_prims_v2_property_names, ) # ---------------------------------------------------------------------- async def test_read_prims_bundle_write_prim(self): """Test omni.graph.nodes.ReadPrimsBundle and WritePrim""" await self._read_prims_write_prim( "omni.graph.nodes.ReadPrimsBundle", False, compute_expected_property_names=self._get_expected_read_prims_property_names, ) # ---------------------------------------------------------------------- async def test_read_prims_bundle_write_prim_with_target(self): await self._read_prims_write_prim( "omni.graph.nodes.ReadPrimsBundle", True, compute_expected_property_names=self._get_expected_read_prims_property_names, ) # ---------------------------------------------------------------------- async def _read_prims_write_prim( self, read_prims_type, use_target_inputs, compute_expected_property_names: Callable ): """ use_target_inputs will use the prim target input for the ExtractPrim nodes rather than the prim path input """ usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys cube_prim = ogts.create_cube(stage, "Cube", (1, 1, 1)) (graph, (read_node, write_node, _, _, extract_bundle_node), _, _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", read_prims_type), ("Write", "omni.graph.nodes.WritePrim"), ("Add", "omni.graph.nodes.Add"), ("ExtractPrim", "omni.graph.nodes.ExtractPrim"), ("ExtractBundle", "omni.graph.nodes.ExtractBundle"), ], keys.SET_VALUES: [ ("ExtractPrim.inputs:primPath", "/Cube"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractPrim.inputs:prims"), ("ExtractPrim.outputs_primBundle", "ExtractBundle.inputs:bundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prim"), target=cube_prim.GetPath(), ) await controller.evaluate(graph) if use_target_inputs: omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/ExtractPrim.inputs:prim"), target=cube_prim.GetPath(), ) await controller.evaluate(graph) factory = og.IBundleFactory.create() # Check MPiB output for Read bundle = graph.get_default_graph_context().get_output_bundle(read_node, "outputs_primsBundle") output_bundle2 = factory.get_bundle(graph.get_default_graph_context(), bundle) self.assertEqual(output_bundle2.get_child_bundle_count(), 1) # Attribute Count: # 2 - node: type, typeVersion, # 3 - inputs: bundle # 2 - outputs: passThrough, n_static_attribs_extract_bundle = 4 # Attribute Count: # 2 - node: type, typeVersion, # 3 - inputs: prim, execIn, usdWriteBack # 1 - outputs: execOut, n_static_attribs_write = 6 extract_bundle_name = "outputs_passThrough" attribs = extract_bundle_node.get_attributes() found_size_attrib = False for attrib in attribs: if attrib.get_name() == "outputs:size" and attrib.get_resolved_type().base_type == og.BaseDataType.DOUBLE: found_size_attrib = True self.assertTrue(found_size_attrib) expected_property_names = compute_expected_property_names(cube_prim) bundle = graph.get_default_graph_context().get_output_bundle(extract_bundle_node, extract_bundle_name) attribute_names = set(bundle.get_attribute_names()) self.assertEqual(attribute_names, expected_property_names) # Check we have the expected bundle attributes self.assertIn("size", attribute_names) self.assertIn("sourcePrimPath", attribute_names) self.assertIn("sourcePrimType", attribute_names) self.assertIn("worldMatrix", attribute_names) self.assertIn("primvars:displayColor", attribute_names) attribute_datas = bundle.get_attribute_data(False) self.assertEqual( next((a for a in attribute_datas if a.get_name() == "sourcePrimPath")).get(), cube_prim.GetPath().pathString, ) # Check we have the expected dynamic attrib on WritePrim attribs = write_node.get_attributes() found_size_attrib = False for attrib in attribs: if attrib.get_name() == "inputs:size" and attrib.get_resolved_type().base_type == og.BaseDataType.DOUBLE: found_size_attrib = True self.assertTrue(found_size_attrib) # check that evaluations propagate in a read/write cycle as expected controller.edit( self.TEST_GRAPH_PATH, { keys.CONNECT: [ ("ExtractBundle.outputs:size", "Add.inputs:a"), ("ExtractBundle.outputs:size", "Add.inputs:b"), ("Add.outputs:sum", "Write.inputs:size"), ] }, ) await controller.evaluate(graph) attr = controller.attribute("outputs:size", extract_bundle_node) # it is now 2 on prim, but read node as not been executed after the write, so still has the old value self.assertEqual(og.Controller.get(attr), 1) await controller.evaluate(graph) # now it is 4 on the prim, and /Read as 2 self.assertEqual(og.Controller.get(attr), 2) await controller.evaluate(graph) # now it is 8 on the prim, and /Read as 4 self.assertEqual(og.Controller.get(attr), 4) # ReadPrim: Clear the inputs:prim attribute to trigger a reset of the ReadPrim node omni.kit.commands.execute( "RemoveRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prims"), target=cube_prim.GetPath(), ) await controller.evaluate(graph) # Verify that the stale dynamic and bundle attributes have been removed attribs = extract_bundle_node.get_attributes() self.assertEqual(len(attribs), n_static_attribs_extract_bundle) bundle = graph.get_default_graph_context().get_output_bundle(extract_bundle_node, extract_bundle_name) self.assertEqual(bundle.get_attribute_data_count(), 0) # WritePrim: Clear the inputs:prim attribute to trigger a reset of the WritePrim node omni.kit.commands.execute( "RemoveRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prim"), target=cube_prim.GetPath(), ) await controller.evaluate(graph) # Verify that the stale dynamic and bundle attributes have been removed attribs = write_node.get_attributes() self.assertEqual(len(attribs), n_static_attribs_write) # Set it up again and re-verify things work omni.kit.undo.undo() # Undo remove target from Write Prim # Following step is to undo disconnected and removed dynamic attributes inside of Extract Bundle. # When Extract Bundle's input change or recompute is called, we record omni.kit.undo.undo() # Call to undo dynamic attribute removal and disconnection on read prim (compute) omni.kit.undo.undo() # Call to undo dynamic attribute removal and disconnection on read prim (compute) omni.kit.undo.undo() # Call to undo dynamic attribute removal and disconnection on read prim into bundle (compute) omni.kit.undo.undo() # Call to undo dynamic attribute removal and disconnection on read prim into bundle (compute) await controller.evaluate(graph) # Check if MPiB is back to the output of ReadPrimIntoBundle bundle = graph.get_default_graph_context().get_output_bundle(read_node, "outputs_primsBundle") output_bundle2 = factory.get_bundle(graph.get_default_graph_context(), bundle) self.assertEqual(output_bundle2.get_child_bundle_count(), 1) # Verify we have the size attribute back and our bundle attribs attribs = write_node.get_attributes() found_size_attrib = False for attrib in attribs: if attrib.get_name() == "inputs:size" and attrib.get_resolved_type().base_type == og.BaseDataType.DOUBLE: found_size_attrib = True self.assertTrue(found_size_attrib) # Check output bundle attributes of ExtractBundle bundle = graph.get_default_graph_context().get_output_bundle(extract_bundle_node, extract_bundle_name) attribute_datas = bundle.get_attribute_data(False) attribute_names = [a.get_name() for a in attribute_datas] self.assertIn("size", attribute_names) self.assertIn("sourcePrimPath", attribute_names) self.assertIn("worldMatrix", attribute_names) self.assertIn("primvars:displayColor", attribute_names) attribs = extract_bundle_node.get_attributes() self.assertEqual(len(attribs) - n_static_attribs_extract_bundle, len(attribute_datas)) # Reset the underlying prim attrib value and check the plumbing is still working cube_prim.GetAttribute("size").Set(1) await controller.evaluate(graph) attr = controller.attribute("outputs:size", extract_bundle_node) self.assertEqual(og.Controller.get(attr), 1) await controller.evaluate(graph) self.assertEqual(og.Controller.get(attr), 2) await controller.evaluate(graph) self.assertEqual(og.Controller.get(attr), 4) # ---------------------------------------------------------------------- async def test_findprims(self): """Test omni.graph.nodes.FindPrims corner cases""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys cube_prim = ogts.create_cube(stage, "Cube1", (1, 1, 1)) cube_prim2 = ogts.create_cube(stage, "Cube2", (1, 1, 1)) cube_prim3 = ogts.create_cube(stage, "Cube3", (1, 1, 1)) cube_prim3.CreateRelationship("test_rel").AddTarget(cube_prim.GetPrimPath()) (graph, (read_node,), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: ("FindPrims", "omni.graph.nodes.FindPrims"), keys.SET_VALUES: ("FindPrims.inputs:namePrefix", "Cube"), }, ) await controller.evaluate(graph) paths_attr = controller.attribute("outputs:primPaths", read_node) paths = og.Controller.get(paths_attr) self.assertListEqual(paths, [p.GetPrimPath() for p in (cube_prim, cube_prim2, cube_prim3)]) # set cube to inactive and verify it doesn't show up in the list cube_prim.SetActive(False) await controller.evaluate(graph) paths = og.Controller.get(paths_attr) self.assertListEqual(paths, [p.GetPrimPath() for p in (cube_prim2, cube_prim3)]) # Test the relationship requirement works controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("FindPrims.inputs:requiredRelationship", "test_rel"), # Not the right target ("FindPrims.inputs:requiredRelationshipTarget", cube_prim2.GetPrimPath().pathString), ] }, ) await controller.evaluate(graph) paths = og.Controller.get(paths_attr) self.assertTrue(len(paths) == 0) controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ # The right target ("FindPrims.inputs:requiredRelationshipTarget", cube_prim.GetPrimPath().pathString), ] }, ) await controller.evaluate(graph) paths = og.Controller.get(paths_attr) self.assertListEqual(paths, [p.GetPrimPath() for p in (cube_prim3,)]) # ---------------------------------------------------------------------- async def test_findprims_path_pattern(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() ogts.create_cube(stage, "Cube1", (1, 1, 1)) ogts.create_cube(stage, "Cube2", (1, 1, 1)) ogts.create_cube(stage, "Cube3", (1, 1, 1)) ogts.create_cube(stage, "Cube44", (1, 1, 1)) ogts.create_cube(stage, "AnotherCube1", (1, 1, 1)) ogts.create_cube(stage, "AnotherCube2", (1, 1, 1)) ogts.create_cube(stage, "AnotherCube3", (1, 1, 1)) controller = og.Controller() keys = og.Controller.Keys (graph, (find_prims,), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: ("FindPrims", "omni.graph.nodes.FindPrims"), keys.SET_VALUES: [ ("FindPrims.inputs:recursive", True), ("FindPrims.inputs:pathPattern", "/Cube?"), ], }, ) await controller.evaluate(graph) outputs_prim_paths = find_prims.get_attribute("outputs:primPaths") value = outputs_prim_paths.get() self.assertEqual(len(value), 3) # Cube1, Cube2, Cube3 but not Cube44 self.assertTrue(all(item in ["/Cube1", "/Cube2", "/Cube3"] for item in value)) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: ("FindPrims.inputs:pathPattern", "/*Cube?"), }, ) await controller.evaluate(graph) value = outputs_prim_paths.get() self.assertEqual(len(value), 6) # AnotherCube1,2,3 and Cube1,2,3, but not Cube44 required_cubes = ["/Cube1", "/Cube2", "/Cube3", "/AnotherCube1", "/AnotherCube2", "/AnotherCube3"] self.assertTrue(all(item in required_cubes for item in value)) # get all /Cube?, but exclude /Cube2 (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: ("FindPrims.inputs:pathPattern", "/Cube? ^/Cube2"), }, ) await controller.evaluate(graph) value = outputs_prim_paths.get() self.assertEqual(len(value), 2) # Cube1,3, but not Cube2 required_cubes = ["/Cube1", "/Cube3"] self.assertTrue(all(item in required_cubes for item in value)) # get all /Cube? but exclude /Cube1 and /Cube2 (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: ("FindPrims.inputs:pathPattern", "/Cube? ^/Cube1 ^/Cube2"), }, ) await controller.evaluate(graph) value = outputs_prim_paths.get() self.assertEqual(len(value), 1) # Cube3, but not Cube1,2 required_cubes = ["/Cube3"] self.assertTrue(all(item in required_cubes for item in value)) # get all Cubes, but exclude all cubes that end with single digit (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: ("FindPrims.inputs:pathPattern", "*Cube* ^*Cube?"), }, ) await controller.evaluate(graph) value = outputs_prim_paths.get() self.assertEqual(len(value), 1) # only Cube44 required_cubes = ["/Cube44"] self.assertTrue(all(item in required_cubes for item in value)) # get all Cubes, and exclude all cubes to produce empty set (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: ("FindPrims.inputs:pathPattern", "*Cube* ^*Cube*"), }, ) await controller.evaluate(graph) value = outputs_prim_paths.get() self.assertEqual(len(value), 0) # ---------------------------------------------------------------------- async def test_getprims_path_pattern(self): """Test the path pattern matching feature of the GetPrims node.""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (_, get_prims_node), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ReadPrimsBundle", "omni.graph.nodes.ReadPrimsBundle"), ("GetPrims", "omni.graph.nodes.GetPrims"), ], keys.CONNECT: [("ReadPrimsBundle.outputs_primsBundle", "GetPrims.inputs:bundle")], }, ) cube_paths = {"/Cube1", "/Cube2", "/Cube3", "/Cube44", "/AnotherCube1", "/AnotherCube2", "/AnotherCube3"} for cube_path in cube_paths: cube_name = cube_path.split("/")[-1] ogts.create_cube(stage, cube_name, (1, 1, 1)) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/ReadPrimsBundle.inputs:prims"), target=cube_path, ) await controller.evaluate(graph) # Dictionary from each path pattern to its expected prim paths path_pattern_dict = { "*": cube_paths, "": set(), "/Cube?": {"/Cube1", "/Cube2", "/Cube3"}, "/*Cube?": {"/Cube1", "/Cube2", "/Cube3", "/AnotherCube1", "/AnotherCube2", "/AnotherCube3"}, "/* ^/Another*": {"/Cube1", "/Cube2", "/Cube3", "/Cube44"}, } bundle_factory = og.IBundleFactory.create() bundle = graph.get_default_graph_context().get_output_bundle(get_prims_node, "outputs_bundle") output_bundle2 = bundle_factory.get_bundle(graph.get_default_graph_context(), bundle) for path_pattern, expected_prim_paths in path_pattern_dict.items(): # Test path patterns with the "inverse" option off (by default) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("GetPrims.inputs:pathPattern", path_pattern), ("GetPrims.inputs:inverse", False), ] }, ) await controller.evaluate(graph) child_bundle_paths = set() child_bundle_count = output_bundle2.get_child_bundle_count() for i in range(child_bundle_count): child_bundle = output_bundle2.get_child_bundle(i) attr = child_bundle.get_attribute_by_name("sourcePrimPath") child_bundle_paths.add(attr.get()) self.assertEqual(child_bundle_paths, expected_prim_paths) # Test path patterns with the "inverse" option on (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("GetPrims.inputs:inverse", True), ] }, ) await controller.evaluate(graph) child_bundle_paths = set() child_bundle_count = output_bundle2.get_child_bundle_count() for i in range(child_bundle_count): child_bundle = output_bundle2.get_child_bundle(i) attr = child_bundle.get_attribute_by_name("sourcePrimPath") child_bundle_paths.add(attr.get()) self.assertEqual(child_bundle_paths, cube_paths.difference(expected_prim_paths)) # ---------------------------------------------------------------------- async def test_readtime(self): """Test omni.graph.nodes.ReadTime""" app = omni.kit.app.get_app() timeline = omni.timeline.get_timeline_interface() time_node_name = "Time" # setup initial timeline state and avoid possibility that running this test twice will give different results timeline.set_fast_mode(True) fps = 24.0 timeline.set_time_codes_per_second(fps) timeline.set_start_time(-1.0) timeline.set_end_time(0.0) timeline.set_current_time(0.0) await app.next_update_async() keys = og.Controller.Keys (_, (time_node,), _, _) = og.Controller.edit( self.TEST_GRAPH_PATH, {keys.CREATE_NODES: [(time_node_name, "omni.graph.nodes.ReadTime")]} ) await app.next_update_async() await og.Controller.evaluate() self.assertGreater(og.Controller(og.Controller.attribute("outputs:deltaSeconds", time_node)).get(), 0.0) self.assertGreater(og.Controller(og.Controller.attribute("outputs:timeSinceStart", time_node)).get(), 0.0) self.assertFalse(og.Controller(og.Controller.attribute("outputs:isPlaying", time_node)).get()) self.assertEqual(og.Controller(og.Controller.attribute("outputs:time", time_node)).get(), 0.0) self.assertEqual(og.Controller(og.Controller.attribute("outputs:frame", time_node)).get(), 0.0) timeline.set_start_time(1.0) timeline.set_end_time(10.0) timeline.play() await app.next_update_async() await app.next_update_async() await og.Controller.evaluate() # graph has been reloaded as a result of the fps change: we need re refetch the node time_node = og.get_node_by_path(self.TEST_GRAPH_PATH + "/" + time_node_name) self.assertTrue(og.Controller(og.Controller.attribute("outputs:isPlaying", time_node)).get()) animation_time = og.Controller(og.Controller.attribute("outputs:time", time_node)).get() self.assertGreater(animation_time, 0.0) self.assertAlmostEqual( og.Controller(og.Controller.attribute("outputs:frame", time_node)).get(), fps * animation_time, places=2 ) timeline.stop() await app.next_update_async() # ---------------------------------------------------------------------- async def test_read_and_write_prim_material(self): await self._read_and_write_prim_material(False) async def test_read_and_write_prim_material_with_target(self): await self._read_and_write_prim_material(True) async def _read_and_write_prim_material(self, use_target_inputs): """ Test ReadPrimMaterial and WritePrimMaterial node. If use_target_inputs is true, use the prim target input rather than the prim path input """ usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys mat_path = "/TestMaterial" prim_path_a = "/TestPrimA" prim_path_b = "/TestPrimB" (graph, (read_node, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimMaterial"), ("Write", "omni.graph.nodes.WritePrimMaterial"), ], keys.CREATE_PRIMS: [(mat_path, "Material"), (prim_path_a, "Cube"), (prim_path_b, "Cube")], keys.SET_VALUES: [ ("Read.inputs:primPath", prim_path_a), ("Write.inputs:primPath", prim_path_b), ("Write.inputs:materialPath", mat_path), ], }, ) await controller.evaluate(graph) if use_target_inputs: omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Read.inputs:prim"), target=prim_path_a, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:prim"), target=prim_path_b, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Write.inputs:material"), target=mat_path, ) await controller.evaluate(graph) prim_a = stage.GetPrimAtPath(prim_path_a) rel_a = prim_a.CreateRelationship("material:binding") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel_a, target=Sdf.Path(mat_path)) await controller.evaluate(graph) read_output = og.Controller.get(controller.attribute("outputs:material", read_node)) self.assertEqual(read_output, mat_path) prim_b = stage.GetPrimAtPath(prim_path_b) mat_b, _ = UsdShade.MaterialBindingAPI(prim_b).ComputeBoundMaterial() write_output = mat_b.GetPath().pathString self.assertEqual(write_output, mat_path) # ---------------------------------------------------------------------- async def test_read_prim_material_with_target_connections(self): """Test ReadPrimMaterial and WritePrimMaterial node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys mat_path = "/TestMaterial" prim_path_a = "/TestPrimA" (graph, (_, _, prim_node, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimMaterial"), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("GetPrimPath", "omni.graph.nodes.GetPrimPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ], keys.CREATE_PRIMS: [(mat_path, "Material"), (prim_path_a, "Cube")], keys.SET_VALUES: [("ConstToken.inputs:value", prim_path_a)], keys.CONNECT: [ ("Read.outputs:materialPrim", "GetPrimPath.inputs:prim"), ("GetPrimAtPath.outputs:prims", "Read.inputs:prim"), ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ], }, ) prim_a = stage.GetPrimAtPath(prim_path_a) rel_a = prim_a.CreateRelationship("material:binding") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel_a, target=Sdf.Path(mat_path)) await controller.evaluate(graph) mat_output = og.Controller.get(("outputs:primPath", prim_node)) self.assertEqual(mat_output, mat_path) # ---------------------------------------------------------------------- async def test_read_and_write_settings(self): """Test ReadSetting and WriteSetting node""" controller = og.Controller() keys = og.Controller.Keys settings = carb.settings.get_settings() setting_path = self.PERSISTENT_SETTINGS_PREFIX + "/omnigraph/deprecationsAreErrors" default_value = settings.get(setting_path) sample_value = not default_value (graph, (read_node, _, _), _, _) = og.Controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadSetting"), ("Write", "omni.graph.nodes.WriteSetting"), ("ConstBool", "omni.graph.nodes.ConstantBool"), ], keys.CONNECT: [("ConstBool.inputs:value", "Write.inputs:value")], keys.SET_VALUES: [ ("Read.inputs:settingPath", setting_path), ("Write.inputs:settingPath", setting_path), ("ConstBool.inputs:value", sample_value), ], }, ) await controller.evaluate(graph) await omni.kit.app.get_app().next_update_async() output_value = og.Controller.get(controller.attribute("outputs:value", read_node)) self.assertEqual(output_value, sample_value) settings.set(setting_path, default_value) # ---------------------------------------------------------------------- async def test_get_look_at_rotation(self): """Test GetLookAtRotation node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() # Get the scene up-vector. stage_up_axis = stage.GetMetadata("upAxis") if stage_up_axis.lower() == "x": up_vec = Gf.Vec3d.XAxis() fwd_vec = -Gf.Vec3d.ZAxis() right_vec = -Gf.Vec3d.YAxis() is_y_up = False elif stage_up_axis.lower() == "z": up_vec = Gf.Vec3d.ZAxis() fwd_vec = -Gf.Vec3d.XAxis() right_vec = Gf.Vec3d.YAxis() is_y_up = False else: up_vec = Gf.Vec3d.YAxis() fwd_vec = -Gf.Vec3d.ZAxis() right_vec = Gf.Vec3d.XAxis() is_y_up = True # Create a prim driven by a GetLookAtRotation node to always face its fwd_vec toward # the origin. distance_from_origin = 750.0 # It's important that the up component be non-zero as that creates a difference between the local and # and world up-vectors, which is where problems can occur. up_offset = 100.0 position = up_vec * up_offset - fwd_vec * distance_from_origin xform_path = "/World/xform" controller = og.Controller() keys = og.Controller.Keys (graph, (lookat_node, *_), (xform_prim, *_), _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("lookat", "omni.graph.nodes.GetLookAtRotation"), ("write", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: [(xform_path, "Xform")], keys.CONNECT: [("lookat.outputs:rotateXYZ", "write.inputs:value")], keys.SET_VALUES: [ ("lookat.inputs:forward", fwd_vec), ("lookat.inputs:start", position), ("write.inputs:name", "xformOp:rotateXYZ"), ("write.inputs:primPath", xform_path), ("write.inputs:usePath", True), ], }, ) await controller.evaluate(graph) start_attr = lookat_node.get_attribute("inputs:start") fwd_attr = lookat_node.get_attribute("inputs:forward") up_attr = lookat_node.get_attribute("inputs:up") for _ in range(2): # Move the transform in a circle around the origin, keeping the up component constant. for angle in range(0, 360, 45): rad = math.radians(angle) position = right_vec * math.sin(rad) * distance_from_origin position -= fwd_vec * math.cos(rad) * distance_from_origin position += up_vec * up_offset start_attr.set(position) await controller.evaluate(graph) # Get the normalized vector from the current position to the origin. pos_vec = -Gf.Vec3d(position).GetNormalized() # The forward vector in world space should match the position vector. cache = UsdGeom.XformCache() xform = cache.GetLocalToWorldTransform(xform_prim) ws_fwd = xform.TransformDir(fwd_vec).GetNormalized() diff = Gf.Rotation(pos_vec, ws_fwd).GetAngle() self.assertAlmostEqual( diff, 0.0, msg=f"at {angle} degree position, forward vector does not point at origin." ) # The local and world up-vectors should remain within 8 degrees of each other. ws_up = xform.TransformDir(up_vec).GetNormalized() diff = Gf.Rotation(up_vec, ws_up).GetAngle() self.assertLess(abs(diff), 8.0, f"at {angle} degree position, up-vector has drifted too far") # The first pass used scene-up. # For the second pass we set an explicit up-vector, different from scene-up. if is_y_up: up_vec = Gf.Vec3d.ZAxis() fwd_vec = -Gf.Vec3d.XAxis() right_vec = Gf.Vec3d.YAxis() else: up_vec = Gf.Vec3d.YAxis() fwd_vec = -Gf.Vec3d.ZAxis() right_vec = Gf.Vec3d.XAxis() fwd_attr.set(fwd_vec) up_attr.set(up_vec) async def test_selection_nodes(self): """Test ReadStageSelection, IsPrimSelected nodes""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (read_node, check_node, check_target), _, _) = og.Controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadStageSelection"), ("IsSelected", "omni.graph.nodes.IsPrimSelected"), ("IsSelectedWithTarget", "omni.graph.nodes.IsPrimSelected"), ], keys.SET_VALUES: [("IsSelected.inputs:primPath", f"{self.TEST_GRAPH_PATH}/Read")], }, ) await controller.evaluate(graph) rel = stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/IsSelectedWithTarget.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=f"{self.TEST_GRAPH_PATH}/Read") selection = usd_context.get_selection() self.assertFalse(og.Controller.get(controller.attribute("outputs:isSelected", check_node))) self.assertFalse(og.Controller.get(controller.attribute("outputs:isSelected", check_target))) selection.set_selected_prim_paths( [read_node.get_prim_path()], False, ) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() selected_paths = og.Controller.get(controller.attribute("outputs:selectedPrims", read_node)) self.assertListEqual(selected_paths, selection.get_selected_prim_paths()) self.assertTrue(og.Controller.get(controller.attribute("outputs:isSelected", check_node))) self.assertTrue(og.Controller.get(controller.attribute("outputs:isSelected", check_target))) selection.clear_selected_prim_paths() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() selected_paths = og.Controller.get(controller.attribute("outputs:selectedPrims", read_node)) self.assertListEqual(selected_paths, selection.get_selected_prim_paths()) self.assertFalse(og.Controller.get(controller.attribute("outputs:isSelected", check_node))) self.assertFalse(og.Controller.get(controller.attribute("outputs:isSelected", check_target))) # ---------------------------------------------------------------------- async def test_parallel_read_write_prim_attribute(self): """Attempt to read and write prim attributes in parallel""" # ReadIndex -> Multiply # / \ # 10 ------x--------> MakeTranslate -> WriteTranslate # / # ReadTranslate -> BreakTranslate -yz- keys = og.Controller.Keys index_name = "testIndex" attr_name = "xformOp:translate" scale = 10 cubes = [] for i in range(64): graph_name = f"/graph{i}" obj_name = f"/obj{i}" controller = og.Controller() (graph, _, prims, _) = controller.edit( graph_name, { keys.CREATE_NODES: [ ("ReadIndex", "omni.graph.nodes.ReadPrimAttribute"), ("ReadTranslate", "omni.graph.nodes.ReadPrimAttribute"), ("BreakTranslate", "omni.graph.nodes.BreakVector3"), ("Multiply", "omni.graph.nodes.Multiply"), ("MakeTranslate", "omni.graph.nodes.MakeVector3"), ("WriteTranslate", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: [ (obj_name, "Cube"), ], }, ) # we want to test parallel execution: prevent any merging graph.set_auto_instancing_allowed(False) attr = prims[0].CreateAttribute(index_name, Sdf.ValueTypeNames.Double) attr.Set(i) cubes.append(prims[0]) controller.edit( graph_name, { keys.SET_VALUES: [ ("ReadIndex.inputs:name", index_name), ("ReadIndex.inputs:usePath", True), ("ReadIndex.inputs:primPath", obj_name), ("ReadTranslate.inputs:name", attr_name), ("ReadTranslate.inputs:usePath", True), ("ReadTranslate.inputs:primPath", obj_name), ("WriteTranslate.inputs:name", attr_name), ("WriteTranslate.inputs:usePath", True), ("WriteTranslate.inputs:primPath", obj_name), ("Multiply.inputs:b", scale, "double"), ], }, ) controller.edit( graph_name, { keys.CONNECT: [ ("ReadIndex.outputs:value", "Multiply.inputs:a"), ("ReadTranslate.outputs:value", "BreakTranslate.inputs:tuple"), ("Multiply.outputs:product", "MakeTranslate.inputs:x"), ("BreakTranslate.outputs:y", "MakeTranslate.inputs:y"), ("BreakTranslate.outputs:z", "MakeTranslate.inputs:z"), ("MakeTranslate.outputs:tuple", "WriteTranslate.inputs:value"), ], }, ) # cubes[0].GetStage().Export("c:/tmp/test.usda") for cube in cubes: translate = cube.GetAttribute(attr_name).Get() self.assertEqual(translate[0], 0) await og.Controller.evaluate() for cube in cubes: index = cube.GetAttribute(index_name).Get() translate = cube.GetAttribute(attr_name).Get() self.assertEqual(translate[0], index * scale) # ---------------------------------------------------------------------- async def test_read_prim_node_default_time_code_upgrades(self): """ Tests that read prim node variants property upgrade their time code property to use NAN as a default """ app = omni.kit.app.get_app() nodes = [ "ReadPrim", "ReadPrims", "ReadPrimAttribute", "ReadPrimAttributes", "ReadPrimBundle", "ReadPrimsBundle", ] # testing under different frame rates to validate the upgrade is correctly detected frame_rates = [12, 24, 30, 60] for frame_rate in frame_rates: with self.subTest(frame_rate=frame_rate): timeline = omni.timeline.get_timeline_interface() timeline.set_time_codes_per_second(frame_rate) await app.next_update_async() file_path = os.path.join(os.path.dirname(__file__), "data", "TestReadPrimNodeVariants.usda") stage = omni.usd.get_context().get_stage() # create a prim and add a file reference prim = stage.DefinePrim("/Ref") # when we make the references, there will be deprecation warnings prim.GetReferences().AddReference(file_path) self.assertEqual(stage.GetTimeCodesPerSecond(), frame_rate) await omni.kit.app.get_app().next_update_async() for node in nodes: attr = og.Controller.attribute(f"/Ref/ActionGraph/{node}.inputs:usdTimecode") self.assertTrue(isnan(attr.get())) await omni.usd.get_context().new_stage_async() # ---------------------------------------------------------------------- async def test_is_prim_active(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() contents = Usd.Stage.CreateInMemory("payload.usd") contents.DefinePrim("/payload/A", "Xform") payload = stage.DefinePrim("/payload", "Xform") payload.GetPayloads().AddPayload(Sdf.Payload(contents.GetRootLayer().identifier, "/payload")) keys = og.Controller.Keys controller = og.Controller() (graph, (node,), _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [("IsActive", "omni.graph.nodes.IsPrimActive")], }, ) await controller.evaluate(graph) rel = stage.GetRelationshipAtPath("/TestGraph/IsActive.inputs:primTarget") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/payload/A") await controller.evaluate(graph) out = node.get_attribute("outputs:active") self.assertEqual(out.get(), True) # Note: currently the node will raise an error if the prim isn't in the stage as well as set active to false payload.Unload() with ogts.ExpectedError(): await controller.evaluate(graph) out = node.get_attribute("outputs:active") self.assertEqual(out.get(), False) # ------------------------------------------------------------------------------- async def test_get_graph_target_prim(self): """Test that the GetGraphTargetPrim node outputs the expected graph target prim""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (_graph_target_node, path_node), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GetGraphTargetPrim", "omni.graph.nodes.GetGraphTargetPrim"), ("GetPrimPath", "omni.graph.nodes.GetPrimPath"), ], keys.CONNECT: [("GetGraphTargetPrim.outputs:prim", "GetPrimPath.inputs:prim")], }, ) # no instances, it should return the graph prim await og.Controller.evaluate(graph) self.assertEqual(self.TEST_GRAPH_PATH, path_node.get_attribute("outputs:primPath").get()) num_instances = 5 # create instances for i in range(0, num_instances): prim_name = f"/World/Prim_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self.TEST_GRAPH_PATH) # rerun the graph, this time evaluating instances await og.Controller.evaluate(graph) for i in range(0, num_instances): self.assertEqual(f"/World/Prim_{i}", path_node.get_attribute("outputs:primPath").get(instance=i)) async def test_construct_array_invalid_array_size(self): """Test that setting an invalid value on OgnConstructArray.arraySize does not crash""" # Ideally this would be done with the following test in the .ogn file, but the node parser # applies the minimum / maximum attribute limits when parsing the tests, which means that # we cannot define tests for invalid inputs in the .ogn file # { # "inputs:arraySize": -1, "inputs:arrayType": "Int64", # "outputs:array": {"type": "int64[]", "value": []} # } controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [("ConstructArray", "omni.graph.nodes.ConstructArray")], keys.SET_VALUES: [ ("ConstructArray.inputs:arraySize", -1), ("ConstructArray.inputs:arrayType", "int[]"), ], }, ) # Evaluate the graph once to ensure the node has a Database created await controller.evaluate(graph) result = nodes[0].get_attribute("outputs:array").get() expected: [int] = [] self.assertListEqual(expected, list(result)) async def test_get_prim_local_to_world_empty(self): """Regression test for GetPrimLocalToWorldTransform""" controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [("TestWorld", "omni.graph.nodes.GetPrimLocalToWorldTransform")], keys.SET_VALUES: [ ("TestWorld.inputs:usePath", False), ], }, ) with ogts.ExpectedError(): await controller.evaluate(graph)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_find_prims_node.py
import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test class TestFindPrimsNode(ogts.OmniGraphTestCase): """Unit tests for Find Prims node in this extension""" # ---------------------------------------------------------------------- async def test_find_prims_node_type_attribute_v1(self): """First version of Find Prims node did not use pattern matching. Attribute 'type' needs to be automatically updated to support pattern matching. """ # load the test scene which contains a ReadPrim V1 node (result, error) = await ogts.load_test_file("TestFindPrimsNode_v1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) test_graph_path = "/World/TestGraph" test_graph = og.get_graph_by_path(test_graph_path) find_prims_empty = test_graph.get_node(test_graph_path + "/find_prims_empty") self.assertTrue(find_prims_empty.is_valid()) find_prims_types = test_graph.get_node(test_graph_path + "/find_prims_types") self.assertTrue(find_prims_types.is_valid()) self.assertEqual(find_prims_empty.get_attribute("inputs:type").get(), "*") self.assertEqual(find_prims_types.get_attribute("inputs:type").get(), "Mesh") # ---------------------------------------------------------------------- async def test_add_target_input(self): """ Test target input type and that path input is still used if target prim has not been selected """ keys = og.Controller.Keys controller = og.Controller() (graph, (node,), _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [("FindPrims", "omni.graph.nodes.FindPrims")], keys.CREATE_PRIMS: [ ("/World/A", "Xform"), ("/World/B", "Xform"), ("/World/A/Cone", "Cone"), ("/World/B/Cone", "Cone"), ("/World/B/Cube", "Cube"), ("/World/B/Sphere", "Sphere"), ], keys.SET_VALUES: [("FindPrims.inputs:rootPrimPath", "/World/A")], }, ) # If no target input is specified, fallback to path input await controller.evaluate(graph) out = node.get_attribute("outputs:primPaths") self.assertEqual(out.get(), ["/World/A/Cone"]) usd_context = omni.usd.get_context() stage = usd_context.get_stage() rel = stage.GetRelationshipAtPath("/TestGraph/FindPrims.inputs:rootPrim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/B") await controller.evaluate(graph) out = node.get_attribute("outputs:primPaths") self.assertEqual(out.get(), ["/World/B/Cone", "/World/B/Cube", "/World/B/Sphere"]) # Test with a required relationship cone = stage.GetPrimAtPath("/World/B/Cone") cube = stage.GetPrimAtPath("/World/B/Cube") omni.kit.commands.execute( "AddRelationshipTarget", relationship=cone.CreateRelationship("test_rel"), target="/World/A" ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=cube.CreateRelationship("test_rel"), target="/World/B" ) rel_attr = node.get_attribute("inputs:requiredRelationship") rel_attr.set("test_rel") rel = stage.GetRelationshipAtPath("/TestGraph/FindPrims.inputs:requiredTarget") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/B") await controller.evaluate(graph) self.assertEqual(out.get(), ["/World/B/Cube"])
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_api.py
"""Testing the stability of the API in this module""" import omni.graph.core.tests as ogts import omni.graph.nodes as ognd from omni.graph.tools.tests.internal_utils import _check_module_api_consistency, _check_public_api_contents # ====================================================================== class _TestOmniGraphNodesApi(ogts.OmniGraphTestCase): _UNPUBLISHED = ["bindings", "ogn", "tests"] async def test_api(self): _check_module_api_consistency(ognd, self._UNPUBLISHED) # noqa: PLW0212 _check_module_api_consistency( # noqa: PLW0212 ognd.tests, ["create_prim_with_everything", "bundle_test_utils"], is_test_module=True ) async def test_api_features(self): """Test that the known public API features continue to exist""" _check_public_api_contents(ognd, [], self._UNPUBLISHED, only_expected_allowed=True) # noqa: PLW0212 _check_public_api_contents( # noqa: PLW0212 ognd.tests, [ "BundleInspectorResults_t", "BundleResultKeys", "bundle_inspector_results", "enable_debugging", "filter_bundle_inspector_results", "get_bundle_with_all_results", "prim_with_everything_definition", "verify_bundles_are_equal", ], [], only_expected_allowed=False, )
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_auto_conv_on_load.py
"""Test the node that inspects attribute bundles""" import omni.graph.core as og ogts = og.tests # ====================================================================== class TestConversion(ogts.test_case_class()): """Run simple unit tests that exercises auto conversion of attribute""" # ---------------------------------------------------------------------- async def test_auto_conv_on_load(self): # This file contains a graph which has a chain of nodes connected through extented attributes # The begining of this chain forces type resolution to double, but a float is required at the end of the chain # The test makes sure that the type is correctly resolved/restored on this final attribute (result, error) = await ogts.load_test_file("TestConversionOnLoad.usda", use_caller_subdirectory=True) self.assertTrue(result, f"{error}") await og.Controller.evaluate() easing_node = og.Controller.node("/World/PushGraph/easing_function") attr = og.Controller.attribute("inputs:alpha", easing_node) attr_type = attr.get_resolved_type() self.assertTrue(attr_type.base_type == og.BaseDataType.FLOAT)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_prim_relationship_nodes.py
import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.test from pxr import OmniGraphSchemaTools # ====================================================================== class TestPrimRelationshipNodes(ogts.OmniGraphTestCase): """Tests read and write prim relationship nodes""" TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- async def test_read_prim_relationships(self): """Test the read prim relationship nodes that use the new target input/output types""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys # For the instanced test, setup a graph like this so that each graph instance looks at the material on a # different cube # # read_var -> to_token -> build_string -> find_prims -> read_prim_relationship (graph, (read, read_test_rel, _, _, _, _), (cone,), _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimRelationship"), ("ReadTestRel", "omni.graph.nodes.ReadPrimRelationship"), ("ReadVar", "omni.graph.core.ReadVariable"), ("ToToken", "omni.graph.nodes.ToToken"), ("BuildString", "omni.graph.nodes.BuildString"), ("FindPrims", "omni.graph.nodes.FindPrims"), ], keys.CREATE_PRIMS: [ ("/World/Cone", "Cone"), ], keys.SET_VALUES: [ ("Read.inputs:name", "material:binding"), ("ReadTestRel.inputs:name", "test_rel"), ("BuildString.inputs:a", "Cube_", og.Type(og.BaseDataType.TOKEN)), ("ReadVar.inputs:variableName", "suffix"), ("FindPrims.inputs:recursive", True), ], keys.CONNECT: [ ("ReadVar.outputs:value", "ToToken.inputs:value"), ("ToToken.outputs:converted", "BuildString.inputs:b"), ("BuildString.outputs:value", "FindPrims.inputs:namePrefix"), ("FindPrims.outputs:prims", "Read.inputs:prim"), ], }, ) await og.Controller.evaluate(graph) var = graph.create_variable("suffix", og.Type(og.BaseDataType.INT)) # Assign materials for instanced example num_instances = 3 for i in range(0, num_instances): prim = stage.DefinePrim(f"/World/Cube_{i}", "Cube") mat = stage.DefinePrim(f"/World/Material_{i}", "Material") omni.kit.commands.execute( "AddRelationshipTarget", relationship=prim.CreateRelationship("material:binding"), target=mat.GetPath() ) # Setup example with more than one relationship target rel = cone.CreateRelationship("test_rel") omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/ReadTestRel.inputs:prim"), target=cone.GetPath(), ) omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Material_0") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube_0") await controller.evaluate(graph) # verify that this works without instancing self.assertEqual(read.get_attribute("outputs:value").get(), ["/World/Material_0"]) self.assertEqual(read_test_rel.get_attribute("outputs:value").get(), ["/World/Material_0", "/World/Cube_0"]) # create instances for i in range(0, num_instances): prim_name = f"/World/Instance_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self.TEST_GRAPH_PATH) await og.Controller.evaluate(graph) for i in range(0, num_instances): var.set(graph.get_default_graph_context(), value=i, instance_path=f"/World/Instance_{i}") await og.Controller.evaluate(graph) # rerun the graph, this time evaluating instances for i in range(0, num_instances): self.assertEqual(read.get_attribute("outputs:value").get(instance=i), [f"/World/Material_{i}"]) # ---------------------------------------------------------------------- async def test_basic_write_prim_relationships(self): """Basic test of write prim relationship node""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys # To deterministically schedule write-read operation nodes are split # into separate graphs: write and read. # That gives control over scheduling writing before reading. write_graph_path = "/World/TestGraphWrite" read_graph_path = "/World/TestGraphRead" (write_graph, (write,), (cone, cube), _,) = controller.edit( write_graph_path, { keys.CREATE_NODES: [ ("Write", "omni.graph.nodes.WritePrimRelationship"), ], keys.CREATE_PRIMS: [ ("/World/Cone", "Cone"), ("/World/Cube", "Cube"), ], keys.SET_VALUES: [ ("Write.inputs:name", "test_rel"), ("Write.inputs:usdWriteBack", False), ], }, ) (read_graph, (read,), _, _,) = controller.edit( read_graph_path, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimRelationship"), ], keys.SET_VALUES: [ ("Read.inputs:name", "test_rel"), ], }, ) # Setup Write rel = stage.GetPropertyAtPath(f"{write_graph_path}/Write.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=cone.GetPath()) rel = stage.GetPropertyAtPath(f"{write_graph_path}/Write.inputs:value") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=cube.GetPath()) # Setup Read rel = stage.GetPropertyAtPath(f"{read_graph_path}/Read.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target=cone.GetPath()) # Evaluate write, then read await og.Controller.evaluate(write_graph) await og.Controller.evaluate(read_graph) out = read.get_attribute("outputs:value") self.assertEqual(out.get(), ["/World/Cube"]) # usd write back is false, so this should fail self.assertEqual(cone.HasRelationship("test_rel"), False) # verify usd write back write.get_attribute("inputs:usdWriteBack").set(True) await og.Controller.evaluate(write_graph) await og.Controller.evaluate(read_graph) self.assertEqual(cone.HasRelationship("test_rel"), True) # test that relationship is cleared if value is empty rel = stage.GetPropertyAtPath(f"{write_graph_path}/Write.inputs:value") omni.kit.commands.execute("RemoveRelationshipTarget", relationship=rel, target=cube.GetPath()) await og.Controller.evaluate(write_graph) await og.Controller.evaluate(read_graph) self.assertEqual(out.get(), []) # ---------------------------------------------------------------------- async def test_write_prim_relationships_with_instancing(self): """Test the write prim relationship nodes wth instancing""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (write, read, _, _, _, _, _, _), _, _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Write", "omni.graph.nodes.WritePrimRelationship"), ("Read", "omni.graph.nodes.ReadPrimRelationship"), ("ReadVar", "omni.graph.core.ReadVariable"), ("ToToken", "omni.graph.nodes.ToToken"), ("BuildStringCone", "omni.graph.nodes.BuildString"), ("BuildStringCube", "omni.graph.nodes.BuildString"), ("FindPrimsCone", "omni.graph.nodes.FindPrims"), ("FindPrimsCube", "omni.graph.nodes.FindPrims"), ], keys.SET_VALUES: [ ("Write.inputs:name", "test_rel"), ("Write.inputs:usdWriteBack", False), ("Read.inputs:name", "test_rel"), ("BuildStringCone.inputs:a", "Cone_", og.Type(og.BaseDataType.TOKEN)), ("BuildStringCube.inputs:a", "Cube_", og.Type(og.BaseDataType.TOKEN)), ("ReadVar.inputs:variableName", "suffix"), ("FindPrimsCone.inputs:recursive", True), ("FindPrimsCube.inputs:recursive", True), ], keys.CONNECT: [ ("ReadVar.outputs:value", "ToToken.inputs:value"), ("ToToken.outputs:converted", "BuildStringCone.inputs:b"), ("ToToken.outputs:converted", "BuildStringCube.inputs:b"), ("BuildStringCone.outputs:value", "FindPrimsCone.inputs:namePrefix"), ("BuildStringCube.outputs:value", "FindPrimsCube.inputs:namePrefix"), ("FindPrimsCone.outputs:prims", "Write.inputs:prim"), ("FindPrimsCube.outputs:prims", "Write.inputs:value"), ("FindPrimsCone.outputs:prims", "Read.inputs:prim"), ], }, ) await og.Controller.evaluate(graph) var = graph.create_variable("suffix", og.Type(og.BaseDataType.INT)) # create targets for instanced example num_instances = 3 for i in range(0, num_instances): stage.DefinePrim(f"/World/Cone_{i}", "Cone") stage.DefinePrim(f"/World/Cube_{i}", "Cube") await og.Controller.evaluate(graph) # Setting the name input to something else and then back again is needed to trigger the prefetch of the prim # correctly. See OM-93232 for more details. Once we get to the bottom of what's going on there, this should be # removed. I'm not entirely sure why this workaround is also not needed in test_basic_write_prim_relationships. # And the issue also doesn't happen when this code is run in Kit GUI via the script editor. read.get_attribute("inputs:name").set("foo") await og.Controller.evaluate(graph) read.get_attribute("inputs:name").set("test_rel") await og.Controller.evaluate(graph) # test without instancing... self.assertEqual(read.get_attribute("outputs:value").get(), ["/World/Cube_0"]) # usd write back is false, so this should fail cone = stage.GetPrimAtPath("/World/Cone_0") self.assertEqual(cone.HasRelationship("test_rel"), False) # verify usd write back write.get_attribute("inputs:usdWriteBack").set(True) await og.Controller.evaluate(graph) self.assertEqual(cone.HasRelationship("test_rel"), True) # create instances for i in range(0, num_instances): prim_name = f"/World/Instance_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self.TEST_GRAPH_PATH) await og.Controller.evaluate(graph) for i in range(0, num_instances): var.set(graph.get_default_graph_context(), value=i, instance_path=f"/World/Instance_{i}") await og.Controller.evaluate(graph) # Workaround. See OM-93232 read.get_attribute("inputs:name").set("foo") await og.Controller.evaluate(graph) read.get_attribute("inputs:name").set("test_rel") await og.Controller.evaluate(graph) # rerun the graph, this time evaluating instances for i in range(0, num_instances): self.assertEqual(read.get_attribute("outputs:value").get(instance=i), [f"/World/Cube_{i}"])
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/__init__.py
""" Explicitly import the test utilities that will be part of the public interface This way you can do things like: import omni.graph.nodes.tests as ognt new_prim = ognt.bundle_inspector_output() """ from .bundle_test_utils import ( BundleInspectorResults_t, BundleResultKeys, bundle_inspector_results, enable_debugging, filter_bundle_inspector_results, get_bundle_with_all_results, prim_with_everything_definition, verify_bundles_are_equal, ) __all__ = [ "BundleInspectorResults_t", "BundleResultKeys", "bundle_inspector_results", "enable_debugging", "filter_bundle_inspector_results", "get_bundle_with_all_results", "prim_with_everything_definition", "verify_bundles_are_equal", ] scan_for_test_modules = True """The presence of this object causes the test runner to automatically scan the directory for unit test cases"""
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_nodes_with_prim_connection.py
import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.stage_templates import omni.kit.test import omni.timeline import omni.usd from pxr import Gf, Sdf, UsdGeom # ====================================================================== class TestNodesWithPrimConnection(ogts.OmniGraphTestCase): """Tests node using a target connection to a prim""" TEST_GRAPH_PATH = "/World/TestGraph" # ----------------------------------------------------------------------------------- async def setUp(self): await super().setUp() omni.timeline.get_timeline_interface().set_start_time(1.0) omni.timeline.get_timeline_interface().set_end_time(100000) omni.timeline.get_timeline_interface().set_play_every_frame(True) # ----------------------------------------------------------------------------------- async def tearDown(self): omni.timeline.get_timeline_interface().stop() omni.timeline.get_timeline_interface().set_play_every_frame(False) await super().tearDown() # ----------------------------------------------------------------------------------- async def test_read_prim_attribute_with_connected_prims(self): """ Tests that ReadPrimAttributes nodes works correctly with their prim attribute is connected using a target attribute port """ node = "omni.graph.nodes.ReadPrimAttribute" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (read_prim, _, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ReadNode", node), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ], keys.CONNECT: [("ConstToken.inputs:value", "GetPrimAtPath.inputs:path")], keys.CREATE_PRIMS: [ ("/World/Cube1", {"dummy_prop": ("float", 1)}, "Cube"), ("/World/Cube2", {"dummy_prop": ("float", 2)}, "Cube"), ], keys.SET_VALUES: [("ReadNode.inputs:name", "dummy_prop"), ("ConstToken.inputs:value", "/World/Cube2")], }, ) rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/ReadNode.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube1") # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) self.assertEquals(1, read_prim.get_attribute("outputs:value").get()) # connect the PrimPathNode, which is set to the second cube controller.edit(self.TEST_GRAPH_PATH, {keys.CONNECT: [("GetPrimAtPath.outputs:prims", "ReadNode.inputs:prim")]}) # validate the prim attribute is read from the correct attribute await og.Controller.evaluate(graph) self.assertEquals(2, read_prim.get_attribute("outputs:value").get()) # ----------------------------------------------------------------------------------- async def test_read_prim_attributes_with_connected_prims(self): """ Tests that ReadPrimAttributes nodes works correctly with their prim attribute is connected using a target attribute port """ node = "omni.graph.nodes.ReadPrimAttributes" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (_, _, _, to_string), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ReadNode", node), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ("ToString", "omni.graph.nodes.ToString"), # the output needs to be connected ], keys.CREATE_PRIMS: [ ("/World/Cube1", "Cube"), ("/World/Cube2", "Cube"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ], keys.SET_VALUES: [ ("ReadNode.inputs:attrNamesToImport", "**"), ("ConstToken.inputs:value", "/World/Cube2"), ], }, ) rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/ReadNode.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube1") # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) # ReadPrimAttribute only copies values on connected values controller.edit( self.TEST_GRAPH_PATH, {keys.CONNECT: [("ReadNode.outputs:sourcePrimPath", "ToString.inputs:value")]} ) # run the graph again await og.Controller.evaluate(graph) self.assertEquals("/World/Cube1", og.Controller.get(("outputs:converted", to_string))) # connect the PrimPathNode, which is set to the second cube controller.edit(self.TEST_GRAPH_PATH, {keys.CONNECT: [("GetPrimAtPath.outputs:prims", "ReadNode.inputs:prim")]}) await og.Controller.evaluate(graph) # reconnect the output (a change in prims changes the outputs) controller.edit( self.TEST_GRAPH_PATH, {keys.CONNECT: [("ReadNode.outputs:sourcePrimPath", "ToString.inputs:value")]} ) await og.Controller.evaluate(graph) # validate the prim attribute is read from the correct attribute self.assertEquals("/World/Cube2", og.Controller.get(("outputs:converted", to_string))) # ----------------------------------------------------------------------------------- async def _test_read_prim_node_with_connected_prims(self, node): usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (_read_prim, _, _, extract_node, _extract_bundle, _extract_prim), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ReadNode", node), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ("ExtractAttr", "omni.graph.nodes.ExtractAttribute"), ("ExtractBundle", "omni.graph.nodes.ExtractBundle"), ("ExtractPrim", "omni.graph.nodes.ExtractPrim"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ("ReadNode.outputs_primsBundle", "ExtractPrim.inputs:prims"), ("ExtractPrim.outputs_primBundle", "ExtractBundle.inputs:bundle"), ("ExtractBundle.outputs_passThrough", "ExtractAttr.inputs:data"), ], keys.CREATE_PRIMS: [ ("/World/Cube1", {"dummy_prop": ("float", 1)}, "Cube"), ("/World/Cube2", {"dummy_prop": ("float", 2)}, "Cube"), ], keys.SET_VALUES: [ ("ReadNode.inputs:attrNamesToImport", "dummy_prop"), ("ExtractAttr.inputs:attrName", "dummy_prop"), ("ExtractPrim.inputs:primPath", "/World/Cube1"), ("ConstToken.inputs:value", "/World/Cube2"), ], }, ) rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/ReadNode.inputs:prims") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube1") # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) self.assertEquals(1, og.Controller.get(("outputs:output", extract_node))) # connect the PrimPathNode, which is set to the second cube controller.edit( self.TEST_GRAPH_PATH, { keys.CONNECT: [("GetPrimAtPath.outputs:prims", "ReadNode.inputs:prims")], keys.SET_VALUES: [("ExtractPrim.inputs:primPath", "/World/Cube2")], }, ) # validate the prim attribute is read from the correct attribute await og.Controller.evaluate(graph) self.assertEquals(2, og.Controller.get(("outputs:output", extract_node))) # ----------------------------------------------------------------------------------- async def test_read_prims_with_connected_prims(self): """Tests that ReadPrims node can be connected at the prim port""" await self._test_read_prim_node_with_connected_prims("omni.graph.nodes.ReadPrims") # ----------------------------------------------------------------------------------- async def test_read_prims_bundle_with_connected_prims(self): """Tests that ReadPrims node can be connected at the prim port""" await self._test_read_prim_node_with_connected_prims("omni.graph.nodes.ReadPrimsBundle") # ----------------------------------------------------------------------------------- async def test_write_prim_attribute_with_connected_prim(self): """Test that WritePrimAttribute can be connected at the prim port""" node = "omni.graph.nodes.WritePrimAttribute" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (_write_prim, _, _, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("WriteNode", node), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ("ConstValue", "omni.graph.nodes.ConstantFloat"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ("ConstValue.inputs:value", "WriteNode.inputs:value"), ], keys.CREATE_PRIMS: [ ("/World/Cube1", {"dummy_prop": ("float", 1)}, "Cube"), ("/World/Cube2", {"dummy_prop": ("float", 2)}, "Cube"), ], keys.SET_VALUES: [ ("WriteNode.inputs:name", "dummy_prop"), ("ConstToken.inputs:value", "/World/Cube2"), ("ConstValue.inputs:value", 3.0), ("WriteNode.inputs:usdWriteBack", True), ], }, ) rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/WriteNode.inputs:prim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube1") # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) self.assertEquals(3, stage.GetAttributeAtPath("/World/Cube1.dummy_prop").Get()) # connect the PrimPathNode, which is set to the second cube controller.edit( self.TEST_GRAPH_PATH, {keys.CONNECT: [("GetPrimAtPath.outputs:prims", "WriteNode.inputs:prim")]} ) # validate the prim attribute is read from the correct attribute await og.Controller.evaluate(graph) self.assertEquals(3, stage.GetAttributeAtPath("/World/Cube2.dummy_prop").Get()) # -------------------------------------------------------------------------------------- async def _test_generic_with_connected_prim_setup(self, node_name, prim_input="prim", use_path="usePath"): """Creates a graph set with the given node, two prims (cubes) and sets the path to first prim""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, (node, _, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Node", node_name), ("GetPrimAtPath", "omni.graph.nodes.GetPrimsAtPath"), ("ConstToken", "omni.graph.nodes.ConstantToken"), ], keys.CONNECT: [ ("ConstToken.inputs:value", "GetPrimAtPath.inputs:path"), ], keys.CREATE_PRIMS: [ ("/World/Cube1", "Cube"), ("/World/Cube2", "Cube"), ], keys.SET_VALUES: [ (f"Node.inputs:{use_path}", False), ("ConstToken.inputs:value", "/World/Cube2"), ], }, ) # make sure the prims have the correct transform attributes for prim_path in ["/World/Cube1", "/World/Cube2"]: prim = stage.GetPrimAtPath(prim_path) prim.CreateAttribute("xformOp:translate", Sdf.ValueTypeNames.Double3, False).Set(Gf.Vec3d(0, 0, 0)) prim.CreateAttribute("xformOp:rotateXYZ", Sdf.ValueTypeNames.Double3, False).Set(Gf.Vec3d(0, 0, 0)) prim.CreateAttribute("xformOp:scale", Sdf.ValueTypeNames.Double3, False).Set(Gf.Vec3d(1.0, 1.0, 1.0)) prim.CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] ) rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Node.inputs:{prim_input}") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube1") omni.timeline.get_timeline_interface().play() return (controller, graph, node) def _connect_prim_path_node(self, controller): """ Helper to connect the prim path node from the graph created in _test_generic_with_connected_prim_setup """ controller.edit( self.TEST_GRAPH_PATH, { og.Controller.Keys.CONNECT: [("GetPrimAtPath.outputs:prims", "Node.inputs:prim")], }, ) # -------------------------------------------------------------------------------------- async def _advance(self, graph, delta_time=0.01): """ Helper routine to wait for minimum amount of time to pass Requires the timeline to be playing """ timeline = omni.timeline.get_timeline_interface() t = timeline.get_current_time() + delta_time await og.Controller.evaluate(graph) while timeline.get_current_time() < t: await omni.kit.app.get_app().next_update_async() if not timeline.is_playing(): raise og.OmniGraphError("_advance expected the timeline to be playing") # -------------------------------------------------------------------------------------- async def test_get_prim_direction_vector_with_connected_prim(self): """Test GetPrimDirectorVector works with a connected prim""" (controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.GetPrimDirectionVector" ) # rotate the second cube stage = omni.usd.get_context().get_stage() stage.GetAttributeAtPath("/World/Cube2.xformOp:rotateXYZ").Set(Gf.Vec3d(0, 180, 0)) # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) self.assertListEqual([0, 0, -1], list(og.Controller.get(("outputs:forwardVector", node)))) # connect the PrimPathNode, which is set to the second cube self._connect_prim_path_node(controller) # connect the PrimPathNode, which is set to the second cube # validate the prim attribute is read from the correct attribute await og.Controller.evaluate(graph) vec = og.Controller.get(("outputs:forwardVector", node)) self.assertAlmostEqual(0, vec[0]) self.assertAlmostEqual(0, vec[1]) self.assertAlmostEqual(1, vec[2]) # -------------------------------------------------------------------------------------- async def test_get_prim_local_to_world_with_connected_prim(self): """Test GetPrimLocalToWorldTransform works with a connected prim""" (controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.GetPrimLocalToWorldTransform" ) # rotate the second cube stage = omni.usd.get_context().get_stage() stage.GetAttributeAtPath("/World/Cube2.xformOp:rotateXYZ").Set(Gf.Vec3d(0, 180, 0)) # evaluate the unconnected graph with the first cube set directly await og.Controller.evaluate(graph) matrix = og.Controller.get(("outputs:localToWorldTransform", node)) matrix = [round(i) for i in matrix] self.assertListEqual([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], matrix) # connect the PrimPathNode, which is set to the second cube self._connect_prim_path_node(controller) # validate the prim attribute is read from the correct attribute await og.Controller.evaluate(graph) matrix = og.Controller.get(("outputs:localToWorldTransform", node)) matrix = [round(i) for i in matrix] self.assertListEqual([-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1], matrix) # -------------------------------------------------------------------------------------- async def test_get_prim_relationship_with_connected_prim(self): """Test GetPrimRelationship works with a connected prim""" (controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.GetPrimRelationship" ) self._connect_prim_path_node(controller) # set up a relationship from the connected to cube stage = omni.usd.get_context().get_stage() stage.GetPrimAtPath("/World/Cube2").CreateRelationship("dummy_rel").AddTarget("/World/Cube1") # mark the attribute og.Controller.set(("inputs:name", node), "dummy_rel") await og.Controller.evaluate(graph) self.assertEqual(["/World/Cube1"], og.Controller.get(("outputs:paths", node))) # -------------------------------------------------------------------------------------- async def test_move_to_target_with_connected_prim(self): """Test MoveToTarget works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.MoveToTarget", "sourcePrim", "useSourcePath" ) # connect the destination stage = omni.usd.get_context().get_stage() rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Node.inputs:targetPrim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube2") stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(1, 0, 0)) stage.GetAttributeAtPath("/World/Cube2.xformOp:translate").Set(Gf.Vec3d(1000, 0, 0)) og.Controller.set(("inputs:speed", node), 0.1) # validate the source cube is moving away from the source last_x = 0.99 # first frame is 1 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) x = cube1.ExtractTranslation()[0] self.assertGreater(x, last_x) last_x = x # -------------------------------------------------------------------------------------- async def test_move_to_transform_with_connected_prim(self): """Test MoveToTransform works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.MoveToTransform" ) # connect the destination stage = omni.usd.get_context().get_stage() stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(1, 0, 0)) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOp:orient", Sdf.ValueTypeNames.Quatd, False).Set( Gf.Quatd(0) ) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:orient"] ) og.Controller.set(("inputs:speed", node), 0.1) og.Controller.set(("inputs:target", node), Gf.Matrix4d(1).SetTranslate(Gf.Vec3d(1000, 0, 0))) # validate the source cube is moving away from the source last_x = 0.99 # first frame is 1 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) x = cube1.ExtractTranslation()[0] self.assertGreater(x, last_x) last_x = x # -------------------------------------------------------------------------------------- async def test_rotate_to_target_with_connected_prim(self): """Test RotateToTarget works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.RotateToTarget", "sourcePrim", "useSourcePath" ) # connect the destination stage = omni.usd.get_context().get_stage() rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Node.inputs:targetPrim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube2") quat1 = Gf.Rotation().SetIdentity().GetQuat() quat2 = Gf.Rotation().SetAxisAngle(Gf.Vec3d.YAxis(), 180).GetQuat() stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(0, 0, 0)) stage.GetAttributeAtPath("/World/Cube2.xformOp:translate").Set(Gf.Vec3d(0, 0, 0)) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOp:orient", Sdf.ValueTypeNames.Quatd, False).Set( quat1 ) stage.GetPrimAtPath("/World/Cube2").CreateAttribute("xformOp:orient", Sdf.ValueTypeNames.Quatd, False).Set( quat2 ) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:orient", "xformOp:scale"] ) stage.GetPrimAtPath("/World/Cube2").CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:orient", "xformOp:scale"] ) og.Controller.set(("inputs:speed", node), 0.02) # very slow moving last_rot = quat2 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) rot = cube1.ExtractRotation() self.assertNotEqual(rot, last_rot) last_rot = rot # -------------------------------------------------------------------------------------- async def test_rotate_to_orientation_with_connected_prim(self): """Test RotateToOrientation works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.RotateToOrientation" ) # connect the destination stage = omni.usd.get_context().get_stage() quat1 = Gf.Rotation().SetIdentity().GetQuat() stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(0, 0, 0)) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOp:orient", Sdf.ValueTypeNames.Quatd, False).Set( quat1 ) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:orient", "xformOp:scale"] ) og.Controller.set(("inputs:speed", node), 0.02) # very slow moving og.Controller.set(("inputs:target", node), (0, 180, 0)) last_rot = Gf.Rotation().SetAxisAngle(Gf.Vec3d.YAxis(), 180).GetQuat() for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) rot = cube1.ExtractRotation() self.assertNotEqual(rot, last_rot) last_rot = rot # -------------------------------------------------------------------------------------- async def test_scale_to_size_with_connected_prim(self): """Test ScaleToSize works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup("omni.graph.nodes.ScaleToSize") # connect the destination stage = omni.usd.get_context().get_stage() stage.GetAttributeAtPath("/World/Cube1.xformOp:scale").Set(Gf.Vec3d(1, 1, 1)) og.Controller.set(("inputs:speed", node), 0.1) og.Controller.set(("inputs:target", node), (1000, 1000, 1000)) # validate the source cube is moving away from the source last_x = 0.99 # first frame is 1 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) x = cube1[0][0] self.assertGreater(x, last_x) last_x = x # -------------------------------------------------------------------------------------- async def test_translate_to_target_with_connected_prim(self): """Test TranslateToTarget works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.TranslateToTarget", "sourcePrim", "useSourcePath" ) # connect the destination stage = omni.usd.get_context().get_stage() rel = stage.GetRelationshipAtPath(f"{self.TEST_GRAPH_PATH}/Node.inputs:targetPrim") omni.kit.commands.execute("AddRelationshipTarget", relationship=rel, target="/World/Cube2") stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(1, 0, 0)) stage.GetAttributeAtPath("/World/Cube2.xformOp:translate").Set(Gf.Vec3d(1000, 0, 0)) og.Controller.set(("inputs:speed", node), 0.1) # validate the source cube is moving away from the source last_x = 0.99 # first frame is 1 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) x = cube1.ExtractTranslation()[0] self.assertGreater(x, last_x) last_x = x # -------------------------------------------------------------------------------------- async def test_translate_to_location_with_connected_prim(self): """Test TranslateToLocation works with a connected prim""" (_controller, graph, node) = await self._test_generic_with_connected_prim_setup( "omni.graph.nodes.TranslateToLocation" ) # connect the destination stage = omni.usd.get_context().get_stage() stage.GetAttributeAtPath("/World/Cube1.xformOp:translate").Set(Gf.Vec3d(1, 0, 0)) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOp:orient", Sdf.ValueTypeNames.Quatd, False).Set( Gf.Quatd(0) ) stage.GetPrimAtPath("/World/Cube1").CreateAttribute("xformOpOrder", Sdf.ValueTypeNames.String, False).Set( ["xformOp:translate", "xformOp:orient"] ) og.Controller.set(("inputs:speed", node), 0.1) og.Controller.set(("inputs:target", node), Gf.Vec3d(1000, 0, 0)) # validate the source cube is moving away from the source last_x = 0.99 # first frame is 1 for _ in range(0, 5): await self._advance(graph) xform_cache = UsdGeom.XformCache() cube1 = xform_cache.GetLocalToWorldTransform(stage.GetPrimAtPath("/World/Cube1")) x = cube1.ExtractTranslation()[0] self.assertGreater(x, last_x) last_x = x
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_omnigraph_builtins.py
"""Basic tests of the compute graph""" from unittest import skip import numpy import omni.graph.core as og import omni.graph.core.tests as ogts import omni.graph.tools as ogt import omni.kit.stage_templates import omni.kit.test import omni.usd from omni.graph.core.tests.omnigraph_test_utils import create_scope_node from pxr import Sdf # ====================================================================== # Set of attribute types that can have default values set ATTR_INT = Sdf.ValueTypeNames.Int ATTR_BOOL = Sdf.ValueTypeNames.Bool ATTR_FLOAT = Sdf.ValueTypeNames.Float ATTR_DOUBLE = Sdf.ValueTypeNames.Double ATTR_INT_ARRAY = Sdf.ValueTypeNames.IntArray ATTR_FLOAT_ARRAY = Sdf.ValueTypeNames.FloatArray ATTR_DOUBLE_ARRAY = Sdf.ValueTypeNames.DoubleArray ATTR_FLOAT2_ARRAY = Sdf.ValueTypeNames.Float2Array ATTR_FLOAT3_ARRAY = Sdf.ValueTypeNames.Float3Array ATTR_STRING = Sdf.ValueTypeNames.String ATTR_TOKEN = Sdf.ValueTypeNames.Token ATTR_DEFAULTS = { ATTR_INT: 0, ATTR_BOOL: False, ATTR_FLOAT: 0.0, ATTR_DOUBLE: 0.0, ATTR_INT_ARRAY: [], ATTR_FLOAT_ARRAY: [], ATTR_DOUBLE_ARRAY: [], ATTR_FLOAT2_ARRAY: [], ATTR_FLOAT3_ARRAY: [], ATTR_STRING: "", ATTR_TOKEN: "", } # ====================================================================== def initialize_attribute(prim, attribute_name, attribute_type): """Set up an attribute named "attribute_name" on the given prim with a default value of the specified type""" ogt.dbg(f" Initialize {attribute_name} with value {ATTR_DEFAULTS[attribute_type]}") prim.CreateAttribute(attribute_name, attribute_type).Set(ATTR_DEFAULTS[attribute_type]) # ====================================================================== def float3_array_of(array_order: int): """ Returns an array of float3 the size of the array_order, with values equal to it e.g. array_order(1) = [[1.0, 1.0, 1.0]] e.g. array_order(2) = [[2.0, 2.0, 2.0], [2.0, 2.0, 2.0]] """ return [[float(array_order)] * 3] * array_order # ====================================================================== def generate_results(array_order1: int, array_order2: int): """ Returns expected test data for the concatenate node consisting of: - an array of float3, in a sequence of "array_order1" elements with values (array_order1, array_order1, array_order1) followed by a similar sequence for "array_order2" e.g. values 1 and 2 would yield: [[1.0,1.0,1.0],[2.0,2.0,2.0],[2.0,2.0,2.0]] """ return float3_array_of(array_order1) + float3_array_of(array_order2) # ====================================================================== class TestOmniGraphBuiltins(ogts.OmniGraphTestCase): """Run a simple unit test that exercises graph functionality""" # ---------------------------------------------------------------------- def compare_values(self, expected_value, actual_value, error_message): """Generic assert comparison which uses introspection to choose the correct method to compare the data values""" ogt.dbg(f"----Comparing {actual_value} with expected {expected_value} as '{error_message}'") if isinstance(expected_value, (list, tuple)): # If the numpy module is not available array values cannot be tested so silently succeed if numpy is None: return # Values are returned as numpy arrays so convert the expected value and use numpy to do the comparison numpy.testing.assert_almost_equal( actual_value, numpy.array(expected_value), decimal=3, err_msg=error_message ) elif isinstance(expected_value, float): self.assertAlmostEqual(actual_value, expected_value, error_message) else: self.assertEqual(actual_value, expected_value, error_message) # ---------------------------------------------------------------------- @skip("TODO: Enable when gather nodes are fully supported") async def test_concat_node(self): """ Run evaluation tests on the builtin math concat node. This node has its own test because it cannot be tested in isolation, it requires a gather node to provide a meaningful input. """ concat_node = "ConcatFloat3Arrays" gather_node = "GatherFloat3Arrays" scope_node1 = "ScopeWithArrays1" scope_node2 = "ScopeWithArrays2" gather_output = f"/World/{gather_node}.createdOutput" cached_prims = {} scene_data = { # The concatFloat3Arrays node flattens and array of arrays of float3 "omni.graph.nodes.ConcatenateFloat3Arrays": { "name": [concat_node], "inputs": [["inputs:inputArrays", Sdf.ValueTypeNames.Float3Array]], "outputs": [ ["outputs:outputArray", Sdf.ValueTypeNames.Float3Array, [[-1.0, -1.0, -1.0]]], ["outputs:arraySizes", Sdf.ValueTypeNames.IntArray, [-1]], ], }, # The gather node concatenates lists of inputs together so that a node can process them on mass "Gather": { "name": [gather_node], "inputs": [], "outputs": [["createdOutput", Sdf.ValueTypeNames.Float3Array, [[-1.0, -1.0, -1.0]]]], }, # Generic scope nodes to supply the float3 arrays to the gather node "Scope": { "name": [scope_node1, scope_node2], "inputs": [], "outputs": [["createdOutput", Sdf.ValueTypeNames.Float3Array, [[-1.0, -1.0, -1.0]]]], }, } # Create a stage consisting of one of each type of node to be tested with their attributes for node_type, node_configuration in scene_data.items(): for node_name in node_configuration["name"]: if node_type == "Scope": prim = create_scope_node(node_name) else: stage = omni.usd.get_context().get_stage() path = omni.usd.get_stage_next_free_path(stage, "/" + node_name, True) _ = og.GraphController.create_node(path, node_type) prim = stage.GetPrimAtPath(path) cached_prims[node_name] = prim for attribute_name, attribute_type in node_configuration["inputs"]: prim.CreateAttribute(attribute_name, attribute_type) for attribute_name, attribute_type, _ in node_configuration["outputs"]: prim.CreateAttribute(attribute_name, attribute_type) # Create the connections that get gathered arrays to the concat node cached_prims[concat_node].GetAttribute("inputs:inputArrays").AddConnection(gather_output) cached_prims[scope_node1].GetAttribute("createdOutput").Set([[1.0, 1.0, 1.0]]) cached_prims[scope_node2].GetAttribute("createdOutput").Set([[2.0, 2.0, 2.0], [2.0, 2.0, 2.0]]) # Pairs of inputs for the create nodes to generate results (extracted from generated_results()) test_data = [[1, 1], [1, 2], [1, 3], [3, 1], [3, 3]] await omni.kit.app.get_app().next_update_async() graph = omni.graph.core.get_current_graph() # Get the attributes that will be used for the computations concat_compute = graph.get_node("/World/" + concat_node) output_attr_array = concat_compute.get_attribute("outputs:outputArray") output_attr_counts = concat_compute.get_attribute("outputs:arraySizes") for test_values in test_data: # Set the test inputs cached_prims[scope_node1].GetAttribute("createdOutput").Set(float3_array_of(test_values[0])) cached_prims[scope_node2].GetAttribute("createdOutput").Set(float3_array_of(test_values[1])) # Run the compute await omni.kit.app.get_app().next_update_async() # Check the contents of the flattened array expected_output = generate_results(test_values[0], test_values[1]) output_array_value = og.Controller.get(output_attr_array) self.compare_values( expected_output, output_array_value, "ConcatNode test - outputArray attribute value error" ) # Check the contents of the array size counts output_counts_value = og.Controller.get(output_attr_counts) self.compare_values(test_values, output_counts_value, "ConcatNode test - arraySizes attribute value error")
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/bundle_test_utils.py
"""Collection of utilities to help with testing bundled attributes on OmniGraph nodes""" import ast from dataclasses import dataclass from typing import Any, Dict, List, Optional, Tuple, Union import omni.graph.core as og import omni.graph.core.tests as ogts import omni.graph.tools.ogn as ogn from omni.graph.core.typing import Node_t, PrimAttrs_t __all__ = [ "bundle_inspector_results", "BundleInspectorResults_t", "BundleResultKeys", "enable_debugging", "filter_bundle_inspector_results", "get_bundle_with_all_results", "prim_with_everything_definition", "verify_bundles_are_equal", ] # ============================================================================================================== @dataclass class BundleResultKeys: """Container for the keys used in the bundle result values and the index in the return tuple that each one uses""" COUNT = "outputs:count" NAME = "outputs:names" TYPE = "outputs:types" TYPE_IDX = 0 TUPLE_COUNT = "outputs:tupleCounts" TUPLE_COUNT_IDX = 1 ARRAY_DEPTH = "outputs:arrayDepths" ARRAY_DEPTH_IDX = 2 ROLE = "outputs:roles" ROLE_IDX = 3 VALUE = "outputs:values" VALUE_IDX = 4 # ============================================================================================================== BundleInspectorResults_t = Tuple[int, Dict[str, Tuple[str, str, int, int, Any]]] """Results extracted from a bundle inspector's output attributes by NAME:VALUE. The first value is the count output. The dictionary is a mapping of name to (type, role, arrayDepth, tupleCount, value). It's stored this way to make it easier to guarantee ordering of the lists so that they can be easily compared. """ # ====================================================================== # Special value used by the bundle inspector node when the output for the bundled attribute is not yet supported _BUNDLE_INSPECTOR_UNSUPPORTED_DATA = "__unsupported__" # ====================================================================== def enable_debugging(bundle_inspector_node_name: Union[og.Node, str]): """Sets the debugging input value to true on the given omnigraph.nodes.bundleInspector Raises: AttributeError if the node is not a bundle inspector type """ graph = og.get_all_graphs()[0] if isinstance(bundle_inspector_node_name, og.Node): bundle_node = bundle_inspector_node_name else: bundle_node = graph.get_node(bundle_inspector_node_name) print_attribute = bundle_node.get_attribute("inputs:print") og.Controller.set(print_attribute, True) # ====================================================================== def prim_with_everything_definition( type_names_to_filter: Optional[List[str]] = None, filter_for_inclusion: bool = True ) -> PrimAttrs_t: """Generates an og.Controller prim creation specification for a prim containing one of every attribute. The name of the attribute is derived from the type. int -> IntAttr int[] -> IntArrayAttr int[3] -> Int3Attr int[3][] -> Int3ArrayAttr Args: type_names_to_filter: List of type names to check for inclusion. If empty no filtering happens. The type names should be in OGN format (e.g. "int[3][]") filter_for_inclusion: If True then the type_names_to_filter is treated as the full list of type names to include, otherwise it is treated as a list of types to exclude from the list of all types. Return: A dictionary containing a prim definition that matches what is required by og.Controller.create_prim with all of the specified attributes defined on the prim. """ def __type_passes_filter(type_name: str) -> bool: """Returns True iff the filters allow the type_name to be included""" # The deprecated transform type always fails the filter if type_name.startswith("transform"): return False if filter_for_inclusion: return type_names_to_filter is None or type_name in type_names_to_filter return type_names_to_filter is None or type_name not in type_names_to_filter definition = {} for attribute_type_name in ogn.supported_attribute_type_names(): # Skip the types that are filtered if not __type_passes_filter(attribute_type_name): continue manager = ogn.get_attribute_manager_type(attribute_type_name) sdf_type_name = manager.sdf_type_name() # Skip the types that don't correspond to USD types if sdf_type_name is not None: attribute_name = f"{sdf_type_name}Attr" values = manager.sample_values() definition[attribute_name] = (attribute_type_name, values[0]) return definition # ====================================================================== def get_bundle_with_all_results( prim_source_path: Optional[str] = None, type_names_to_filter: Optional[List[str]] = None, filter_for_inclusion: bool = True, prim_source_type: Optional[str] = None, ) -> BundleInspectorResults_t: """Generates a dictionary of expected bundle inspector contents from a bundle constructed with a filtered list of all attribute types. The name of the attribute is derived from the type. int -> IntAttr int[] -> IntArrayAttr int[3] -> Int3Attr int[3][] -> Int3ArrayAttr Args: prim_source_path: Source of the prim from which the bundle was extracted (to correctly populate the extra attribute the ReadPrim nodes add). If None then no prim addition is required. type_names_to_filter: List of type names to check for inclusion. If empty no filtering happens. The type names should be in OGN format (e.g. "int[3][]") filter_for_inclusion: If True then the type_names_to_filter is treated as the full list of type names to include, otherwise it is treated as a list of types to exclude from the list of all types. prim_source_type: Type of the source prim. Return: A dictionary containing a BundleInspector attribute name mapped onto the value of that attribute. Only the output attributes are considered. """ def __type_passes_filter(type_name: str) -> bool: """Returns True iff the filters allow the type_name to be included""" # The deprecated transform type always fails the filter if type_name.startswith("transform"): return False if filter_for_inclusion: return type_names_to_filter is None or type_name in type_names_to_filter return type_names_to_filter is None or type_name not in type_names_to_filter # This token is hardcoded into the ReadPrimBundle node and will always be present regardless of the prim contents. # This requires either the prim path be "TestPrim", or the value be adjusted to reflect the actual prim per_name_results = {} for attribute_type_name in ogn.supported_attribute_type_names(): # Skip the types that are filtered if not __type_passes_filter(attribute_type_name): continue manager = ogn.get_attribute_manager_type(attribute_type_name) sdf_type_name = manager.sdf_type_name() # Skip the types that don't correspond to USD types if sdf_type_name is not None: attribute_type = og.AttributeType.type_from_ogn_type_name(attribute_type_name) attribute_name = f"{sdf_type_name}Attr" values = manager.sample_values() per_name_results[attribute_name] = ( attribute_type.get_base_type_name(), attribute_type.tuple_count, attribute_type.array_depth, attribute_type.get_role_name(), values[0], ) if prim_source_path is not None: per_name_results.update({"sourcePrimPath": ("token", 1, 0, "none", prim_source_path)}) if prim_source_type is not None: per_name_results.update({"sourcePrimType": ("token", 1, 0, "none", prim_source_type)}) return (len(per_name_results), per_name_results) # ====================================================================== def bundle_inspector_results(inspector_spec: Node_t) -> BundleInspectorResults_t: """Returns attribute values computed from a bundle inspector in the same form as inspected_bundle_values Args: inspector_spec: BundleInspector node from which to extract the output values Return: Output values of the bundle inspector, formatted for easier comparison. Raises: og.OmniGraphError if anything in the inspector outputs could not be interpreted """ inspector_node = og.Controller.node(inspector_spec) output = {} for inspector_attribute in inspector_node.get_attributes(): attribute_name = inspector_attribute.get_name() if inspector_attribute.get_port_type() != og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT: continue if inspector_attribute.get_type_name() == "bundle": continue values = og.Controller.get(inspector_attribute) if inspector_attribute.get_name().endswith("values"): # Bundled values are formatted as strings but are actually a mixture of types values = [ ast.literal_eval(value) if value != _BUNDLE_INSPECTOR_UNSUPPORTED_DATA else _BUNDLE_INSPECTOR_UNSUPPORTED_DATA for value in values ] output[attribute_name] = values # Catch the case of an empty bundle separately if not output: return (0, {}) try: count = output[BundleResultKeys.COUNT] per_name_values = { name: (v1, v2, v3, v4, v5) for name, v1, v2, v3, v4, v5 in zip( output[BundleResultKeys.NAME], output[BundleResultKeys.TYPE], output[BundleResultKeys.TUPLE_COUNT], output[BundleResultKeys.ARRAY_DEPTH], output[BundleResultKeys.ROLE], output[BundleResultKeys.VALUE], ) } except Exception as error: raise og.OmniGraphError(error) return (count, per_name_values) # ============================================================================================================== def verify_bundles_are_equal( actual_values: BundleInspectorResults_t, expected_values: BundleInspectorResults_t, check_values: bool = True ): """Check that the contents of the actual values received from a bundle inspector match the expected values. Args: actual_values: Bundle contents read from the graph expected_values: Test bundle contents expected check_values: If True then check that attribute values as well as the type information, otherwise just types Raises: ValueError: if the contents differ. The message in the exception explains how they differ """ (actual_count, actual_results) = actual_values (expected_count, expected_results) = expected_values def __compare_attributes(attribute_name: str): """Compare a single attribute's result from the bundle inspected, raising ValueError if not equal""" actual_value = actual_results[attribute_name] expected_value = expected_results[attribute_name] try: if actual_value[0] != expected_value[0]: raise ValueError("Type mismatch") if actual_value[1] != expected_value[1]: raise ValueError("Tuple count mismatch") if actual_value[2] != expected_value[2]: raise ValueError("Array depth mismatch") if actual_value[3] != expected_value[3]: raise ValueError("Role mismatch") if check_values: ogts.verify_values(actual_value[4], expected_value[4], "Value mismatch") except ValueError as error: raise ValueError( f"Actual value for '{attribute_name}' of '{actual_value}' did not match expected value" f" of '{expected_value}'" ) from error actual_names = set(actual_results.keys()) expected_names = set(expected_results.keys()) name_difference = actual_names.symmetric_difference(expected_names) if name_difference: problems = [] extra_actual_results = actual_names.difference(expected_names) if extra_actual_results: problems.append(f"Actual members {extra_actual_results} not expected.") extra_expected_results = expected_names.difference(actual_names) if extra_expected_results: problems.append(f"Expected members {extra_expected_results} not found.") problem = "\n".join(problems) raise ValueError(f"Actual output attribute names differ from expected list: {problem}") if actual_count != expected_count: raise ValueError(f"Expected {expected_count} results, actual value was {actual_count}") for output_attribute_name in actual_results.keys(): __compare_attributes(output_attribute_name) # ============================================================================================================== def filter_bundle_inspector_results( raw_results: BundleInspectorResults_t, names_to_filter: Optional[List[str]] = None, filter_for_inclusion: bool = True, ) -> BundleInspectorResults_t: """Filter out the results retrieved from a bundle inspector by name Args: names_to_filter: List of attribute names to check for inclusion. filter_for_inclusion: If True then the names_to_filter is treated as the full list of names to include, otherwise it is treated as a list of names to exclude from the list of all names. Return: The raw_results with the above filtering performed """ def __type_passes_filter(name: str) -> bool: """Returns True iff the filters allow the name to be included""" if filter_for_inclusion: return names_to_filter is None or name in names_to_filter return names_to_filter is None or name not in names_to_filter (_, results) = raw_results filtered_results = {} for attribute_name, attribute_values in results.items(): if __type_passes_filter(attribute_name): filtered_results[attribute_name] = attribute_values return (len(filtered_results), filtered_results)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_bundles.py
import omni.graph.core as ogc import omni.kit.test class TestNodeInputAndOutputBundles(ogc.tests.OmniGraphTestCase): """Test to validate access to input/output bundles""" TEST_GRAPH_PATH = "/TestGraph" async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() self.graph = ogc.Controller.create_graph(self.TEST_GRAPH_PATH) self.context = self.graph.get_default_graph_context() self.prim_cube = ogc.Controller.create_prim("/cube", {}, "Cube") (self.graph, [self.read_prim, self.extract_prim, self.extract_bundle], _, _,) = ogc.Controller.edit( self.TEST_GRAPH_PATH, { ogc.Controller.Keys.CREATE_NODES: [ ("read_prims", "omni.graph.nodes.ReadPrims"), ("extract_prim", "omni.graph.nodes.ExtractPrim"), ("extract_bundle", "omni.graph.nodes.ExtractBundle"), ], ogc.Controller.Keys.CONNECT: [ ("read_prims.outputs_primsBundle", "extract_prim.inputs:prims"), ("extract_prim.outputs_primBundle", "extract_bundle.inputs:bundle"), ], ogc.Controller.Keys.SET_VALUES: [ ("extract_prim.inputs:primPath", str(self.prim_cube.GetPath())), ], }, ) stage = omni.usd.get_context().get_stage() omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(self.TEST_GRAPH_PATH + "/read_prims.inputs:prims"), target=self.prim_cube.GetPath(), ) async def test_pass_through_output(self): """Test if data from pass through output is accessible through bundles""" await ogc.Controller.evaluate(self.graph) factory = ogc.IBundleFactory.create() # Accessing bundle through get_output_bundle constructs IBundle interface output_bundle = self.context.get_output_bundle(self.extract_bundle, "outputs_passThrough") output_bundle2 = factory.get_bundle(self.context, output_bundle) self.assertTrue(output_bundle2.valid) self.assertTrue(output_bundle2.get_attribute_by_name("extent").is_valid())
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_read_prims_hierarchy.py
import numpy as np import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test from pxr import Gf, Sdf, Usd, UsdGeom class TestReadPrimsHierarchy(ogts.OmniGraphTestCase): """Unit tests for hierarchical behavior of the ReadPrimsV2 node in this extension""" async def test_read_prims_hierarchy_permutations(self): # We build a hierarchy, 4 levels deep. # Then we track each possible pair of prims in the hierarchy, # mutate every prim in the hierarchy (scaling), # and check if the pair USD and bundle world matrices and bounding boxes match. # TODO: Find out why this runs so slow! # Originally we ran 3 tests, optionally enabling matrix and/or bounds # But since the test runs so slowly, we only have one now. # The incremental tests will test the options anyway. # We keep these variables to selectively disable either one for debugging. compute_world_matrix = True compute_bounding_box = True usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() test_graph_path = "/World/TestGraph" # Define the compute graph controller = og.Controller() keys = og.Controller.Keys (graph, [read_prims_node], _, _) = controller.edit( test_graph_path, { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrimsV2"), ], keys.SET_VALUES: [ ("Read.inputs:enableChangeTracking", True), # TODO: Re-enable when OgnReadPrimsV2 gets computeWorldMatrix # ("Read.inputs:computeWorldMatrix", compute_world_matrix), ("Read.inputs:computeBoundingBox", compute_bounding_box), ], }, ) debug_stamp = 0 debug_stamp_attribute = read_prims_node.get_attribute("inputs:_debugStamp") init_scale = Gf.Vec3f(0.5, 0.5, 0.5) test_scale = Gf.Vec3f(1.5, 1.5, 1.5) default_time = Usd.TimeCode.Default() # Defines 2 trees with 2 branches and 2 leaves (as spheres), # return the prim paths of all the nodes. # Optionally just define nodes that have the given prefix; # this is used to restore the hierarchy after deleting a subtree def define_hierarchies(prefix=None): tree_prims = [] def add_prim(prim, x, y, z): tree_prims.append(prim) api = UsdGeom.XformCommonAPI(prim) api.SetTranslate(Gf.Vec3d(x, y, z)) # We set the scale of each node to 0.5 instead of 1, # so that deleting the scale attribute (which resets the scale to 1) # is detected as a matrix and bounds change api.SetScale(init_scale) for tree_index in range(2): tree_path = f"/Tree{tree_index}" if prefix is None or Sdf.Path(tree_path).HasPrefix(prefix): tree_prim = UsdGeom.Xform.Define(stage, tree_path) add_prim(tree_prim, (tree_index - 0.5) * 20, 0, 0) for branch_index in range(2): branch_path = f"{tree_path}/Branch{branch_index}" if prefix is None or Sdf.Path(branch_path).HasPrefix(prefix): branch_prim = UsdGeom.Xform.Define(stage, branch_path) add_prim(branch_prim, 0, 10, 0) for leaf_index in range(2): leaf_path = f"{branch_path}/Leaf{leaf_index}" if prefix is None or Sdf.Path(leaf_path).HasPrefix(prefix): leaf_prim = UsdGeom.Sphere.Define(stage, leaf_path) # The leaves are positioned in a diamond shape, # so that deleting any leaf influences that ancestor bounds if branch_index == 0: add_prim(leaf_prim, (leaf_index - 0.5) * 5, 10, 0) else: add_prim(leaf_prim, 0, 10, (leaf_index - 0.5) * 5) return [p.GetPath() for p in tree_prims] def get_usd_matrix_bounds_pair(prim_path): xformable = UsdGeom.Xformable(stage.GetPrimAtPath(prim_path)) self.assertTrue(xformable is not None) world_matrix = xformable.ComputeLocalToWorldTransform(default_time) local_bounds = xformable.ComputeLocalBound(default_time, UsdGeom.Tokens.default_, UsdGeom.Tokens.proxy) return (world_matrix, local_bounds) tree_prim_paths = define_hierarchies() # For debugging test failures, tweak the two variable below (should be lists of Sdf.Path) track_prim_paths = tree_prim_paths change_prim_paths = tree_prim_paths # The original matrix and bound pairs, before changes usd_matrix_bounds_originals = {path: get_usd_matrix_bounds_pair(path) for path in tree_prim_paths} async def check_bundles(changed_prim, tracked_paths, debug_stamp): changed_path = changed_prim.GetPath() controller.set(debug_stamp_attribute, debug_stamp) await controller.evaluate() graph_context = graph.get_default_graph_context() container = graph_context.get_output_bundle(read_prims_node, "outputs_primsBundle") self.assertTrue(container.valid) child_bundles = container.get_child_bundles() self.assertEqual(len(child_bundles), len(tracked_paths)) for bundle in child_bundles: stamp_attr = bundle.get_attribute_by_name("_debugStamp") source_prim_path_attr = bundle.get_attribute_by_name("sourcePrimPath") self.assertTrue(source_prim_path_attr.is_valid()) source_prim_path = Sdf.Path(source_prim_path_attr.get()) self.assertTrue( source_prim_path in tracked_paths, f"{source_prim_path} not in {tracked_paths}!", ) source_self_changed = source_prim_path == changed_path source_ancestor_changed = source_prim_path.HasPrefix(changed_path) source_descendant_changed = changed_path.HasPrefix(source_prim_path) ( usd_world_matrix_before_change, usd_local_bounds_before_change, ) = usd_matrix_bounds_originals[source_prim_path] ( usd_world_matrix_after_change, usd_local_bounds_after_change, ) = get_usd_matrix_bounds_pair(source_prim_path) usd_world_matrix_changed = usd_world_matrix_before_change != usd_world_matrix_after_change usd_local_bounds_changed = usd_local_bounds_before_change != usd_local_bounds_after_change # If the source is geometry (not an xform), # then changes to the ancestors will # NOT cause a change to the local bound source_prim = stage.GetPrimAtPath(source_prim_path) self.assertTrue(source_prim.IsValid()) ancestor_changed_local_bound = source_ancestor_changed and source_prim.IsA(UsdGeom.Xform) # The logic below breaks for structural stage changes, # which is disabled by passing 0 for debug_stamp. if debug_stamp > 0: # We add some tests to verify this complicated unit test itself self.assertEqual( usd_world_matrix_changed, source_self_changed or source_ancestor_changed, f"{source_prim_path} => expected world matrix change", ) self.assertEqual( usd_local_bounds_changed, source_self_changed or source_descendant_changed or ancestor_changed_local_bound, f"{source_prim_path} => expected local bounds change", ) expected_stamp = None world_matrix_attr = bundle.get_attribute_by_name("worldMatrix") if compute_world_matrix: # Compare world matrix in USD and bundle self.assertTrue( world_matrix_attr.is_valid(), f"Bundle for {source_prim_path} is missing worldMatrix", ) bundle_world_matrix = np.array(world_matrix_attr.get()) stage_world_matrix = np.array(usd_world_matrix_after_change).flatten() np.testing.assert_array_equal( stage_world_matrix, bundle_world_matrix, f"{source_prim_path} worldMatrix mismatch", ) if debug_stamp > 0: # Check how the world matrix was changed if source_self_changed: expected_stamp = debug_stamp elif source_ancestor_changed: expected_stamp = debug_stamp + 10000000 else: self.assertFalse( world_matrix_attr.is_valid(), f"Bundle for {source_prim_path} should not contain worldMatrix", ) bbox_transform_attr = bundle.get_attribute_by_name("bboxTransform") bbox_min_corner_attr = bundle.get_attribute_by_name("bboxMinCorner") bbox_max_corner_attr = bundle.get_attribute_by_name("bboxMaxCorner") if compute_bounding_box: # Compare local bound in USD and bundle self.assertTrue( bbox_transform_attr.is_valid(), f"Bundle for {source_prim_path} is missing bboxTransform", ) self.assertTrue( bbox_min_corner_attr.is_valid(), f"Bundle for {source_prim_path} is missing bboxMinCorner", ) self.assertTrue( bbox_max_corner_attr.is_valid(), f"Bundle for {source_prim_path} is missing bboxMaxCorner", ) bundle_bbox_transform = np.array(bbox_transform_attr.get()) bundle_bbox_min_corner = np.array(bbox_min_corner_attr.get()) bundle_bbox_max_corner = np.array(bbox_max_corner_attr.get()) stage_bbox = usd_local_bounds_after_change.GetBox() stage_bbox_transform = np.array(usd_local_bounds_after_change.GetMatrix()).flatten() stage_bbox_min_corner = np.array(stage_bbox.GetMin()) stage_bbox_max_corner = np.array(stage_bbox.GetMax()) np.testing.assert_array_equal( stage_bbox_transform, bundle_bbox_transform, f"{source_prim_path} bbox_transform mismatch", ) np.testing.assert_array_equal( stage_bbox_min_corner, bundle_bbox_min_corner, f"{source_prim_path} bbox_min_corner mismatch", ) np.testing.assert_array_equal( stage_bbox_max_corner, bundle_bbox_max_corner, f"{source_prim_path} bbox_max_corner mismatch", ) if debug_stamp > 0: # Check how the local bounds were changed if source_self_changed: expected_stamp = debug_stamp elif source_descendant_changed: expected_stamp = debug_stamp + 1000000 elif ancestor_changed_local_bound: expected_stamp = debug_stamp + 10000000 else: self.assertFalse( bbox_transform_attr.is_valid(), f"Bundle for {source_prim_path} should not contain bboxTransform", ) self.assertFalse( bbox_min_corner_attr.is_valid(), f"Bundle for {source_prim_path} should not contain bboxMinCorner", ) self.assertFalse( bbox_max_corner_attr.is_valid(), f"Bundle for {source_prim_path} should not contain bboxMaxCorner", ) if debug_stamp > 0: # Check the debug stamp actual_stamp = stamp_attr.get() if stamp_attr.is_valid() else 0 if expected_stamp is None: self.assertNotEqual( actual_stamp % 1000000, debug_stamp, f"{source_prim_path} shouldn't be stamped in this update!", ) else: self.assertEqual( actual_stamp, expected_stamp, f"{source_prim_path} had a wrong stamp!", ) async def run_sub_tests(i, j, debug_stamp): # Track these two prims tracked_pair_paths = [track_prim_paths[i], track_prim_paths[j]] omni.kit.commands.execute( "SetRelationshipTargets", relationship=stage.GetPropertyAtPath(f"{test_graph_path}/Read.inputs:prims"), targets=tracked_pair_paths, ) # We expect a full evaluation here, since we changed the input prims # We don't check that in this test that relates to hierarchy only await controller.evaluate() # Visit all prims in the hierarchy, # scale them, checking the bundle against the USD data (attr change test) # Then delete the scale attribute, and check again (attr resync remove test) # Then re-create the scale attribute, and check again (attr resync create test) # Then delete the prim (and subtree), and check again (prim resync remove test) # Then re-create the subtree, and check again (prim resync create test) for prim_path in change_prim_paths: prim = stage.GetPrimAtPath(prim_path) title = f"change_prim_paths={[prim_path]}, track_prim_paths={tracked_pair_paths}, debug_stamp={debug_stamp}..." with self.subTest(f"Change scale attr, {title}"): # Change the scale UsdGeom.XformCommonAPI(prim).SetScale(test_scale) # Check that the change is picked up debug_stamp += 1 await check_bundles(prim, tracked_pair_paths, debug_stamp) with self.subTest(f"Delete scale attr, {title}"): # Delete the scale property. # This should reset it back to one. prim.RemoveProperty("xformOp:scale") # Check that the change is picked up debug_stamp += 1 await check_bundles(prim, tracked_pair_paths, debug_stamp) with self.subTest(f"Create scale attr, {title}"): # Create the scale property back, and change it. prim.CreateAttribute("xformOp:scale", Sdf.ValueTypeNames.Float3, False).Set(test_scale) # Check that the change is picked up debug_stamp += 1 await check_bundles(prim, tracked_pair_paths, debug_stamp) with self.subTest(f"Delete prim, {title}"): stage.RemovePrim(prim_path) # The deleted prim might be a tracked one valid_tracked_pair_paths = [ path for path in tracked_pair_paths if stage.GetPrimAtPath(path).IsValid() ] # Check that the change is picked up debug_stamp += 1 # NOTE: If the deleted prim was a tracked prim, # the ReadPrimsV2 node will currently do a full update await check_bundles( prim, valid_tracked_pair_paths, debug_stamp if len(valid_tracked_pair_paths) == 2 else 0, ) with self.subTest(f"Create prim, {title}"): # Restore deleted sub-tree (and reset scale) define_hierarchies(prim_path) # Check that the change is picked up (wo stamp checking for now) # TODO: We should also do stamp checking here, but couldn't get that working yet. await check_bundles(prim, tracked_pair_paths, 0) return debug_stamp # Iterate over all possible pairs of tree prims for i in range(len(track_prim_paths) - 1): for j in range(i + 1, len(track_prim_paths)): debug_stamp = await run_sub_tests(i, j, debug_stamp)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_bundle_attribute_nodes.py
"""Basic tests of the bundled attribute nodes""" import numpy import omni.graph.core as og import omni.graph.core.tests as ogts # ====================================================================== class TestBundleAttributeNodes(ogts.OmniGraphTestCase): """Run a simple unit test that exercises graph functionality""" # ---------------------------------------------------------------------- def compare_values(self, expected_value, actual_value, decimal, error_message): """Generic assert comparison which uses introspection to choose the correct method to compare the data values""" # dbg(f"----Comparing {actual_value} with expected {expected_value}") if isinstance(expected_value, (list, tuple)): # If the numpy module is not available array values cannot be tested so silently succeed if numpy is None: return # Values are returned as numpy arrays so convert the expected value and use numpy to do the comparison numpy.testing.assert_almost_equal( actual_value, numpy.array(expected_value), decimal=decimal, err_msg=error_message ) elif isinstance(expected_value, float): self.assertAlmostEqual(actual_value, expected_value, decimal, error_message) else: self.assertEqual(actual_value, expected_value, error_message) # ---------------------------------------------------------------------- async def test_bundle_functions(self): """Test bundle functions""" await ogts.load_test_file("TestBundleAttributeNodes.usda", use_caller_subdirectory=True) # These prims are known to be in the file bundle_prim = "/defaultPrim/inputData" # However since we no longer spawn OgnPrim for bundle-connected prims, we don't expect it to be # in OG. (Verified in a different test) # self.assertEqual([], ogts.verify_node_existence([bundle_prim])) contexts = og.get_compute_graph_contexts() self.assertIsNotNone(contexts) expected_values = { "boolAttr": (1, ("bool", og.BaseDataType.BOOL, 1, 0, og.AttributeRole.NONE)), "intAttr": (1, ("int", og.BaseDataType.INT, 1, 0, og.AttributeRole.NONE)), "int64Attr": (1, ("int64", og.BaseDataType.INT64, 1, 0, og.AttributeRole.NONE)), "uint64Attr": (1, ("uint64", og.BaseDataType.UINT64, 1, 0, og.AttributeRole.NONE)), "halfAttr": (1, ("half", og.BaseDataType.HALF, 1, 0, og.AttributeRole.NONE)), "floatAttr": (1, ("float", og.BaseDataType.FLOAT, 1, 0, og.AttributeRole.NONE)), "doubleAttr": (1, ("double", og.BaseDataType.DOUBLE, 1, 0, og.AttributeRole.NONE)), "tokenAttr": (1, ("token", og.BaseDataType.TOKEN, 1, 0, og.AttributeRole.NONE)), "stringAttr": (10, ("string", og.BaseDataType.UCHAR, 1, 1, og.AttributeRole.TEXT)), # We don't read relationship attributes in OgnReadPrimBundle # "relSingleAttr": (1, ("rel", og.BaseDataType.RELATIONSHIP, 1, 0, og.AttributeRole.NONE)), "int2Attr": (1, ("int[2]", og.BaseDataType.INT, 2, 0, og.AttributeRole.NONE)), "half2Attr": (1, ("half[2]", og.BaseDataType.HALF, 2, 0, og.AttributeRole.NONE)), "float2Attr": (1, ("float[2]", og.BaseDataType.FLOAT, 2, 0, og.AttributeRole.NONE)), "double2Attr": (1, ("double[2]", og.BaseDataType.DOUBLE, 2, 0, og.AttributeRole.NONE)), "int3Attr": (1, ("int[3]", og.BaseDataType.INT, 3, 0, og.AttributeRole.NONE)), "half3Attr": (1, ("half[3]", og.BaseDataType.HALF, 3, 0, og.AttributeRole.NONE)), "float3Attr": (1, ("float[3]", og.BaseDataType.FLOAT, 3, 0, og.AttributeRole.NONE)), "double3Attr": (1, ("double[3]", og.BaseDataType.DOUBLE, 3, 0, og.AttributeRole.NONE)), "int4Attr": (1, ("int[4]", og.BaseDataType.INT, 4, 0, og.AttributeRole.NONE)), "half4Attr": (1, ("half[4]", og.BaseDataType.HALF, 4, 0, og.AttributeRole.NONE)), "float4Attr": (1, ("float[4]", og.BaseDataType.FLOAT, 4, 0, og.AttributeRole.NONE)), "double4Attr": (1, ("double[4]", og.BaseDataType.DOUBLE, 4, 0, og.AttributeRole.NONE)), "boolArrayAttr": (65, ("bool[]", og.BaseDataType.BOOL, 1, 1, og.AttributeRole.NONE)), "intArrayAttr": (5, ("int[]", og.BaseDataType.INT, 1, 1, og.AttributeRole.NONE)), "floatArrayAttr": (5, ("float[]", og.BaseDataType.FLOAT, 1, 1, og.AttributeRole.NONE)), "doubleArrayAttr": (5, ("double[]", og.BaseDataType.DOUBLE, 1, 1, og.AttributeRole.NONE)), "tokenArrayAttr": (3, ("token[]", og.BaseDataType.TOKEN, 1, 1, og.AttributeRole.NONE)), "int2ArrayAttr": (5, ("int[2][]", og.BaseDataType.INT, 2, 1, og.AttributeRole.NONE)), "float2ArrayAttr": (5, ("float[2][]", og.BaseDataType.FLOAT, 2, 1, og.AttributeRole.NONE)), "double2ArrayAttr": (5, ("double[2][]", og.BaseDataType.DOUBLE, 2, 1, og.AttributeRole.NONE)), "point3fArrayAttr": (3, ("pointf[3][]", og.BaseDataType.FLOAT, 3, 1, og.AttributeRole.POSITION)), "qhAttr": (1, ("quath[4]", og.BaseDataType.HALF, 4, 0, og.AttributeRole.QUATERNION)), "qfAttr": (1, ("quatf[4]", og.BaseDataType.FLOAT, 4, 0, og.AttributeRole.QUATERNION)), "qdAttr": (1, ("quatd[4]", og.BaseDataType.DOUBLE, 4, 0, og.AttributeRole.QUATERNION)), "m2dAttr": (1, ("matrixd[2]", og.BaseDataType.DOUBLE, 4, 0, og.AttributeRole.MATRIX)), "m3dAttr": (1, ("matrixd[3]", og.BaseDataType.DOUBLE, 9, 0, og.AttributeRole.MATRIX)), "m4dAttr": (1, ("matrixd[4]", og.BaseDataType.DOUBLE, 16, 0, og.AttributeRole.MATRIX)), } for context in contexts: bundle = context.get_bundle(bundle_prim) attr_names, attr_types = bundle.get_attribute_names_and_types() attr_count = bundle.get_attribute_data_count() self.assertEqual(attr_count, len(expected_values)) attr_names, attr_types = bundle.get_attribute_names_and_types() self.assertCountEqual(attr_names, list(expected_values.keys())) # The name map has to be created because the output bundle contents are not in a defined order but the # different array elements do correspond to each other. By creating a mapping from the name to the index # at which it was found the other elements can be mapped exactly. expected_types = [expected_values[name][1] for name in attr_names] expected_counts = [expected_values[name][0] for name in attr_names] type_name_and_properties = [] new_constructed_types = [] for attr_type in attr_types: base_type = attr_type.base_type tuple_count = attr_type.tuple_count array_depth = attr_type.array_depth role = attr_type.role type_name_and_properties.append( (attr_type.get_ogn_type_name(), base_type, tuple_count, array_depth, role) ) new_constructed_types.append(og.Type(base_type, tuple_count, array_depth, role)) self.assertCountEqual(type_name_and_properties, expected_types) self.assertEqual(new_constructed_types, attr_types) attrs = bundle.get_attribute_data() attr_elem_counts = [] for attr in attrs: try: elem_count = og.Controller.get_array_size(attr) except AttributeError: elem_count = 1 attr_elem_counts.append(elem_count) self.assertEqual(attr_elem_counts, expected_counts)
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/test_settings_removal.py
"""Suite of tests to exercise the implications of the removal of various settings.""" from typing import Any, Dict, List import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from pxr import Gf, OmniGraphSchema KEYS = og.Controller.Keys """Shorten keyword names""" FILE_FORMAT_VERSION_INTRODUCING_SCHEMAS = Gf.Vec2i(1, 4) """File format version where the schema prims became the default""" CURRENT_FORMAT_VERSION = Gf.Vec2i(1, 7) """The current version of settings""" # ============================================================================================================== def _verify_stage_contents(expected_contents: Dict[str, str], expected_inactive_prims: List[str] = None) -> List[str]: """Confirm that a stage contains the hierarchical prim type structure passed in. Args: expected_contents: Dictionary of primPath:primType of stage contents that were expected. e.g. a two level prim hierarchy with an Xform and a Mesh would be passd in as {"/MyXform": "Xform", "/MyXform/MyMesh": "Mesh"} expected_inactive_prims: A list of keys to the above whose prims are also expected to be inactive Returns: A list of a description of the differences found (may not be complete), or [] if all was as expected """ stage = omni.usd.get_context().get_stage() if stage is None: return [] if not expected_contents else [f"Stage is empty but expected to find {expected_contents}"] # Copy of the dictionary to removed found prims from that should be empty when done inactive_list = expected_inactive_prims or [] not_found = expected_contents.copy() errors_found = [] iterator = iter(stage.TraverseAll()) for prim in iterator: prim_path = str(prim.GetPrimPath()) prim_type = prim.GetTypeName() # Ignore these boilerplate prims if prim_path.startswith("/Omniverse") or prim_path.startswith("/Render"): continue if prim_path not in expected_contents: errors_found.append( f"Prim '{prim_path}' of type '{prim_type}' was not in the expected list {expected_contents}" ) continue if expected_contents[prim_path] != prim_type: errors_found.append( f"Prim '{prim_path}' expected to be of type '{expected_contents[prim_path]}' but was '{prim_type}'" ) continue if prim_path in inactive_list and prim.IsActive(): errors_found.append(f"Prim '{prim_path}' of type '{prim_type}' expected to be inactive but was not") if prim.GetTypeName() == "OmniGraphNode": # Confirm that the expected schema attributes exist on the node as non-custom types node_prim = OmniGraphSchema.OmniGraphNode(prim) if not node_prim: errors_found.append(f"Prim '{prim_path}' could not be interpreted as OmniGraphNode") else: type_attr = node_prim.GetNodeTypeAttr() if not type_attr.IsValid() or type_attr.IsCustom(): errors_found.append(f"Node '{prim_path}' did not have schema attribute node:type") version_attr = node_prim.GetNodeTypeVersionAttr() if not version_attr.IsValid() or version_attr.IsCustom(): errors_found.append(f"Node '{prim_path}' did not have schema attribute node:typeVersion") elif prim.GetTypeName() == "OmniGraph": # Confirm that the expected schema attributes exist on the graph as non-custom types graph_prim = OmniGraphSchema.OmniGraph(prim) if not graph_prim: errors_found.append(f"Prim '{prim_path}' could not be interpreted as OmniGraph") else: evaluator_attr = graph_prim.GetEvaluatorTypeAttr() if not evaluator_attr.IsValid() or evaluator_attr.IsCustom(): errors_found.append(f"Graph '{prim_path}' did not have schema attribute evaluatorType") version_attr = graph_prim.GetFileFormatVersionAttr() if not version_attr.IsValid() or version_attr.IsCustom(): errors_found.append(f"Graph '{prim_path}' did not have schema attribute fileFormatVersion") backing_attr = graph_prim.GetFabricCacheBackingAttr() if not backing_attr.IsValid() or backing_attr.IsCustom(): errors_found.append(f"Graph '{prim_path}' did not have schema attribute fabricCacheBacking") pipeline_attr = graph_prim.GetPipelineStageAttr() if not pipeline_attr.IsValid() or pipeline_attr.IsCustom(): errors_found.append(f"Graph '{prim_path}' did not have schema attribute pipelineStage") evaluation_mode_attr = graph_prim.GetEvaluationModeAttr() if not evaluation_mode_attr.IsValid() or evaluation_mode_attr.IsCustom(): errors_found.append(f"Graph '{prim_path}' did not have schema attribute evaluationMode") del not_found[prim_path] for prim_path, prim_type in not_found.items(): errors_found.append(f"Prim '{prim_path}' of type '{prim_type}' was expected but not found") return errors_found # ============================================================================================================== def _verify_graph_settings(graph_prim_path: str, expected_settings: Dict[str, Any]): """Verify that the graph prim has the expected settings (after conversion or loading of a new file) Args: graph_prim_path: Path to the graph's prim expected_settings: Dictionary of attributeName:expectedValue for all of the settings Returns: List of descriptions of the differences found or [] if all was as expected """ errors_found = [] stage = omni.usd.get_context().get_stage() graph_prim = stage.GetPrimAtPath(graph_prim_path) if stage is not None else None if graph_prim is None: return [f"Could not find prim `{graph_prim_path}` that is supposed to hold the settings"] for attribute_name, expected_value in expected_settings.items(): attribute = graph_prim.GetAttribute(attribute_name) if not attribute.IsValid(): errors_found.append(f"Could not find setting attribute '{attribute_name}' on prim '{graph_prim_path}'") else: actual_value = attribute.Get() if actual_value != expected_value: errors_found.append( f"Expected value of setting '{attribute_name}' was '{expected_value}', got '{actual_value}'" ) return errors_found # ============================================================================================================== class TestSettingsRemoval(ogts.OmniGraphTestCase): """Wrapper for tests to verify backward compatibility for the removal of the settings prim""" # Settings values when nothing is specified. DEFAULT_SETTINGS = { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "Shared", "pipelineStage": "pipelineStageSimulation", "evaluationMode": "Automatic", } # ---------------------------------------------------------------------- async def test_create_graph(self): """Test creation of a simple graph""" og.Controller.edit("/SimpleGraph", {KEYS.CREATE_NODES: ("NoOp", "omni.graph.nodes.Noop")}) await og.Controller.evaluate() results = _verify_stage_contents({"/SimpleGraph": "OmniGraph", "/SimpleGraph/NoOp": "OmniGraphNode"}) self.assertEqual([], results) results = _verify_graph_settings("/SimpleGraph", self.DEFAULT_SETTINGS) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_settings_1_1(self): """Test that a v1.1 file with a graph and no settings is converted correctly""" (result, error) = await ogts.load_test_file("SettingsMissingFromGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/defaultGraph": "OmniGraph", } ) self.assertEqual([], results) results = _verify_graph_settings("/defaultGraph", self.DEFAULT_SETTINGS) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_settings_post_schema(self): """Test that an updated file without explicit settings has the default values""" (result, error) = await ogts.load_test_file( "SettingsMissingFromGraph_postSchema.usda", use_caller_subdirectory=True ) self.assertTrue(result, error) results = _verify_stage_contents( { "/defaultGraph": "OmniGraph", } ) self.assertEqual([], results) results = _verify_graph_settings("/defaultGraph", self.DEFAULT_SETTINGS) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_graph_1_0(self): """Test that a v1.0 file that has settings data without FC and pipeline settings is converted correctly""" (result, error) = await ogts.load_test_file("SettingsWithoutGraph_v1_0.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/__graphUsingSchemas": "OmniGraph", "/__graphUsingSchemas/NoOp": "OmniGraphNode", "/__graphUsingSchemas/computegraphSettings": "ComputeGraphSettings", }, ["/__graphUsingSchemas/computegraphSettings"], ) self.assertEqual([], results) results = _verify_graph_settings( "/__graphUsingSchemas", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "Shared", "pipelineStage": "pipelineStageSimulation", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_graph_1_1(self): """Test that a v1.1 file with an implicit graph is converted correctly""" (result, error) = await ogts.load_test_file("SettingsWithoutGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/__graphUsingSchemas": "OmniGraph", "/__graphUsingSchemas/NoOp": "OmniGraphNode", "/__graphUsingSchemas/computegraphSettings": "ComputeGraphSettings", }, ["/__graphUsingSchemas/computegraphSettings"], ) self.assertEqual([], results) results = _verify_graph_settings( "/__graphUsingSchemas", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_graph_over_1_1(self): """Test that a v1.1 file with a layer in it is converted correctly. The file has two layers of graph nodes because the layered graph nodes will not be composed unless there is a node at the top level.""" (result, error) = await ogts.load_test_file( "SettingsWithoutGraphWithOver_v1_1.usda", use_caller_subdirectory=True ) self.assertTrue(result, error) results = _verify_stage_contents( { "/World": "World", "/World/layeredGraph": "", "/World/layeredGraph/innerGraph": "OmniGraph", "/World/layeredGraph/innerGraph/NoOpOver": "OmniGraphNode", "/World/layeredGraph/innerGraph/computegraphSettings": "ComputeGraphSettings", "/World/__graphUsingSchemas": "OmniGraph", "/World/__graphUsingSchemas/NoOp": "OmniGraphNode", }, [ "/World/layeredGraph/innerGraph/computegraphSettings", ], ) self.assertEqual([], results) results = _verify_graph_settings( "/World/__graphUsingSchemas", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "Shared", "pipelineStage": "pipelineStageSimulation", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) results = _verify_graph_settings( "/World/layeredGraph/innerGraph", { "evaluator:type": "push", "fileFormatVersion": FILE_FORMAT_VERSION_INTRODUCING_SCHEMAS, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_graph_child_1_1(self): """Test that a v1.1 file with a graph underneath a World prim is converted correctly""" (result, error) = await ogts.load_test_file("SettingsWithChildGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/World": "World", "/World/__graphUsingSchemas": "OmniGraph", "/World/__graphUsingSchemas/NoOp": "OmniGraphNode", "/World/__graphUsingSchemas/computegraphSettings": "ComputeGraphSettings", }, ["/World/__graphUsingSchemas/computegraphSettings"], ) self.assertEqual([], results) results = _verify_graph_settings( "/World/__graphUsingSchemas", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_with_graph_1_1(self): """Test that a v1.1 file with an explicit graph and settings is converted correctly""" (result, error) = await ogts.load_test_file("SettingsWithGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/pushGraph": "OmniGraph", "/pushGraph/NoOp": "OmniGraphNode", "/pushGraph/computegraphSettings": "ComputeGraphSettings", }, ["/pushGraph/computegraphSettings"], ) self.assertEqual([], results) results = _verify_graph_settings( "/pushGraph", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_with_bad_backing_name(self): """Test that a file using the backing name with a typo gets the correct name""" (result, error) = await ogts.load_test_file("SettingsWithBadBackingName.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/pushGraph": "OmniGraph", "/pushGraph/NoOp": "OmniGraphNode", "/pushGraph/computegraphSettings": "ComputeGraphSettings", }, ["/pushGraph/computegraphSettings"], ) self.assertEqual([], results) results = _verify_graph_settings( "/pushGraph", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_with_graph_post_schema(self): """Test that an updated file with a graph and a node is read safely""" (result, error) = await ogts.load_test_file("SettingsWithGraph_postSchema.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents({"/pushGraph": "OmniGraph", "/pushGraph/NoOp": "OmniGraphNode"}) self.assertEqual([], results) results = _verify_graph_settings( "/pushGraph", { "evaluator:type": "push", "fileFormatVersion": CURRENT_FORMAT_VERSION, "fabricCacheBacking": "StageWithHistory", "pipelineStage": "pipelineStagePreRender", "evaluationMode": "Automatic", }, ) self.assertEqual([], results) # ============================================================================================================== class TestSettingsPreservation(ogts.OmniGraphTestCase): """Wrapper for tests to confirm old files can still be safely loaded""" # ---------------------------------------------------------------------- async def test_no_settings_1_1(self): """Test that a v1.1 file with a graph and no settings is read safely""" (result, error) = await ogts.load_test_file("SettingsMissingFromGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/defaultGraph": "OmniGraph", } ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_no_graph_1_1(self): """Test that a v1.1 file with a scene with a global implicit graph is read safely""" (result, error) = await ogts.load_test_file("SettingsWithoutGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/__graphUsingSchemas/computegraphSettings": "ComputeGraphSettings", "/__graphUsingSchemas/NoOp": "OmniGraphNode", "/__graphUsingSchemas": "OmniGraph", } ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_with_graph_1_1(self): """Test that a v1.1 file with a graph and settings is read safely""" (result, error) = await ogts.load_test_file("SettingsWithGraph_v1_1.usda", use_caller_subdirectory=True) self.assertTrue(result, error) results = _verify_stage_contents( { "/pushGraph": "OmniGraph", "/pushGraph/computegraphSettings": "ComputeGraphSettings", "/pushGraph/NoOp": "OmniGraphNode", } ) self.assertEqual([], results) # ---------------------------------------------------------------------- async def test_with_bad_connections(self): """Test that a file with old prims fails migration""" (result, error) = await ogts.load_test_file("SettingsWithBadConnections.usda", use_caller_subdirectory=True) self.assertTrue(result, error) stage = omni.usd.get_context().get_stage() graph_prim = stage.GetPrimAtPath("/pushGraph") self.assertTrue(graph_prim.IsValid()) self.assertEqual("OmniGraph", graph_prim.GetTypeName()) settings_prim = stage.GetPrimAtPath("/pushGraph/computegraphSettings") self.assertTrue(settings_prim.IsValid()) self.assertEqual("ComputeGraphSettings", settings_prim.GetTypeName()) node_prim = stage.GetPrimAtPath("/pushGraph/BundleInspector") self.assertTrue(node_prim.IsValid()) self.assertEqual("OmniGraphNode", node_prim.GetTypeName())
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithSubgraph_v1_3.usda
#usda 1.0 ( ) def OmniGraph "pullGraph" { custom token evaluator:type = "pull" custom int2 fileFormatVersion = (1, 3) custom token fabricCacheBacking = "StageWithHistory" custom token pipelineStage = "pipelineStagePreRender" def OmniGraph "innerExecutionGraph" { custom token evaluator:type = "execution" custom int2 fileFormatVersion = (1, 3) custom token fabricCacheBacking = "StageWithoutHistory" custom token pipelineStage = "pipelineStagePostRender" def OmniGraphNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/skelcylinder_custom_joint_ordering.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 30 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) over "Root" ( prepend references = @./skelcylinder.usda@ ) { over "group1" { over "pCylinder1_Skinned" { uniform token[] skel:joints = ["joint1/joint2/joint3/joint4/joint5", "joint1/joint2/joint3/joint4", "joint1/joint2/joint3", "joint1/joint2", "joint1"] } over "pCylinder1_Baked" { float3[] extent.timeSamples = { 1: [(-2.0000007, -2.0000007, -0.0000012936636), (2.0000012, 2.0000017, 10.000001)], 2: [(-2.0358748, -2.0000007, -0.03492629), (2.0989828, 2.0000017, 10.025049)], 3: [(-2.1234293, -2.0000007, -0.12563202), (2.35966, 2.0000017, 10.081305)], 4: [(-2.2318554, -2.0000007, -0.25168332), (2.7245367, 2.0000017, 10.134944)], 5: [(-2.3333895, -2.0000007, -0.39550674), (3.134993, 2.0000017, 10.156088)], 6: [(-2.4063358, -2.0000007, -0.5436281), (3.5363593, 2.0000017, 10.129172)], 7: [(-2.4350772, -2.0000007, -0.6863403), (3.8835309, 2.0000017, 10.057983)], 8: [(-2.4067845, -2.0000007, -0.8153117), (4.144271, 2.0000017, 9.964603)], 9: [(-2.3053782, -2.0000007, -0.918315), (4.2972655, 2.0000017, 9.882551)], 10: [(-2.1040845, -2.0000007, -0.97002983), (4.323451, 2.0000017, 9.845316)], 11: [(-1.7187531, -2.0000007, -0.88828737), (4.1452928, 2.0000017, 9.887953)], 12: [(-1.0895, -2.0000007, -0.56096363), (3.7019436, 2.0000017, 9.969487)], 13: [(-1.0309465, -2.0000007, -0.37831083), (3.7302036, 2.0000017, 9.980944)], 14: [(-1.8370928, -2.0000007, -0.35360909), (4.4722056, 2.0000017, 9.957078)], 15: [(-2.7524314, -2.0000007, -0.04022499), (4.9499846, 2.0000017, 10.1434965)], 16: [(-3.5321684, -2.0000007, 0.52226263), (5.0782228, 2.0000017, 10.098247)], 17: [(-4.10116, -2.0000007, 1.2121943), (4.890636, 2.0000017, 9.857747)], 18: [(-4.4696712, -2.0000007, 1.8702805), (4.527172, 2.0000017, 9.525778)], 19: [(-4.668264, -2.0000007, 2.3469365), (4.181203, 2.0000017, 9.237431)], 20: [(-4.7284646, -2.0000007, 2.5260365), (4.035086, 2.0000017, 9.11937)], 21: [(-4.695694, -2.0000007, 2.4458725), (4.111524, 2.0000017, 9.181108)], 22: [(-4.5970783, -2.0000007, 2.2297494), (4.3087916, 2.0000017, 9.339805)], 23: [(-4.4266386, -2.0000007, 1.9164883), (4.5711107, 2.0000017, 9.549072)], 24: [(-4.181214, -2.0000007, 1.5476432), (4.8415604, 2.0000017, 9.761704)], 25: [(-3.8875756, -2.0000007, 1.165305), (5.0725684, 2.0000017, 9.938747)], 26: [(-3.5481224, -2.0000007, 0.8078814), (5.234558, 2.0000017, 10.056815)], 27: [(-3.1990852, -2.0000007, 0.50558525), (5.3206525, 2.0000017, 10.111921)], 28: [(-2.8878634, -2.0000007, 0.27798694), (5.3456645, 2.0000017, 10.118416)], 29: [(-2.6657662, -2.0000007, 0.13551468), (5.338901, 2.0000017, 10.102773)], 30: [(-2.581906, -2.0000007, 0.085589044), (5.3315725, 2.0000017, 10.092934)], } point3f[] points.timeSamples = { 1: [(0.95105845, 0.30901724, -0.0000012904308), (0.80901885, 0.5877857, -0.0000012810511), (0.58778685, 0.80901766, -0.0000012664497), (0.3090184, 0.9510572, -0.0000012480659), (0.0000011732025, 1.0000007, -0.00000122771), (-0.309016, 0.9510572, -0.0000012073809), (-0.5877843, 0.8090175, -0.000001189068), (-0.8090161, 0.58778554, -0.0000011745543), (-0.95105577, 0.30901712, -0.0000011652455), (-0.99999917, -6.8176083e-16, -0.0000011620397), (-0.95105577, -0.30901712, -0.0000011652455), (-0.80901617, -0.58778554, -0.0000011745544), (-0.5877842, -0.8090173, -0.000001189068), (-0.30901587, -0.95105684, -0.0000012073809), (0.0000011434001, -1.0000004, -0.00000122771), (0.3090182, -0.95105684, -0.0000012480659), (0.5877865, -0.80901724, -0.0000012664497), (0.80901825, -0.5877855, -0.0000012810511), (0.95105785, -0.30901706, -0.0000012904308), (1.0000013, -7.0049535e-16, -0.0000012936636), (1.9021153, 0.6180344, -0.0000012378541), (1.6180363, 1.1755714, -0.0000012205767), (1.1755724, 1.6180352, -0.0000011938453), (0.61803544, 1.9021144, -0.0000011604876), (0.0000010695001, 2.0000014, -0.0000011239441), (-0.6180333, 1.9021143, -0.0000010878638), (-1.1755701, 1.6180351, -0.0000010557189), (-1.6180335, 1.175571, -0.0000010304842), (-1.9021128, 0.6180343, -0.0000010144124), (-1.9999998, -6.042807e-16, -0.000001008898), (-1.9021128, -0.6180343, -0.0000010144124), (-1.6180334, -1.1755708, -0.0000010304842), (-1.17557, -1.6180346, -0.000001055719), (-0.6180332, -1.9021139, -0.000001087864), (0.0000010098956, -2.0000007, -0.0000011239442), (0.618035, -1.9021137, -0.0000011604877), (1.1755718, -1.6180344, -0.0000011938454), (1.6180353, -1.1755707, -0.0000012205768), (1.9021146, -0.61803424, -0.0000012378545), (2.0000012, -6.560342e-16, -0.0000012438285), (1.9021152, 0.6180345, 0.999999), (1.6180362, 1.1755712, 0.999999), (1.1755722, 1.6180352, 0.99999905), (0.6180352, 1.9021144, 0.999999), (8.400518e-7, 2.0000017, 0.9999992), (-0.6180335, 1.9021144, 0.99999917), (-1.1755702, 1.618035, 0.9999991), (-1.6180338, 1.175571, 0.99999917), (-1.902113, 0.61803424, 0.9999993), (-1.9999999, -4.3637655e-16, 0.99999917), (-1.902113, -0.61803424, 0.9999993), (-1.6180339, -1.175571, 0.9999993), (-1.17557, -1.6180346, 0.9999991), (-0.6180333, -1.9021137, 0.9999992), (7.804472e-7, -2.0000007, 0.99999905), (0.61803484, -1.9021136, 0.99999905), (1.1755714, -1.6180342, 0.99999905), (1.6180351, -1.1755707, 0.999999), (1.902114, -0.6180341, 0.999999), (2.000001, -4.9928627e-16, 0.99999905), (1.9021149, 0.6180345, 1.9999994), (1.6180358, 1.1755713, 1.9999994), (1.1755718, 1.618035, 1.9999993), (0.6180349, 1.9021144, 1.9999994), (5.674317e-7, 2.0000012, 1.9999993), (-0.61803377, 1.9021143, 1.9999994), (-1.1755705, 1.6180348, 1.9999993), (-1.618034, 1.1755708, 1.9999994), (-1.9021131, 0.61803424, 1.9999993), (-2.0000002, -2.4489067e-16, 1.9999993), (-1.9021131, -0.61803424, 1.9999993), (-1.618034, -1.1755708, 1.9999995), (-1.1755702, -1.6180345, 1.9999993), (-0.6180335, -1.9021136, 1.9999994), (5.078272e-7, -2.0000005, 1.9999993), (0.61803454, -1.9021136, 1.9999994), (1.1755712, -1.6180344, 1.9999994), (1.6180347, -1.1755707, 1.9999993), (1.9021137, -0.6180341, 1.9999993), (2.0000007, -3.160492e-16, 1.9999993), (1.9021146, 0.61803436, 2.999999), (1.6180357, 1.1755714, 2.9999995), (1.1755719, 1.6180352, 2.9999998), (0.6180347, 1.9021143, 2.9999995), (4.026701e-7, 2.0000014, 2.9999998), (-0.618034, 1.9021143, 2.9999995), (-1.1755707, 1.6180348, 2.9999995), (-1.6180341, 1.1755708, 2.9999995), (-1.9021133, 0.6180342, 2.9999998), (-2.0000002, -1.2156265e-16, 2.9999998), (-1.9021133, -0.6180342, 2.9999998), (-1.618034, -1.1755707, 2.9999995), (-1.1755702, -1.6180345, 2.9999995), (-0.61803377, -1.9021136, 2.9999995), (3.430654e-7, -2.0000005, 2.9999995), (0.6180343, -1.9021134, 2.9999995), (1.1755711, -1.6180344, 2.9999993), (1.6180344, -1.1755707, 2.9999995), (1.9021138, -0.6180341, 3.0000002), (2.0000007, -1.9078607e-16, 2.9999998), (1.9021146, 0.61803436, 3.9999995), (1.6180353, 1.1755714, 3.9999995), (1.1755716, 1.6180351, 3.9999995), (0.61803454, 1.9021142, 3.9999995), (2.501556e-7, 2.0000012, 3.9999993), (-0.61803406, 1.9021143, 3.9999993), (-1.1755708, 1.6180348, 3.9999998), (-1.6180344, 1.1755711, 3.9999995), (-1.9021134, 0.6180342, 3.9999995), (-2.0000002, 1.1856403e-18, 3.9999995), (-1.9021134, -0.6180342, 3.9999995), (-1.6180342, -1.1755708, 3.9999995), (-1.1755705, -1.6180344, 3.9999993), (-0.6180339, -1.9021136, 3.9999993), (1.9055095e-7, -2.0000002, 3.9999993), (0.61803424, -1.9021136, 3.9999998), (1.175571, -1.6180344, 3.9999998), (1.6180344, -1.1755707, 3.9999998), (1.9021134, -0.61803406, 3.9999995), (2.0000002, -7.857519e-17, 3.9999995), (1.9021144, 0.61803436, 5), (1.6180353, 1.1755712, 5), (1.1755713, 1.6180348, 5), (0.6180344, 1.9021142, 4.9999995), (9.240576e-8, 2.000001, 4.9999995), (-0.61803424, 1.9021139, 4.9999995), (-1.175571, 1.6180346, 4.9999995), (-1.6180345, 1.1755711, 5), (-1.9021137, 0.6180342, 4.9999995), (-2.0000007, 1.2947218e-16, 4.9999995), (-1.9021137, -0.6180342, 4.9999995), (-1.6180342, -1.1755707, 5), (-1.1755707, -1.6180344, 4.9999995), (-0.61803406, -1.9021134, 4.9999995), (3.280108e-8, -2.0000002, 4.9999995), (0.61803406, -1.9021133, 4.9999995), (1.1755705, -1.618034, 4.999999), (1.618034, -1.1755705, 4.999999), (1.9021133, -0.61803406, 5), (2.0000002, 3.416541e-17, 5), (1.9021143, 0.61803436, 6.0000005), (1.6180352, 1.1755713, 6.0000005), (1.1755712, 1.618035, 6.0000005), (0.6180343, 1.902114, 6.0000005), (4.048806e-8, 2.000001, 6.0000005), (-0.6180343, 1.902114, 6.0000005), (-1.175571, 1.6180346, 6), (-1.6180344, 1.1755708, 5.9999995), (-1.9021134, 0.6180342, 5.9999995), (-2.0000005, 1.9142925e-16, 5.999999), (-1.9021134, -0.6180342, 5.9999995), (-1.6180344, -1.1755708, 5.999999), (-1.1755708, -1.6180342, 5.9999995), (-0.61803406, -1.9021133, 5.9999995), (-1.9116602e-8, -2.0000002, 5.9999995), (0.61803395, -1.9021132, 5.9999995), (1.1755706, -1.6180341, 5.9999995), (1.618034, -1.1755707, 5.9999995), (1.9021132, -0.61803395, 6), (2.0000002, 8.96232e-17, 6.000001), (1.9021143, 0.61803436, 7), (1.6180348, 1.1755712, 7), (1.1755712, 1.6180348, 7), (0.6180343, 1.902114, 7), (3.1350357e-8, 2.000001, 7), (-0.61803424, 1.9021138, 7), (-1.175571, 1.6180346, 6.9999995), (-1.6180345, 1.1755708, 6.9999995), (-1.9021134, 0.6180341, 6.999999), (-2.0000005, 2.2622143e-16, 6.999999), (-1.9021134, -0.6180341, 6.999999), (-1.6180345, -1.1755707, 6.999999), (-1.1755706, -1.6180341, 6.999999), (-0.61803406, -1.9021134, 7), (-2.8254302e-8, -2.0000005, 7.000001), (0.618034, -1.9021136, 7.0000005), (1.1755707, -1.6180342, 7.000001), (1.6180342, -1.1755707, 7.0000005), (1.902113, -0.618034, 6.9999995), (2, 1.2269505e-16, 6.9999995), (1.9021143, 0.61803436, 8), (1.6180351, 1.1755712, 8), (1.1755712, 1.6180351, 8), (0.61803424, 1.902114, 8), (2.980142e-8, 2.0000007, 7.999999), (-0.61803424, 1.9021143, 8.000001), (-1.1755708, 1.6180346, 7.999999), (-1.6180345, 1.1755708, 7.999999), (-1.9021134, 0.6180342, 7.9999995), (-2.0000005, 2.5636868e-16, 7.9999995), (-1.9021134, -0.6180342, 7.9999995), (-1.6180342, -1.1755707, 7.9999995), (-1.1755707, -1.6180342, 8), (-0.61803406, -1.9021132, 8), (-2.9803225e-8, -2.0000002, 7.9999995), (0.61803395, -1.9021132, 8), (1.1755705, -1.6180342, 8), (1.6180341, -1.1755705, 7.9999995), (1.9021131, -0.618034, 7.9999995), (2, 1.5201331e-16, 8), (1.9021144, 0.6180343, 9), (1.6180351, 1.1755712, 9), (1.1755712, 1.618035, 9), (0.61803424, 1.902114, 9), (3.0499987e-8, 2.000001, 9), (-0.61803424, 1.902114, 9.000001), (-1.175571, 1.6180347, 9.000002), (-1.6180344, 1.1755708, 9.000001), (-1.9021133, 0.6180341, 9.000001), (-2.0000005, 2.841107e-16, 9.000001), (-1.9021133, -0.6180341, 9.000001), (-1.6180341, -1.1755706, 9.000001), (-1.1755706, -1.6180344, 9), (-0.61803406, -1.9021134, 9), (-2.9104655e-8, -2.0000002, 9), (0.61803395, -1.9021133, 9), (1.1755704, -1.6180341, 9), (1.618034, -1.1755706, 9), (1.9021131, -0.618034, 9), (1.9999999, 1.7936383e-16, 9), (1.9021144, 0.6180344, 10), (1.6180352, 1.1755712, 10), (1.1755713, 1.6180352, 10.000001), (0.6180343, 1.902114, 10), (3.1474357e-8, 2.000001, 10), (-0.6180343, 1.902114, 10), (-1.1755708, 1.6180347, 10), (-1.6180344, 1.1755708, 10), (-1.9021136, 0.6180341, 10), (-2.0000005, 3.1082017e-16, 10), (-1.9021136, -0.6180341, 10), (-1.6180344, -1.1755707, 9.999999), (-1.1755706, -1.6180344, 10), (-0.61803406, -1.9021134, 10), (-2.813029e-8, -2.0000002, 10), (0.6180339, -1.9021132, 10), (1.1755706, -1.6180342, 10.000001), (1.6180341, -1.1755707, 10.000001), (1.9021131, -0.618034, 10.000001), (1.9999999, 2.0595797e-16, 10.000001), (0.9510571, 0.30901718, 10), (0.8090176, 0.5877856, 10), (0.5877856, 0.8090175, 10), (0.30901715, 0.951057, 10), (3.0253744e-8, 1.0000005, 10), (-0.30901712, 0.951057, 10), (-0.5877855, 0.80901736, 10), (-0.8090172, 0.5877854, 10), (-0.9510567, 0.30901706, 9.999999), (-1.0000002, 2.8529396e-16, 9.999999), (-0.9510567, -0.30901706, 9.999999), (-0.8090171, -0.58778536, 9.999999), (-0.58778536, -0.8090172, 10), (-0.30901703, -0.95105666, 10), (4.5142082e-10, -1.0000001, 10), (0.30901697, -0.9510566, 10), (0.58778536, -0.8090172, 10.000001), (0.8090171, -0.5877854, 10.000001), (0.9510565, -0.309017, 10), (1, 2.3278924e-16, 10), (0.0000011862414, -6.9890044e-16, -0.000001240754), (2.9290177e-8, 2.5955668e-16, 10)], 2: [(0.91474825, 0.30901724, -0.016552547), (0.7727304, 0.5877857, -0.014061525), (0.5515324, 0.80901766, -0.010181685), (0.27280673, 0.9510572, -0.005292828), (-0.03616306, 1.0000007, 0.0001264731), (-0.3451328, 0.9510572, 0.0055457326), (-0.6238584, 0.8090175, 0.0104344785), (-0.84505624, 0.58778554, 0.014314183), (-0.98707396, 0.30901712, 0.016805094), (-1.03601, -1.9538115e-16, 0.017663399), (-0.98707396, -0.30901712, 0.016805094), (-0.84505624, -0.58778554, 0.014314183), (-0.6238582, -0.8090173, 0.010434477), (-0.34513268, -0.95105684, 0.0055457302), (-0.036163088, -1.0000004, 0.0001264736), (0.27280653, -0.95105684, -0.005292825), (0.55153203, -0.80901724, -0.010181678), (0.7727298, -0.5877855, -0.014061516), (0.9147476, -0.30901706, -0.016552536), (0.96368355, -3.0016492e-16, -0.017410884), (1.8656441, 0.6180344, -0.033210523), (1.5816087, 1.1755714, -0.028231189), (1.1392123, 1.6180352, -0.020475898), (0.5817605, 1.9021144, -0.010704036), (-0.03617932, 2.0000014, 0.00012765752), (-0.65411925, 1.9021143, 0.010958826), (-1.2115709, 1.6180351, 0.020729307), (-1.6539665, 1.175571, 0.02848289), (-1.9380026, 0.6180343, 0.033460855), (-2.0358748, -1.2440235e-16, 0.035176117), (-1.9380026, -0.6180343, 0.033460855), (-1.6539664, -1.1755708, 0.028482886), (-1.2115706, -1.6180346, 0.020729303), (-0.65411913, -1.9021139, 0.010958823), (-0.03617938, -2.0000007, 0.00012765857), (0.5817602, -1.9021137, -0.01070403), (1.1392117, -1.6180344, -0.020475885), (1.5816073, -1.1755707, -0.02823117), (1.8656435, -0.61803424, -0.033210512), (1.963515, -3.2794741e-16, -0.03492629), (1.8831581, 0.6180345, 0.96664286), (1.5991223, 1.1755712, 0.97162116), (1.156726, 1.6180352, 0.9793748), (0.599274, 1.9021144, 0.98914486), (-0.01866618, 2.0000017, 0.99997467), (-0.6366063, 1.9021144, 1.0108038), (-1.1940581, 1.618035, 1.0205725), (-1.636454, 1.175571, 1.0283251), (-1.9204901, 0.61803424, 1.0333024), (-2.0183618, -5.7289464e-17, 1.0350174), (-1.9204901, -0.61803424, 1.0333024), (-1.636454, -1.175571, 1.0283253), (-1.1940577, -1.6180346, 1.0205725), (-0.6366061, -1.9021137, 1.0108038), (-0.018666236, -2.0000007, 0.9999744), (0.59927356, -1.9021136, 0.9891448), (1.1567252, -1.6180342, 0.9793749), (1.5991213, -1.1755707, 0.9716212), (1.883157, -0.6180341, 0.9666429), (1.9810292, -2.497384e-16, 0.96492755), (1.9006653, 0.6180345, 1.9664944), (1.6166296, 1.1755713, 1.9714719), (1.1742332, 1.618035, 1.9792242), (0.6167816, 1.9021144, 1.9889928), (-0.0011581316, 2.0000012, 1.9998213), (-0.6190979, 1.9021143, 2.0106494), (-1.1765493, 1.6180348, 2.0204175), (-1.618945, 1.1755708, 2.0281696), (-1.9029808, 0.61803424, 2.0331466), (-2.0008526, 1.4033342e-17, 2.0348616), (-1.9029808, -0.61803424, 2.0331466), (-1.618945, -1.1755708, 2.0281696), (-1.1765491, -1.6180345, 2.0204177), (-0.61909765, -1.9021136, 2.0106494), (-0.0011581911, -2.0000005, 1.9998213), (0.6167813, -1.9021136, 1.9889928), (1.1742326, -1.6180344, 1.9792242), (1.6166284, -1.1755707, 1.9714718), (1.900664, -0.6180341, 1.9664943), (1.998536, -1.5661331e-16, 1.9647793), (1.9181505, 0.61803436, 2.9663491), (1.6341151, 1.1755714, 2.9713256), (1.1917195, 1.6180352, 2.9790761), (0.6342682, 1.9021143, 2.988842), (0.016329065, 2.0000014, 2.9996684), (-0.6016102, 1.9021143, 3.0104947), (-1.1590612, 1.6180348, 3.0202603), (-1.6014565, 1.1755708, 3.0280106), (-1.8854917, 0.6180342, 3.0329869), (-1.9833636, 6.569439e-17, 3.0347016), (-1.8854917, -0.6180342, 3.0329869), (-1.6014563, -1.1755707, 3.0280106), (-1.1590607, -1.6180345, 3.0202603), (-0.60161, -1.9021136, 3.010494), (0.016329003, -2.0000005, 2.9996684), (0.6342679, -1.9021134, 2.9888425), (1.1917188, -1.6180344, 2.9790761), (1.634114, -1.1755707, 2.9713256), (1.9181498, -0.6180341, 2.9663503), (2.0160215, -8.8985265e-17, 2.9646354), (1.9355246, 0.61803436, 3.9662282), (1.6514891, 1.1755714, 3.9711998), (1.2090936, 1.6180351, 3.978943), (0.6516425, 1.9021142, 3.9887006), (0.033703387, 2.0000012, 3.9995167), (-0.5842357, 1.9021143, 4.010333), (-1.1416866, 1.6180348, 4.0200906), (-1.5840819, 1.1755711, 4.027834), (-1.868117, 0.6180342, 4.0328054), (-1.965989, 1.1512383e-16, 4.0345187), (-1.868117, -0.6180342, 4.0328054), (-1.5840816, -1.1755708, 4.027834), (-1.1416862, -1.6180344, 4.02009), (-0.58423555, -1.9021136, 4.010333), (0.033703327, -2.0000002, 3.9995167), (0.65164214, -1.9021136, 3.988701), (1.2090929, -1.6180344, 3.9789436), (1.6514881, -1.1755707, 3.9711998), (1.9355235, -0.61803406, 3.966228), (2.0333953, -2.5268053e-17, 3.9645152), (1.9527318, 0.61803436, 4.96612), (1.6686965, 1.1755712, 4.971085), (1.2263011, 1.6180348, 4.978819), (0.66885024, 1.9021142, 4.9885645), (0.050911527, 2.000001, 4.9993677), (-0.5670272, 1.9021139, 5.0101705), (-1.1244779, 1.6180346, 5.019915), (-1.5668731, 1.1755711, 5.0276494), (-1.8509082, 0.6180342, 5.0326147), (-1.94878, 1.6242959e-16, 5.0343256), (-1.8509082, -0.6180342, 5.0326147), (-1.5668727, -1.1755707, 5.027649), (-1.1244775, -1.6180344, 5.0199146), (-0.5670271, -1.9021134, 5.01017), (0.05091147, -2.0000002, 4.9993668), (0.66884995, -1.9021133, 4.988564), (1.2263005, -1.618034, 4.978819), (1.6686954, -1.1755705, 4.9710846), (1.9527307, -0.61803406, 4.9661193), (2.0506024, 4.2861574e-17, 4.9644084), (1.9696437, 0.61803436, 5.966016), (1.6856089, 1.1755713, 5.970975), (1.2432138, 1.618035, 5.9786983), (0.6857637, 1.902114, 5.9884305), (0.06782576, 2.000001, 5.9992194), (-0.5501123, 1.902114, 6.010008), (-1.1075621, 1.6180346, 6.01974), (-1.5499568, 1.1755708, 6.027464), (-1.8339915, 0.6180342, 6.032422), (-1.9318633, 1.9337814e-16, 6.034131), (-1.8339915, -0.6180342, 6.032422), (-1.5499566, -1.1755708, 6.027464), (-1.1075617, -1.6180342, 6.01974), (-0.55011207, -1.9021133, 6.0100074), (0.0678257, -2.0000002, 5.9992185), (0.68576336, -1.9021132, 5.98843), (1.243213, -1.6180341, 5.978698), (1.6856077, -1.1755707, 5.970974), (1.9696425, -0.61803395, 5.9660153), (2.0675144, 8.2517864e-17, 5.964308), (1.9850396, 0.61803436, 6.965994), (1.701006, 1.1755712, 6.9709363), (1.258613, 1.6180348, 6.978632), (0.7011657, 1.902114, 6.9883304), (0.08323042, 2.000001, 6.9990816), (-0.53470474, 1.9021138, 7.0098324), (-1.0921519, 1.6180346, 7.019531), (-1.5345446, 1.1755708, 7.027227), (-1.8185781, 0.6180341, 7.0321684), (-1.9164494, 2.189605e-16, 7.0338717), (-1.8185781, -0.6180341, 7.0321684), (-1.5345443, -1.1755707, 7.0272274), (-1.0921518, -1.6180341, 7.019531), (-0.53470457, -1.9021134, 7.0098324), (0.08323038, -2.0000005, 6.999083), (0.7011654, -1.9021136, 6.9883313), (1.2586125, -1.6180342, 6.978633), (1.7010051, -1.1755707, 6.970937), (1.9850384, -0.618034, 6.965994), (2.0829096, 1.1041273e-16, 6.9642916), (1.997126, 0.61803436, 7.96637), (1.7130947, 1.1755712, 7.9712377), (1.2707058, 1.6180351, 7.9788184), (0.71326303, 1.902114, 7.988371), (0.09533313, 2.0000007, 7.9989586), (-0.5225968, 1.9021143, 8.009548), (-1.0800391, 1.6180346, 8.019099), (-1.5224279, 1.1755708, 8.02668), (-1.8064591, 0.6180342, 8.031548), (-1.9043293, 2.4447597e-16, 8.033224), (-1.8064591, -0.6180342, 8.031548), (-1.5224277, -1.1755707, 8.02668), (-1.0800389, -1.6180342, 8.019099), (-0.52259654, -1.9021132, 8.009547), (0.09533308, -2.0000002, 7.998959), (0.7132627, -1.9021132, 7.98837), (1.270705, -1.6180342, 7.978818), (1.7130936, -1.1755705, 7.9712377), (1.9971249, -0.618034, 7.96637), (2.0949953, 1.3706805e-16, 7.964693), (2.0011125, 0.6180343, 8.969534), (1.7170783, 1.1755712, 8.973922), (1.2746845, 1.618035, 8.980757), (0.717236, 1.902114, 8.9893675), (0.09929969, 2.000001, 8.998914), (-0.5186367, 1.902114, 9.008461), (-1.0760851, 1.6180347, 9.017075), (-1.5184784, 1.1755708, 9.023908), (-1.8025124, 0.6180341, 9.0282955), (-1.9003837, 2.7047472e-16, 9.029808), (-1.8025124, -0.6180341, 9.0282955), (-1.5184783, -1.1755706, 9.023907), (-1.0760847, -1.6180344, 9.017074), (-0.51863647, -1.9021134, 9.008461), (0.099299654, -2.0000002, 8.998915), (0.7172357, -1.9021133, 8.9893675), (1.2746838, -1.6180341, 8.980757), (1.7170774, -1.1755706, 8.973923), (2.0011113, -0.618034, 8.969534), (2.0989828, 1.6374155e-16, 8.968021), (1.9973994, 0.6180344, 9.974128), (1.7133595, 1.1755712, 9.977835), (1.2709568, 1.6180352, 9.983609), (0.7134967, 1.902114, 9.990884), (0.09554765, 2.000001, 9.998949), (-0.5224014, 1.902114, 10.007014), (-1.079861, 1.6180347, 10.01429), (-1.5222635, 1.1755708, 10.020063), (-1.8063036, 0.6180341, 10.02377), (-1.904177, 2.9734133e-16, 10.025049), (-1.8063036, -0.6180341, 10.02377), (-1.5222634, -1.1755707, 10.020063), (-1.0798608, -1.6180344, 10.01429), (-0.5224012, -1.9021134, 10.007014), (0.09554759, -2.0000002, 9.998949), (0.71349627, -1.9021132, 9.990884), (1.270956, -1.6180342, 9.983608), (1.7133585, -1.1755707, 9.977835), (1.9973983, -0.618034, 9.974127), (2.0952718, 1.9097311e-16, 9.97285), (1.0381095, 0.30901718, 9.987426), (0.89608914, 0.5877856, 9.989156), (0.674887, 0.8090175, 9.991853), (0.39615616, 0.951057, 9.995252), (0.087180704, 1.0000005, 9.999019), (-0.22179474, 0.951057, 10.002786), (-0.5005254, 0.80901736, 10.006183), (-0.7217274, 0.5877854, 10.00888), (-0.8637477, 0.30901706, 10.010612), (-0.91268456, 2.7257872e-16, 10.011207), (-0.8637477, -0.30901706, 10.010612), (-0.7217273, -0.58778536, 10.00888), (-0.50052536, -0.8090172, 10.006183), (-0.22179465, -0.95105666, 10.002786), (0.087180674, -1.0000001, 9.999018), (0.39615598, -0.9510566, 9.995252), (0.6748867, -0.8090172, 9.991854), (0.8960886, -0.5877854, 9.989158), (1.038109, -0.309017, 9.987425), (1.0870457, 2.1953221e-16, 9.986828), (-0.036161702, -2.5051862e-16, 0.00012637336), (0.08057576, 2.4755396e-16, 9.999072)], 3: [(0.8217518, 0.30901724, -0.05906732), (0.67999905, 0.5877857, -0.050041933), (0.4592138, 0.80901766, -0.03598462), (0.1810083, 0.9510572, -0.018271463), (-0.12738484, 1.0000007, 0.0013635944), (-0.43577802, 0.9510572, 0.020998513), (-0.7139834, 0.8090175, 0.038711295), (-0.9347685, 0.58778554, 0.052768152), (-1.0765212, 0.30901712, 0.061793163), (-1.1253659, -2.7745117e-16, 0.06490296), (-1.0765212, -0.30901712, 0.061793163), (-0.93476856, -0.58778554, 0.052768156), (-0.71398324, -0.8090173, 0.038711287), (-0.4357779, -0.95105684, 0.020998504), (-0.12738487, -1.0000004, 0.0013635963), (0.18100812, -0.95105684, -0.018271452), (0.45921344, -0.80901724, -0.035984594), (0.67999846, -0.5877855, -0.0500419), (0.8217512, -0.30901706, -0.059067275), (0.8705958, -3.66702e-16, -0.06217722), (1.7708167, 0.6180344, -0.119415276), (1.4873105, 1.1755714, -0.101373635), (1.0457389, 1.6180352, -0.073273845), (0.4893264, 1.9021144, -0.037867308), (-0.12746151, 2.0000014, 0.0013794308), (-0.74424946, 1.9021143, 0.040624373), (-1.3006618, 1.6180351, 0.07602619), (-1.7422329, 1.175571, 0.10412014), (-2.0257397, 0.6180343, 0.12215709), (-2.1234293, -2.0429066e-16, 0.1283721), (-2.0257397, -0.6180343, 0.12215709), (-1.7422328, -1.1755708, 0.104120135), (-1.3006616, -1.6180346, 0.07602617), (-0.74424934, -1.9021139, 0.040624365), (-0.12746158, -2.0000007, 0.0013794346), (0.48932606, -1.9021137, -0.037867285), (1.0457382, -1.6180344, -0.073273785), (1.4873093, -1.1755707, -0.101373576), (1.7708158, -0.61803424, -0.11941522), (1.8685051, -3.8084372e-16, -0.12563202), (1.8342685, 0.6180345, 0.8785921), (1.5507619, 1.1755712, 0.89663005), (1.1091901, 1.6180352, 0.9247244), (0.552777, 1.9021144, 0.9601244), (-0.06401139, 2.0000017, 0.9993643), (-0.6807998, 1.9021144, 1.0386028), (-1.2372125, 1.618035, 1.0739994), (-1.6787838, 1.175571, 1.1020895), (-1.9622905, 0.61803424, 1.1201242), (-2.0599797, -1.2434752e-16, 1.1263381), (-1.9622905, -0.61803424, 1.1201242), (-1.6787839, -1.175571, 1.1020895), (-1.2372122, -1.6180346, 1.0739994), (-0.6807996, -1.9021137, 1.0386028), (-0.06401144, -2.0000007, 0.99936414), (0.55277663, -1.9021136, 0.96012443), (1.1091895, -1.6180342, 0.9247244), (1.550761, -1.1755707, 0.8966301), (1.8342674, -0.6180341, 0.8785921), (1.931957, -2.9426975e-16, 0.87237656), (1.8976977, 0.6180345, 1.8765912), (1.6141919, 1.1755713, 1.8946265), (1.1726211, 1.618035, 1.9227166), (0.61620957, 1.9021144, 1.9581121), (-0.00057725515, 2.0000012, 1.997348), (-0.6173639, 1.9021143, 2.036583), (-1.1737752, 1.6180348, 2.071977), (-1.6153455, 1.1755708, 2.1000655), (-1.898851, 0.61803424, 2.1180992), (-1.9965407, -3.6305592e-17, 2.124313), (-1.898851, -0.61803424, 2.1180992), (-1.6153455, -1.1755708, 2.1000655), (-1.173775, -1.6180345, 2.071977), (-0.6173638, -1.9021136, 2.036583), (-0.0005773143, -2.0000005, 1.9973478), (0.6162092, -1.9021136, 1.9581122), (1.1726203, -1.6180344, 1.9227167), (1.6141908, -1.1755707, 1.8946265), (1.8976965, -0.6180341, 1.8765913), (1.9953859, -1.9045475e-16, 1.8703766), (1.9610454, 0.61803436, 2.8746057), (1.677541, 1.1755714, 2.8926368), (1.2359723, 1.6180352, 2.9207208), (0.679563, 1.9021143, 2.9561083), (0.06277882, 2.0000014, 2.9953358), (-0.5540054, 1.9021143, 3.0345633), (-1.1104141, 1.6180348, 3.0699506), (-1.5519825, 1.1755708, 3.0980344), (-1.8354871, 0.6180342, 3.116065), (-1.933176, 2.2350579e-17, 3.122278), (-1.8354871, -0.6180342, 3.116065), (-1.5519825, -1.1755707, 3.0980341), (-1.1104139, -1.6180345, 3.0699503), (-0.55400515, -1.9021136, 3.034563), (0.062778756, -2.0000005, 2.9953353), (0.67956257, -1.9021134, 2.9561083), (1.2359715, -1.6180344, 2.9207206), (1.67754, -1.1755707, 2.8926365), (1.9610448, -0.6180341, 2.8746064), (2.0587337, -1.1864463e-16, 2.8683932), (2.0239744, 0.61803436, 3.8727124), (1.7404703, 1.1755714, 3.890729), (1.2989029, 1.6180351, 3.9187906), (0.7424954, 1.9021142, 3.9541497), (0.12571318, 2.0000012, 3.993346), (-0.49106905, 1.9021143, 4.0325427), (-1.0474763, 1.6180348, 4.0679016), (-1.4890435, 1.1755711, 4.095963), (-1.7725471, 0.6180342, 4.11398), (-1.8702357, 7.915523e-17, 4.1201873), (-1.7725471, -0.6180342, 4.11398), (-1.4890432, -1.1755708, 4.095963), (-1.0474759, -1.6180344, 4.067901), (-0.49106887, -1.9021136, 4.0325418), (0.1257131, -2.0000002, 3.9933457), (0.7424951, -1.9021136, 3.9541497), (1.2989023, -1.6180344, 3.9187903), (1.7404695, -1.1755707, 3.8907292), (2.0239727, -0.61803406, 3.8727126), (2.1216614, -5.2529063e-17, 3.8665047), (2.0862906, 0.61803436, 4.870868), (1.8027891, 1.1755712, 4.8888655), (1.3612249, 1.6180348, 4.9168983), (0.80482167, 1.9021142, 4.9522214), (0.188044, 2.000001, 4.991377), (-0.42873365, 1.9021139, 5.030533), (-0.9851367, 1.6180346, 5.0658545), (-1.4267007, 1.1755711, 5.0938883), (-1.7102021, 0.6180342, 5.111886), (-1.8078899, 1.3544259e-16, 5.1180873), (-1.7102021, -0.6180342, 5.111886), (-1.4267005, -1.1755707, 5.093888), (-0.98513645, -1.6180344, 5.065855), (-0.42873344, -1.9021134, 5.0305324), (0.18804395, -2.0000002, 4.9913764), (0.8048213, -1.9021133, 4.9522204), (1.3612242, -1.618034, 4.916898), (1.802788, -1.1755705, 4.8888655), (2.08629, -0.61803406, 4.8708673), (2.1839776, 1.729181e-17, 4.864666), (2.147535, 0.61803436, 5.869031), (1.8640385, 1.1755713, 5.887014), (1.4224821, 1.618035, 5.9150205), (0.8660888, 1.902114, 5.9503107), (0.2493222, 2.000001, 5.9894314), (-0.36744443, 1.902114, 6.028552), (-0.92383754, 1.6180346, 6.063843), (-1.3653934, 1.1755708, 6.09185), (-1.6488899, 0.6180342, 6.1098313), (-1.7465761, 1.6546352e-16, 6.116027), (-1.6488899, -0.6180342, 6.1098313), (-1.3653934, -1.1755708, 6.0918493), (-0.92383724, -1.6180342, 6.0638423), (-0.36744428, -1.9021133, 6.0285516), (0.24932215, -2.0000002, 5.9894314), (0.8660884, -1.9021132, 5.950311), (1.4224814, -1.6180341, 5.91502), (1.8640374, -1.1755707, 5.887013), (2.1475341, -0.61803395, 5.8690314), (2.2452202, 5.298223e-17, 5.862836), (2.203263, 0.61803436, 6.8674555), (1.9197859, 1.1755712, 6.8854027), (1.47826, 1.6180348, 6.913355), (0.921905, 1.902114, 6.9485774), (0.30518076, 2.000001, 6.9876213), (-0.31154343, 1.9021138, 7.0266657), (-0.8678982, 1.6180346, 7.061888), (-1.3094238, 1.1755708, 7.0898404), (-1.5929006, 0.6180341, 7.1077867), (-1.6905802, 1.8635694e-16, 7.113971), (-1.5929006, -0.6180341, 7.1077867), (-1.3094237, -1.1755707, 7.089841), (-0.867898, -1.6180341, 7.0618887), (-0.31154326, -1.9021134, 7.0266657), (0.3051807, -2.0000005, 6.9876227), (0.9219047, -1.9021136, 6.9485784), (1.4782594, -1.6180342, 6.9133563), (1.919785, -1.1755707, 6.8854036), (2.2032616, -0.618034, 6.8674564), (2.3009412, 7.542437e-17, 6.8612723), (2.2471817, 0.61803436, 7.867224), (1.9637419, 1.1755712, 7.8849607), (1.5222743, 1.6180351, 7.912586), (0.96599233, 1.902114, 7.947395), (0.3493494, 2.0000007, 7.9859824), (-0.26729363, 1.9021143, 8.0245695), (-0.8235751, 1.6180346, 8.059379), (-1.2650425, 1.1755708, 8.087003), (-1.5484822, 0.6180342, 8.10474), (-1.6461487, 2.075753e-16, 8.110851), (-1.5484822, -0.6180342, 8.10474), (-1.2650424, -1.1755707, 8.087003), (-0.8235749, -1.6180342, 8.059378), (-0.26729342, -1.9021132, 8.024569), (0.34934938, -2.0000002, 7.9859824), (0.9659921, -1.9021132, 7.9473953), (1.5222735, -1.6180342, 7.9125853), (1.963741, -1.1755705, 7.88496), (2.2471805, -0.618034, 7.8672237), (2.344847, 9.75108e-17, 7.861113), (2.2619817, 0.6180343, 8.878094), (1.978505, 1.1755712, 8.894118), (1.5369792, 1.618035, 8.919075), (0.9806245, 1.902114, 8.950524), (0.36390066, 2.000001, 8.985386), (-0.2528232, 1.902114, 9.020248), (-0.80917776, 1.6180347, 9.051699), (-1.250703, 1.1755708, 9.076656), (-1.5341798, 0.6180341, 9.09268), (-1.6318591, 2.320377e-16, 9.098202), (-1.5341798, -0.6180341, 9.09268), (-1.2507029, -1.1755706, 9.076655), (-0.80917746, -1.6180344, 9.051699), (-0.25282297, -1.9021134, 9.020247), (0.36390066, -2.0000002, 8.985386), (0.98062426, -1.9021133, 8.950524), (1.5369786, -1.6180341, 8.919076), (1.978504, -1.1755706, 8.894118), (2.2619805, -0.618034, 8.878094), (2.35966, 1.2279582e-16, 8.872572), (2.248873, 0.6180344, 9.895044), (1.9653199, 1.1755712, 9.908605), (1.5236753, 1.6180352, 9.929727), (0.9671706, 1.902114, 9.956339), (0.35028073, 2.000001, 9.985839), (-0.2666092, 1.902114, 10.015339), (-0.82311344, 1.6180347, 10.041952), (-1.2647579, 1.1755708, 10.063073), (-1.5483108, 0.6180341, 10.0766325), (-1.6460165, 2.6022303e-16, 10.081305), (-1.5483108, -0.6180341, 10.0766325), (-1.2647576, -1.1755707, 10.063072), (-0.82311326, -1.6180344, 10.041952), (-0.26660904, -1.9021134, 10.01534), (0.35028064, -2.0000002, 9.985839), (0.96717024, -1.9021132, 9.956339), (1.5236746, -1.6180342, 9.929726), (1.9653188, -1.1755707, 9.908606), (2.2488716, -0.618034, 9.895045), (2.3465772, 1.5172748e-16, 9.890372), (1.2693795, 0.30901718, 9.944221), (1.1275984, 0.5877856, 9.950569), (0.9067689, 0.8090175, 9.96046), (0.6285076, 0.951057, 9.972921), (0.3200526, 1.0000005, 9.986735), (0.011597659, 0.951057, 10.00055), (-0.26666352, 0.80901736, 10.013012), (-0.48749283, 0.5877854, 10.0229025), (-0.6292739, 0.30901706, 10.029252), (-0.67812836, 2.3816973e-16, 10.03144), (-0.6292739, -0.30901706, 10.029252), (-0.48749274, -0.58778536, 10.0229025), (-0.26666343, -0.8090172, 10.013014), (0.011597732, -0.95105666, 10.00055), (0.3200526, -1.0000001, 9.986736), (0.6285074, -0.9510566, 9.972923), (0.9067687, -0.8090172, 9.960461), (1.127598, -0.5877854, 9.950571), (1.2693789, -0.309017, 9.94422), (1.3182334, 1.8411704e-16, 9.942031), (-0.12737851, -3.2583182e-16, 0.0013623209), (0.29619023, 2.1522313e-16, 9.987445)], 4: [(0.69516975, 0.30901724, -0.11769141), (0.5542968, 0.5877857, -0.099520005), (0.33488202, 0.80901766, -0.07121745), (0.05840327, 0.9510572, -0.035554335), (-0.24807572, 1.0000007, 0.0039783074), (-0.55455476, 0.9510572, 0.04351069), (-0.83103335, 0.8090175, 0.07917314), (-1.0504481, 0.58778554, 0.10747485), (-1.1913209, 0.30901712, 0.1256456), (-1.2398624, -1.6241613e-16, 0.13190676), (-1.1913209, -0.30901712, 0.1256456), (-1.0504482, -0.58778554, 0.107474856), (-0.83103323, -0.8090173, 0.079173125), (-0.5545546, -0.95105684, 0.043510675), (-0.24807574, -1.0000004, 0.003978311), (0.058403086, -0.95105684, -0.03555431), (0.33488163, -0.80901724, -0.0712174), (0.55429626, -0.5877855, -0.09951993), (0.6951691, -0.30901706, -0.11769132), (0.74371046, -2.6993045e-16, -0.123952776), (1.6382296, 0.6180344, -0.2391662), (1.3564823, 1.1755714, -0.2028401), (0.9176502, 1.6180352, -0.14626214), (0.36468974, 1.9021144, -0.07497219), (-0.24827152, 2.0000014, 0.0040501393), (-0.8612327, 1.9021143, 0.08306909), (-1.4141929, 1.6180351, 0.15435019), (-1.8530241, 1.175571, 0.21091716), (-2.1347718, 0.6180343, 0.24723452), (-2.2318554, -9.004554e-17, 0.2597484), (-2.1347718, -0.6180343, 0.24723452), (-1.8530241, -1.1755708, 0.21091715), (-1.4141927, -1.6180346, 0.15435016), (-0.86123264, -1.9021139, 0.083069086), (-0.24827158, -2.0000007, 0.0040501473), (0.36468938, -1.9021137, -0.074972145), (0.91764957, -1.6180344, -0.14626202), (1.3564812, -1.1755707, -0.20283994), (1.6382287, -0.61803424, -0.23916608), (1.7353119, -2.9904882e-16, -0.25168332), (1.7659695, 0.6180345, 0.75268245), (1.484222, 1.1755712, 0.7890019), (1.04539, 1.6180352, 0.84556955), (0.49242952, 1.9021144, 0.9168471), (-0.12053156, 2.0000017, 0.9958567), (-0.7334925, 1.9021144, 1.0748637), (-1.2864523, 1.618035, 1.1461346), (-1.7252835, 1.175571, 1.2026947), (-2.0070307, 0.61803424, 1.2390075), (-2.1041136, -3.95105e-17, 1.2515197), (-2.0070307, -0.61803424, 1.2390075), (-1.7252836, -1.175571, 1.2026948), (-1.286452, -1.6180346, 1.1461346), (-0.73349226, -1.9021137, 1.0748637), (-0.120531596, -2.0000007, 0.9958566), (0.4924292, -1.9021136, 0.9168471), (1.0453894, -1.6180342, 0.8455697), (1.4842211, -1.1755707, 0.78900206), (1.7659682, -0.6180341, 0.7526827), (1.8630518, -2.374156e-16, 0.74016786), (1.8936685, 0.6180345, 1.7445123), (1.6119232, 1.1755713, 1.7808263), (1.1730945, 1.618035, 1.8373864), (0.6201382, 1.9021144, 1.9086555), (0.007181705, 2.0000012, 1.9876571), (-0.60577464, 1.9021143, 2.0666575), (-1.1587303, 1.6180348, 2.1379237), (-1.5975583, 1.1755708, 2.1944807), (-1.879303, 0.61803424, 2.230792), (-1.9763858, 1.5236139e-17, 2.2433043), (-1.879303, -0.61803424, 2.230792), (-1.5975583, -1.1755708, 2.194481), (-1.1587301, -1.6180345, 2.1379237), (-0.6057744, -1.9021136, 2.0666575), (0.007181647, -2.0000005, 1.9876572), (0.6201378, -1.9021136, 1.9086556), (1.1730938, -1.6180344, 1.8373864), (1.611922, -1.1755707, 1.7808264), (1.8936673, -0.6180341, 1.7445124), (1.9907502, -1.6086171e-16, 1.7319993), (2.0211966, 0.61803436, 2.7363784), (1.7394551, 1.1755714, 2.772685), (1.3006316, 1.6180352, 2.8292334), (0.74768174, 1.9021143, 2.9004886), (0.13473254, 2.0000014, 2.9794753), (-0.47821677, 1.9021143, 3.0584624), (-1.0311662, 1.6180348, 3.1297176), (-1.4699891, 1.1755708, 3.1862655), (-1.7517308, 0.6180342, 3.2225714), (-1.8488123, 5.0340975e-17, 3.2350821), (-1.7517308, -0.6180342, 3.2225714), (-1.4699888, -1.1755707, 3.1862655), (-1.0311658, -1.6180345, 3.1297169), (-0.4782165, -1.9021136, 3.058462), (0.13473246, -2.0000005, 2.9794753), (0.7476815, -1.9021134, 2.9004884), (1.3006308, -1.6180344, 2.8292332), (1.739454, -1.1755707, 2.7726848), (2.021196, -0.6180341, 2.7363791), (2.1182775, -1.0978181e-16, 2.7238686), (2.1478405, 0.61803436, 3.7284613), (1.8661028, 1.1755714, 3.7647421), (1.427286, 1.6180351, 3.821252), (0.87434494, 1.9021142, 3.8924587), (0.261405, 2.0000012, 3.9713917), (-0.35153496, 1.9021143, 4.050325), (-0.9044759, 1.6180348, 4.121531), (-1.3432924, 1.1755711, 4.1780405), (-1.6250297, 0.6180342, 4.2143216), (-1.7221098, 8.332636e-17, 4.226824), (-1.6250297, -0.6180342, 4.2143216), (-1.3432921, -1.1755708, 4.1780405), (-0.9044756, -1.6180344, 4.1215305), (-0.35153478, -1.9021136, 4.0503244), (0.26140493, -2.0000002, 3.9713912), (0.8743446, -1.9021136, 3.8924587), (1.4272856, -1.6180344, 3.8212523), (1.8661019, -1.1755707, 3.7647426), (2.147839, -0.61803406, 3.728461), (2.2449193, -6.249309e-17, 3.7159595), (2.2732263, 0.61803436, 4.7206545), (1.9914988, 1.1755712, 4.756907), (1.552698, 1.6180348, 4.8133717), (0.99977684, 1.9021142, 4.8845215), (0.38685894, 2.000001, 4.9633913), (-0.22605892, 1.9021139, 5.04226), (-0.77897996, 1.6180346, 5.1134095), (-1.2177806, 1.1755711, 5.169875), (-1.4995078, 0.6180342, 5.2061267), (-1.5965844, 1.1433998e-16, 5.218619), (-1.4995078, -0.6180342, 5.2061267), (-1.2177805, -1.1755707, 5.1698747), (-0.7789797, -1.6180344, 5.11341), (-0.22605874, -1.9021134, 5.04226), (0.38685888, -2.0000002, 4.9633904), (0.9997765, -1.9021133, 4.884521), (1.5526974, -1.618034, 4.813371), (1.9914978, -1.1755705, 4.756907), (2.2732253, -0.61803406, 4.7206545), (2.3703022, -1.0627173e-17, 4.7081623), (2.3964303, 0.61803436, 5.7128487), (2.1147263, 1.1755713, 5.7490864), (1.6759626, 1.618035, 5.8055267), (1.1230882, 1.902114, 5.8766465), (0.5102224, 2.000001, 5.955483), (-0.102643535, 1.902114, 6.03432), (-0.6555177, 1.6180346, 6.1054397), (-1.094281, 1.1755708, 6.16188), (-1.3759845, 0.6180342, 6.1981173), (-1.4730529, 1.2925381e-16, 6.2106037), (-1.3759845, -0.6180342, 6.1981173), (-1.094281, -1.1755708, 6.16188), (-0.6555175, -1.6180342, 6.1054387), (-0.10264334, -1.9021133, 6.034319), (0.5102223, -2.0000002, 5.955483), (1.1230879, -1.9021132, 5.8766465), (1.675962, -1.6180341, 5.8055267), (2.1147254, -1.1755707, 5.749086), (2.396429, -0.61803395, 5.7128487), (2.4934974, 1.3046498e-17, 5.7003636), (2.508385, 0.61803436, 6.705512), (2.2267728, 1.1755712, 6.7417426), (1.7881513, 1.6180348, 6.798174), (1.2354562, 1.902114, 6.869282), (0.622789, 2.000001, 6.948105), (0.010121891, 1.9021138, 7.0269284), (-0.54257303, 1.6180346, 7.098037), (-0.981194, 1.1755708, 7.1544676), (-1.262806, 0.6180341, 7.190698), (-1.3598431, 1.401281e-16, 7.2031827), (-1.262806, -0.6180341, 7.190698), (-0.98119396, -1.1755707, 7.1544676), (-0.5425728, -1.6180341, 7.0980363), (0.01012209, -1.9021134, 7.0269284), (0.6227891, -2.0000005, 6.948106), (1.235456, -1.9021136, 6.869283), (1.7881509, -1.6180342, 6.7981753), (2.2267718, -1.1755707, 6.741743), (2.5083838, -0.618034, 6.705511), (2.6054206, 2.6418142e-17, 6.6930275), (2.5968578, 0.61803436, 7.7006207), (2.3154233, 1.1755712, 7.736566), (1.8770782, 1.6180351, 7.7925525), (1.3247315, 1.902114, 7.863099), (0.7124505, 2.0000007, 7.9413004), (0.100169525, 1.9021143, 8.019503), (-0.45217696, 1.6180346, 8.090048), (-0.8905216, 1.1755708, 8.146035), (-1.1719562, 0.6180342, 8.181981), (-1.2689319, 1.5373804e-16, 8.194366), (-1.1719562, -0.6180342, 8.181981), (-0.8905215, -1.1755707, 8.146035), (-0.45217672, -1.6180342, 8.090049), (0.10016971, -1.9021132, 8.019502), (0.7124505, -2.0000002, 7.941301), (1.324731, -1.9021132, 7.8630986), (1.8770776, -1.6180342, 7.7925515), (2.3154218, -1.1755705, 7.736565), (2.5968566, -0.618034, 7.700621), (2.6938324, 4.160351e-17, 7.688235), (2.6275136, 0.6180343, 8.720842), (2.345938, 1.1755712, 8.753395), (1.9073732, 1.618035, 8.804096), (1.3547496, 1.902114, 8.867983), (0.74216175, 2.000001, 8.938801), (0.12957396, 1.902114, 9.009621), (-0.4230494, 1.6180347, 9.073509), (-0.86161363, 1.1755708, 9.124209), (-1.1431892, 0.6180341, 9.156762), (-1.2402135, 1.7551969e-16, 9.167978), (-1.1431892, -0.6180341, 9.156762), (-0.8616135, -1.1755706, 9.124208), (-0.42304912, -1.6180344, 9.073509), (0.12957418, -1.9021134, 9.009622), (0.7421618, -2.0000002, 8.938802), (1.3547493, -1.9021133, 8.867983), (1.9073726, -1.6180341, 8.804096), (2.345937, -1.1755706, 8.753394), (2.6275125, -0.618034, 8.720843), (2.7245367, 6.4723846e-17, 8.709626), (2.602103, 0.6180344, 9.755869), (2.3202178, 1.1755712, 9.783465), (1.8811718, 1.6180352, 9.826449), (1.3279413, 1.902114, 9.880611), (0.71468073, 2.000001, 9.940652), (0.101420276, 1.902114, 10.000691), (-0.45180988, 1.6180347, 10.054853), (-0.8908558, 1.1755708, 10.097837), (-1.1727407, 0.6180341, 10.125434), (-1.2698715, 2.0557562e-16, 10.134944), (-1.1727407, -0.6180341, 10.125434), (-0.89085567, -1.1755707, 10.097837), (-0.45180967, -1.6180344, 10.054854), (0.10142041, -1.9021134, 10.000691), (0.71468073, -2.0000002, 9.940653), (1.327941, -1.9021132, 9.880611), (1.881171, -1.6180342, 9.826448), (2.320217, -1.1755707, 9.783466), (2.6021018, -0.618034, 9.755869), (2.6992326, 9.590719e-17, 9.74636), (1.5978217, 0.30901718, 9.857482), (1.4568659, 0.5877856, 9.870443), (1.2373216, 0.8090175, 9.890629), (0.9606801, 0.951057, 9.916067), (0.6540207, 1.0000005, 9.944263), (0.3473613, 0.951057, 9.972461), (0.0707198, 0.80901736, 9.997897), (-0.14882404, 0.5877854, 10.018085), (-0.28977987, 0.30901706, 10.031045), (-0.33834988, 1.8774251e-16, 10.03551), (-0.28977987, -0.30901706, 10.031045), (-0.14882398, -0.58778536, 10.018085), (0.07071992, -0.8090172, 9.997897), (0.34736133, -0.95105666, 9.972461), (0.6540207, -1.0000001, 9.944263), (0.96067995, -0.9510566, 9.916067), (1.2373214, -0.8090172, 9.89063), (1.4568655, -0.5877854, 9.870444), (1.5978211, -0.309017, 9.857482), (1.6463909, 1.3325277e-16, 9.853017), (-0.2480597, -2.1892117e-16, 0.003972551), (0.60613495, 1.6819932e-16, 9.947115)], 5: [(0.55820405, 0.30901724, -0.18566154), (0.41904545, 0.5877857, -0.1571945), (0.20230077, 0.80901766, -0.11285611), (-0.07081341, 0.9510572, -0.05698672), (-0.37356284, 1.0000007, 0.00494466), (-0.67631227, 0.9510572, 0.06687569), (-0.9494265, 0.8090175, 0.12274416), (-1.1661712, 0.58778554, 0.16708139), (-1.3053298, 0.30901712, 0.19554755), (-1.3532807, -9.536517e-16, 0.2053563), (-1.3053298, -0.30901712, 0.19554755), (-1.1661711, -0.58778554, 0.16708142), (-0.94942635, -0.8090173, 0.122744136), (-0.6763121, -0.95105684, 0.06687567), (-0.37356284, -1.0000004, 0.004944665), (-0.07081359, -0.95105684, -0.05698668), (0.20230044, -0.80901724, -0.11285604), (0.41904494, -0.5877855, -0.15719439), (0.5582034, -0.30901706, -0.18566142), (0.6061542, -9.172513e-16, -0.19547053), (1.4896024, 0.6180344, -0.37589648), (1.2112834, 1.1755714, -0.31898534), (0.7777908, 1.6180352, -0.23034593), (0.2315586, 1.9021144, -0.11865727), (-0.37394404, 2.0000014, 0.0051460033), (-0.97944635, 1.9021143, 0.12894443), (-1.5256777, 1.6180351, 0.24062042), (-1.9591687, 1.175571, 0.32924402), (-2.2374876, 0.6180343, 0.38614267), (-2.3333895, -8.697579e-16, 0.40574834), (-2.2374876, -0.6180343, 0.38614267), (-1.9591684, -1.1755708, 0.329244), (-1.5256774, -1.6180346, 0.24062039), (-0.97944623, -1.9021139, 0.12894441), (-0.3739441, -2.0000007, 0.0051460145), (0.23155826, -1.9021137, -0.1186572), (0.77779, -1.6180344, -0.23034579), (1.2112823, -1.1755707, -0.3189851), (1.4896016, -0.61803424, -0.37589636), (1.5855038, -8.2514445e-16, -0.39550674), (1.6896943, 0.6180345, 0.60393834), (1.4113764, 1.1755712, 0.66083974), (0.9778855, 1.6180352, 0.74946415), (0.43165562, 1.9021144, 0.86113477), (-0.17384425, 2.0000017, 0.98491955), (-0.7793436, 1.9021144, 1.1087004), (-1.3255723, 1.618035, 1.2203618), (-1.7590611, 1.175571, 1.3089751), (-2.0373783, 0.61803424, 1.3658671), (-2.1332793, -6.648303e-16, 1.3854704), (-2.0373783, -0.61803424, 1.3658671), (-1.7590611, -1.175571, 1.3089751), (-1.325572, -1.6180346, 1.2203618), (-0.7793434, -1.9021137, 1.1087005), (-0.17384426, -2.0000007, 0.98491937), (0.4316553, -1.9021136, 0.8611349), (0.97788477, -1.6180342, 0.7494643), (1.4113753, -1.1755707, 0.66084), (1.6896933, -0.6180341, 0.6039386), (1.7855953, -6.4660923e-16, 0.58433163), (1.8897307, 0.6180345, 1.5837365), (1.6114174, 1.1755713, 1.6406304), (1.1779337, 1.618035, 1.7292435), (0.6317133, 1.9021144, 1.840902), (0.026223475, 2.0000012, 1.9646747), (-0.5792659, 1.9021143, 2.0884461), (-1.1254854, 1.6180348, 2.2001004), (-1.5589674, 1.1755708, 2.2887092), (-1.8372799, 0.61803424, 2.3455992), (-1.93318, -4.2305042e-16, 2.365202), (-1.8372799, -0.61803424, 2.3455992), (-1.5589674, -1.1755708, 2.288709), (-1.1254853, -1.6180345, 2.2001004), (-0.5792658, -1.9021136, 2.0884461), (0.026223421, -2.0000005, 1.9646748), (0.63171285, -1.9021136, 1.8409021), (1.1779332, -1.6180344, 1.729244), (1.6114161, -1.1755707, 1.6406305), (1.8897294, -0.6180341, 1.5837369), (1.9856298, -4.336498e-16, 1.5641326), (2.0894852, 0.61803436, 2.5636036), (1.8111796, 1.1755714, 2.620487), (1.3777078, 1.6180352, 2.7090847), (0.8315014, 1.9021143, 2.820724), (0.22602746, 2.0000014, 2.944477), (-0.37944657, 1.9021143, 3.0682302), (-0.9256524, 1.6180348, 3.1798697), (-1.3591236, 1.1755708, 3.2684667), (-1.6374294, 0.6180342, 3.3253496), (-1.7333269, -2.8260622e-16, 3.3449504), (-1.6374294, -0.6180342, 3.3253496), (-1.3591235, -1.1755707, 3.2684665), (-0.9256521, -1.6180345, 3.1798692), (-0.37944633, -1.9021136, 3.06823), (0.22602737, -2.0000005, 2.944477), (0.83150107, -1.9021134, 2.820724), (1.377707, -1.6180344, 2.7090845), (1.8111784, -1.1755707, 2.6204872), (2.0894847, -0.6180341, 2.5636044), (2.1853824, -3.0086295e-16, 2.5440037), (2.2877736, 0.61803436, 3.5438762), (2.0094807, 1.1755714, 3.6007276), (1.5760292, 1.6180351, 3.689276), (1.0298486, 1.9021142, 3.8008537), (0.4244028, 2.0000012, 3.9245389), (-0.18104304, 1.9021143, 4.0482235), (-0.72722346, 1.6180348, 4.159801), (-1.1606746, 1.1755711, 4.2483497), (-1.4389673, 0.6180342, 4.305201), (-1.5348605, -1.4139068e-16, 4.3247905), (-1.4389673, -0.6180342, 4.305201), (-1.1606745, -1.1755708, 4.2483497), (-0.7272232, -1.6180344, 4.159801), (-0.18104285, -1.9021136, 4.048223), (0.4244027, -2.0000002, 3.9245384), (1.0298482, -1.9021136, 3.800854), (1.5760286, -1.6180344, 3.6892765), (2.0094798, -1.1755707, 3.600728), (2.2877724, -0.61803406, 3.5438764), (2.3836656, -1.8715001e-16, 3.5242867), (2.484033, 0.61803436, 4.524348), (2.2057703, 1.1755712, 4.5811687), (1.7723655, 1.6180348, 4.6696706), (1.2262439, 1.9021142, 4.781189), (0.62086326, 2.000001, 4.9048076), (0.015482637, 1.9021139, 5.028426), (-0.53063893, 1.6180346, 5.139944), (-0.9640435, 1.1755711, 5.2284455), (-1.2423062, 0.6180342, 5.2852674), (-1.338189, 1.0899598e-17, 5.3048463), (-1.2423062, -0.6180342, 5.2852674), (-0.9640433, -1.1755707, 5.228445), (-0.5306387, -1.6180344, 5.139944), (0.015482819, -1.9021134, 5.0284257), (0.62086314, -2.0000002, 4.9048076), (1.2262434, -1.9021133, 4.781188), (1.7723649, -1.618034, 4.6696696), (2.2057693, -1.1755705, 4.5811687), (2.4840322, -0.61803406, 4.524348), (2.579915, -7.524247e-17, 4.5047684), (2.676808, 0.61803436, 5.5047793), (2.3986142, 1.1755713, 5.561609), (1.965317, 1.618035, 5.650121), (1.4193308, 1.902114, 5.761654), (0.81410056, 2.000001, 5.8852897), (0.20887025, 1.902114, 6.0089235), (-0.33711573, 1.6180346, 6.1204567), (-0.77041256, 1.1755708, 6.208969), (-1.0486063, 0.6180342, 6.2657976), (-1.1444653, 6.311178e-17, 6.2853794), (-1.0486063, -0.6180342, 6.2657976), (-0.77041245, -1.1755708, 6.208969), (-0.33711547, -1.6180342, 6.120456), (0.20887044, -1.9021133, 6.0089235), (0.81410044, -2.0000002, 5.8852882), (1.4193305, -1.9021132, 5.761654), (1.9653163, -1.6180341, 5.650121), (2.3986132, -1.1755707, 5.561608), (2.676807, -0.61803395, 5.50478), (2.7726662, -3.9801284e-17, 5.485198), (2.8515768, 0.61803436, 6.485792), (2.5736458, 1.1755712, 6.542727), (2.140758, 1.6180348, 6.631405), (1.5952882, 1.902114, 6.743146), (0.9906302, 2.000001, 6.8670115), (0.38597205, 1.9021138, 6.990877), (-0.15949774, 1.6180346, 7.1026187), (-0.5923849, 1.1755708, 7.1912966), (-0.8703156, 0.6180341, 7.248231), (-0.966084, 7.5706653e-17, 7.2678494), (-0.8703156, -0.6180341, 7.248231), (-0.5923848, -1.1755707, 7.1912966), (-0.15949748, -1.6180341, 7.1026187), (0.38597226, -1.9021134, 6.9908776), (0.99063015, -2.0000005, 6.8670125), (1.5952882, -1.9021136, 6.7431464), (2.1407576, -1.6180342, 6.631406), (2.5736449, -1.1755707, 6.542727), (2.8515756, -0.618034, 6.4857917), (2.9473438, -3.116724e-17, 6.466173), (2.9898853, 0.61803436, 7.469908), (2.7124727, 1.1755712, 7.526642), (2.2803922, 1.6180351, 7.6150084), (1.7359394, 1.902114, 7.726355), (1.1324087, 2.0000007, 7.849783), (0.5288782, 1.9021143, 7.9732137), (-0.015574514, 1.6180346, 8.0845585), (-0.44765452, 1.1755708, 8.172924), (-0.725067, 0.6180342, 8.229658), (-0.8206568, 8.57245e-17, 8.2492075), (-0.725067, -0.6180342, 8.229658), (-0.4476544, -1.1755707, 8.172924), (-0.015574235, -1.6180342, 8.084559), (0.5288784, -1.9021132, 7.9732127), (1.1324086, -2.0000002, 7.849784), (1.7359391, -1.9021132, 7.7263546), (2.2803917, -1.6180342, 7.615008), (2.7124717, -1.1755705, 7.5266423), (2.9898841, -0.618034, 7.4699087), (3.0854738, -2.2156038e-17, 7.4503593), (3.0392957, 0.6180343, 8.498443), (2.761566, 1.1755712, 8.549958), (2.328992, 1.618035, 8.630196), (1.7839171, 1.902114, 8.731299), (1.1796972, 2.000001, 8.843373), (0.57547724, 1.902114, 8.955448), (0.030402705, 1.6180347, 9.056554), (-0.40217087, 1.1755708, 9.136789), (-0.6799002, 0.6180341, 9.188304), (-0.7755992, 1.0650236e-16, 9.206055), (-0.6799002, -0.6180341, 9.188304), (-0.40217072, -1.1755706, 9.136789), (0.030402916, -1.6180344, 9.056553), (0.5754775, -1.9021134, 8.955449), (1.1796972, -2.0000002, 8.843374), (1.7839168, -1.9021133, 8.731299), (2.3289914, -1.6180341, 8.630195), (2.761565, -1.1755706, 8.549958), (3.0392945, -0.618034, 8.498442), (3.134993, -1.353765e-18, 8.480692), (3.0012255, 0.6180344, 9.554941), (2.7227364, 1.1755712, 9.598704), (2.288979, 1.6180352, 9.666871), (1.7424127, 1.902114, 9.752762), (1.1365399, 2.000001, 9.847976), (0.5306671, 1.902114, 9.943187), (-0.015898453, 1.6180347, 10.029079), (-0.44965532, 1.1755708, 10.097245), (-0.72814447, 0.6180341, 10.141008), (-0.82410526, 1.3946691e-16, 10.156088), (-0.72814447, -0.6180341, 10.141008), (-0.44965526, -1.1755707, 10.097244), (-0.015898231, -1.6180344, 10.02908), (0.5306673, -1.9021134, 9.943188), (1.1365399, -2.0000002, 9.847975), (1.7424122, -1.9021132, 9.752762), (2.288978, -1.6180342, 9.66687), (2.7227352, -1.1755707, 9.598704), (3.0012238, -0.618034, 9.554941), (3.097185, 3.2254588e-17, 9.539861), (1.9743243, 0.30901718, 9.718708), (1.8350632, 0.5877856, 9.739328), (1.6181586, 0.8090175, 9.771446), (1.3448427, 0.951057, 9.811916), (1.0418701, 1.0000005, 9.856776), (0.7388976, 0.951057, 9.901639), (0.465582, 0.80901736, 9.942107), (0.24867766, 0.5877854, 9.974224), (0.109416485, 0.30901706, 9.994846), (0.06143037, 1.275046e-16, 10.00195), (0.109416485, -0.30901706, 9.994846), (0.24867773, -0.58778536, 9.974224), (0.46558216, -0.8090172, 9.942109), (0.73889756, -0.95105666, 9.901638), (1.0418701, -1.0000001, 9.856776), (1.3448426, -0.9510566, 9.811916), (1.6181582, -0.8090172, 9.771446), (1.8350626, -0.5877854, 9.739329), (1.9743236, -0.309017, 9.718708), (2.0223098, 7.408461e-17, 9.711603), (-0.37353182, -9.466721e-16, 0.0049285456), (0.96713674, 1.1258354e-16, 9.863726)], 6: [(0.43511814, 0.30901724, -0.26020017), (0.29838443, 0.5877857, -0.22173524), (0.08541664, 0.80901766, -0.16182481), (-0.18293844, 0.9510572, -0.08633351), (-0.48041236, 1.0000007, -0.0026511278), (-0.7778863, 0.9510572, 0.0810309), (-1.0462414, 0.8090175, 0.15652117), (-1.2592089, 0.58778554, 0.21643034), (-1.3959428, 0.30901712, 0.25489426), (-1.443058, -6.096527e-16, 0.268148), (-1.3959428, -0.30901712, 0.25489426), (-1.259209, -0.58778554, 0.21643034), (-1.0462413, -0.8090173, 0.15652113), (-0.7778861, -0.95105684, 0.08103085), (-0.48041233, -1.0000004, -0.0026511194), (-0.1829386, -0.95105684, -0.08633347), (0.08541628, -0.80901724, -0.16182472), (0.29838392, -0.5877855, -0.22173509), (0.43511757, -0.30901706, -0.26020002), (0.48223272, -6.2985645e-16, -0.27345416), (1.3500195, 0.6180344, -0.51712877), (1.0765505, 1.1755714, -0.4402246), (0.650613, 1.6180352, -0.3204457), (0.11390101, 1.9021144, -0.1695196), (-0.4810478, 2.0000014, -0.002222255), (-1.0759956, 1.9021143, 0.16506928), (-1.6127051, 1.6180351, 0.3159801), (-2.0386393, 1.175571, 0.4357401), (-2.3121057, 0.6180343, 0.5126292), (-2.4063358, -5.3133996e-16, 0.53912306), (-2.3121057, -0.6180343, 0.5126292), (-2.038639, -1.1755708, 0.43574005), (-1.6127049, -1.6180346, 0.31598005), (-1.0759956, -1.9021139, 0.16506925), (-0.48104787, -2.0000007, -0.0022222395), (0.11390066, -1.9021137, -0.16951951), (0.65061224, -1.6180344, -0.32044545), (1.0765495, -1.1755707, -0.44022432), (1.3500186, -0.61803424, -0.51712865), (1.4442493, -5.86022e-16, -0.5436281), (1.6203445, 0.6180345, 0.44570854), (1.3468795, 1.1755712, 0.5226007), (0.9209476, 1.6180352, 0.64236104), (0.38424316, 1.9021144, 0.7932649), (-0.21069716, 2.0000017, 0.96053916), (-0.8056364, 1.9021144, 1.127809), (-1.3423378, 1.618035, 1.2787015), (-1.768266, 1.175571, 1.3984485), (-2.0417285, 0.61803424, 1.4753295), (-2.1359565, -4.0450612e-16, 1.5018206), (-2.0417285, -0.61803424, 1.4753295), (-1.768266, -1.175571, 1.3984486), (-1.3423376, -1.6180346, 1.2787015), (-0.80563617, -1.9021137, 1.127809), (-0.21069714, -2.0000007, 0.96053904), (0.38424286, -1.9021136, 0.79326504), (0.92094696, -1.6180342, 0.64236134), (1.3468784, -1.1755707, 0.5226009), (1.6203433, -0.6180341, 0.4457089), (1.7145731, -4.703329e-16, 0.4192135), (1.8906081, 0.6180345, 1.4084828), (1.617152, 1.1755713, 1.4853655), (1.191234, 1.618035, 1.605112), (0.6545472, 1.9021144, 1.7560004), (0.059625894, 2.0000012, 1.9232596), (-0.5352948, 1.9021143, 2.090517), (-1.0719798, 1.6180348, 2.2414005), (-1.4978948, 1.1755708, 2.3611417), (-1.771349, 0.61803424, 2.4380195), (-1.8655748, -2.5409117e-16, 2.4645097), (-1.771349, -0.61803424, 2.4380195), (-1.4978948, -1.1755708, 2.3611417), (-1.0719796, -1.6180345, 2.2414005), (-0.5352946, -1.9021136, 2.0905173), (0.059625845, -2.0000005, 1.9232596), (0.6545469, -1.9021136, 1.7560006), (1.1912335, -1.6180344, 1.6051123), (1.6171509, -1.1755707, 1.4853657), (1.890607, -0.6180341, 1.4084833), (1.9848334, -3.2814665e-16, 1.3819911), (2.160467, 0.61803436, 2.3713675), (1.8870251, 1.1755714, 2.4482388), (1.4611294, 1.6180352, 2.5679681), (0.92446935, 1.9021143, 2.7188356), (0.32957765, 2.0000014, 2.8860738), (-0.26531404, 1.9021143, 3.0533118), (-0.8019734, 1.6180348, 3.204179), (-1.2278684, 1.1755708, 3.323908), (-1.50131, 0.6180342, 3.400779), (-1.5955316, -1.7178215e-16, 3.4272668), (-1.50131, -0.6180342, 3.400779), (-1.2278684, -1.1755707, 3.3239079), (-0.8019731, -1.6180345, 3.2041788), (-0.26531383, -1.9021136, 3.0533113), (0.32957757, -2.0000005, 2.8860736), (0.92446893, -1.9021134, 2.7188358), (1.4611285, -1.6180344, 2.5679684), (1.887024, -1.1755707, 2.448239), (2.1604662, -0.6180341, 2.3713684), (2.2546875, -2.438713e-16, 2.3448808), (2.4282043, 0.61803436, 3.3349051), (2.1547923, 1.1755714, 3.4117455), (1.7289428, 1.6180351, 3.5314271), (1.1923412, 1.9021142, 3.6822348), (0.597514, 2.0000012, 3.8494065), (0.002686712, 1.9021143, 4.0165777), (-0.53391457, 1.6180348, 4.1673856), (-0.9597636, 1.1755711, 4.2870674), (-1.2331756, 0.6180342, 4.3639073), (-1.327387, -8.9762166e-17, 4.3903847), (-1.2331756, -0.6180342, 4.3639073), (-0.95976347, -1.1755708, 4.287067), (-0.53391427, -1.6180344, 4.167385), (0.0026868896, -1.9021136, 4.0165777), (0.59751385, -2.0000002, 3.8494065), (1.192341, -1.9021136, 3.682235), (1.728942, -1.6180344, 3.5314276), (2.154791, -1.1755707, 3.411746), (2.428203, -0.61803406, 3.3349059), (2.5224144, -1.7231665e-16, 3.3084285), (2.6930947, 0.61803436, 4.2987347), (2.4197495, 1.1755712, 4.3755584), (1.9940045, 1.6180348, 4.495214), (1.4575348, 1.9021142, 4.6459894), (0.86285317, 2.000001, 4.813125), (0.26817176, 1.9021139, 4.9802604), (-0.268298, 1.6180346, 5.1310353), (-0.69404274, 1.1755711, 5.250692), (-0.96738774, 0.6180342, 5.3275156), (-1.0615759, -1.8456767e-18, 5.353987), (-0.96738774, -0.6180342, 5.3275156), (-0.6940426, -1.1755707, 5.2506914), (-0.26829773, -1.6180344, 5.1310353), (0.26817194, -1.9021134, 4.98026), (0.86285305, -2.0000002, 4.8131247), (1.4575343, -1.9021133, 4.6459894), (1.9940038, -1.618034, 4.495214), (2.4197485, -1.1755705, 4.375558), (2.6930938, -0.61803406, 4.2987347), (2.787282, -9.9800426e-17, 4.2722626), (2.9531472, 0.61803436, 5.2623987), (2.6799538, 1.1755713, 5.339284), (2.2544448, 1.618035, 5.459034), (1.7182726, 1.902114, 5.6099277), (1.1239213, 2.000001, 5.777196), (0.5295697, 1.902114, 5.9444637), (-0.0066023692, 1.6180346, 6.095357), (-0.43211085, 1.1755708, 6.215107), (-0.705304, 0.6180342, 6.2919917), (-0.79944015, 2.0308624e-17, 6.3184843), (-0.705304, -0.6180342, 6.2919917), (-0.43211073, -1.1755708, 6.215107), (-0.006602126, -1.6180342, 6.095357), (0.52957, -1.9021133, 5.9444623), (1.123921, -2.0000002, 5.7771945), (1.7182722, -1.9021132, 5.6099277), (2.2544444, -1.6180341, 5.4590335), (2.6799529, -1.1755707, 5.3392835), (2.9531462, -0.61803395, 5.262399), (3.0472825, -8.3847705e-17, 5.2359076), (3.1881258, 0.61803436, 6.2263837), (2.915507, 1.1755712, 6.3035984), (2.490893, 1.6180348, 6.423863), (1.9558483, 1.902114, 6.575405), (1.3627471, 2.000001, 6.743391), (0.7696456, 1.9021138, 6.911377), (0.23460118, 1.6180346, 7.062919), (-0.19001235, 1.1755708, 7.1831846), (-0.46263102, 0.6180341, 7.2603984), (-0.556569, 1.8256055e-17, 7.287005), (-0.46263102, -0.6180341, 7.2603984), (-0.19001222, -1.1755707, 7.1831837), (0.23460144, -1.6180341, 7.062919), (0.76964575, -1.9021134, 6.911378), (1.362747, -2.0000005, 6.743392), (1.9558485, -1.9021136, 6.5754066), (2.4908926, -1.6180342, 6.423864), (2.9155061, -1.1755707, 6.3036), (3.188125, -0.618034, 6.2263846), (3.2820628, -8.6525554e-17, 6.1997776), (3.3741446, 0.61803436, 7.1927743), (3.1026726, 1.1755712, 7.2701163), (2.6798453, 1.6180351, 7.39058), (2.147052, 1.902114, 7.542372), (1.5564461, 2.0000007, 7.7106357), (0.9658403, 1.9021143, 7.8788996), (0.4330471, 1.6180346, 8.03069), (0.010220061, 1.1755708, 8.151154), (-0.26125157, 0.6180342, 8.228496), (-0.35479426, 1.7660564e-17, 8.255146), (-0.26125157, -0.6180342, 8.228496), (0.010220192, -1.1755707, 8.151154), (0.43304732, -1.6180342, 8.03069), (0.9658405, -1.9021132, 7.878898), (1.5564461, -2.0000002, 7.710635), (2.1470518, -1.9021132, 7.5423727), (2.679845, -1.6180342, 7.3905797), (3.1026719, -1.1755705, 7.270117), (3.3741434, -0.618034, 7.192775), (3.4676864, -8.5590165e-17, 7.166125), (3.4426422, 0.6180343, 8.226559), (3.1706629, 1.1755712, 8.297005), (2.7470443, 1.618035, 8.406728), (2.2132542, 1.902114, 8.544989), (1.6215433, 2.000001, 8.698251), (1.0298324, 1.902114, 8.851514), (0.49604252, 1.6180347, 8.989774), (0.072424434, 1.1755708, 9.099498), (-0.1995551, 0.6180341, 9.169944), (-0.29327285, 3.4839666e-17, 9.194219), (-0.1995551, -0.6180341, 9.169944), (0.07242452, -1.1755706, 9.099497), (0.49604273, -1.6180344, 8.989774), (1.0298327, -1.9021134, 8.851514), (1.6215433, -2.0000002, 8.698252), (2.213254, -1.9021133, 8.54499), (2.7470438, -1.6180341, 8.406729), (3.170662, -1.1755706, 8.297006), (3.4426415, -0.618034, 8.226559), (3.5363593, -6.7611176e-17, 8.202284), (3.3934658, 0.6180344, 9.305113), (3.1200957, 1.1755712, 9.365105), (2.6943126, 1.6180352, 9.458547), (2.1577935, 1.902114, 9.576288), (1.5630581, 2.000001, 9.706807), (0.96832263, 1.902114, 9.837325), (0.43180427, 1.6180347, 9.955068), (0.006020808, 1.1755708, 10.048508), (-0.267349, 0.6180341, 10.1085005), (-0.36154577, 7.019032e-17, 10.129172), (-0.267349, -0.6180341, 10.1085005), (0.006020897, -1.1755707, 10.048508), (0.43180436, -1.6180344, 9.955068), (0.96832275, -1.9021134, 9.837324), (1.5630579, -2.0000002, 9.706807), (2.157793, -1.9021132, 9.576289), (2.6943114, -1.6180342, 9.458547), (3.120095, -1.1755707, 9.365106), (3.3934646, -0.618034, 9.305112), (3.4876614, -3.18679e-17, 9.28444), (2.3508632, 0.30901718, 9.532754), (2.2141874, 0.5877856, 9.561129), (2.0013096, 0.8090175, 9.605321), (1.733068, 0.951057, 9.661008), (1.4357201, 1.0000005, 9.722736), (1.1383722, 0.951057, 9.784466), (0.87013066, 0.80901736, 9.840154), (0.6572531, 0.5877854, 9.884347), (0.5205773, 0.30901706, 9.91272), (0.47348198, 6.4394753e-17, 9.922497), (0.5205773, -0.30901706, 9.91272), (0.65725315, -0.58778536, 9.884347), (0.8701308, -0.8090172, 9.840155), (1.1383723, -0.95105666, 9.784466), (1.4357198, -1.0000001, 9.722737), (1.7330679, -0.9510566, 9.661008), (2.0013094, -0.8090172, 9.605322), (2.214187, -0.5877854, 9.56113), (2.3508627, -0.309017, 9.532754), (2.3979578, 1.3841616e-17, 9.522977), (-0.4803608, -6.275354e-16, -0.0026854265), (1.3351982, 5.4872435e-17, 9.7353115)], 7: [(0.3521661, 0.30901724, -0.3416644), (0.21805584, 0.5877857, -0.29486343), (0.009174169, 0.80901766, -0.2219692), (-0.25403208, 0.9510572, -0.13011736), (-0.5457984, 1.0000007, -0.028299078), (-0.8375647, 0.9510572, 0.073518865), (-1.1007708, 0.8090175, 0.16536984), (-1.3096524, 0.58778554, 0.23826294), (-1.4437628, 0.30901712, 0.28506312), (-1.489974, 6.6487846e-16, 0.30118933), (-1.4437628, -0.30901712, 0.28506312), (-1.3096526, -0.58778554, 0.23826295), (-1.1007707, -0.8090173, 0.1653698), (-0.8375645, -0.95105684, 0.07351882), (-0.5457984, -1.0000004, -0.028299069), (-0.25403225, -0.95105684, -0.1301173), (0.009173832, -0.80901724, -0.22196907), (0.21805534, -0.5877855, -0.29486325), (0.35216552, -0.30901706, -0.3416642), (0.39837676, 4.2721917e-16, -0.35779077), (1.2491506, 0.6180344, -0.65409505), (0.9809314, 1.1755714, -0.56051594), (0.5631704, 1.6180352, -0.4147651), (0.03676249, 1.9021144, -0.2311126), (-0.5467631, 2.0000014, -0.027537804), (-1.1302865, 1.9021143, 0.17603108), (-1.6566892, 1.6180351, 0.35966805), (-2.074443, 1.175571, 0.5053996), (-2.3426569, 0.6180343, 0.59896344), (-2.4350772, 7.2774884e-16, 0.63120306), (-2.3426569, -0.6180343, 0.59896344), (-2.0744426, -1.1755708, 0.5053995), (-1.6566889, -1.6180346, 0.359668), (-1.1302866, -1.9021139, 0.17603102), (-0.5467632, -2.0000007, -0.02753779), (0.036762152, -1.9021137, -0.2311125), (0.5631697, -1.6180344, -0.41476488), (0.98093045, -1.1755707, -0.56051546), (1.2491497, -0.61803424, -0.65409493), (1.3415718, 2.8910508e-16, -0.6863403), (1.5779943, 0.6180345, 0.2903583), (1.3097832, 1.1755712, 0.38392463), (0.8920353, 1.6180352, 0.52965575), (0.36564383, 1.9021144, 0.7132845), (-0.2178635, 2.0000017, 0.9168344), (-0.8013686, 1.9021144, 1.1203798), (-1.3277545, 1.618035, 1.303997), (-1.7454951, 1.175571, 1.4497142), (-2.013701, 0.61803424, 1.5432694), (-2.1061177, 5.794435e-16, 1.5755056), (-2.013701, -0.61803424, 1.5432694), (-1.7454952, -1.175571, 1.4497144), (-1.3277541, -1.6180346, 1.3039972), (-0.8013685, -1.9021137, 1.1203798), (-0.2178635, -2.0000007, 0.91683424), (0.36564347, -1.9021136, 0.71328455), (0.89203465, -1.6180342, 0.52965593), (1.3097823, -1.1755707, 0.38392496), (1.5779932, -0.6180341, 0.29035872), (1.6704127, 1.8543813e-16, 0.25811782), (1.9067849, 0.6180345, 1.2347121), (1.6385893, 1.1755713, 1.328268), (1.2208651, 1.618035, 1.4739841), (0.69450307, 1.9021144, 1.6575962), (0.111027606, 2.0000012, 1.8611295), (-0.47244665, 1.9021143, 2.0646615), (-0.9988052, 1.6180348, 2.2482686), (-1.4165248, 1.1755708, 2.393979), (-1.6847169, 0.61803424, 2.4875302), (-1.7771298, 4.0618237e-16, 2.5197659), (-1.6847169, -0.61803424, 2.4875302), (-1.4165248, -1.1755708, 2.393979), (-0.998805, -1.6180345, 2.2482681), (-0.47244644, -1.9021136, 2.0646613), (0.11102756, -2.0000005, 1.8611298), (0.6945028, -1.9021136, 1.6575965), (1.2208645, -1.6180344, 1.4739846), (1.6385882, -1.1755707, 1.3282684), (1.9067836, -0.6180341, 1.2347126), (1.9991977, 7.9277566e-17, 1.2024751), (2.2350438, 0.61803436, 2.1792207), (1.9668723, 1.1755714, 2.272767), (1.5491854, 1.6180352, 2.4184692), (1.0228689, 1.9021143, 2.6020634), (0.4394432, 2.0000014, 2.80558), (-0.14398241, 1.9021143, 3.0090961), (-0.67029816, 1.6180348, 3.1926904), (-1.0879846, 1.1755708, 3.3383918), (-1.3561559, 0.6180342, 3.4319375), (-1.4485611, 2.8636323e-16, 3.4641714), (-1.3561559, -0.6180342, 3.4319375), (-1.0879843, -1.1755707, 3.3383918), (-0.67029786, -1.6180345, 3.1926901), (-0.14398222, -1.9021136, 3.0090957), (0.4394431, -2.0000005, 2.80558), (1.0228686, -1.9021134, 2.602064), (1.5491844, -1.6180344, 2.4184692), (1.9668714, -1.1755707, 2.2727675), (2.235043, -0.6180341, 2.1792216), (2.3274488, -3.3687135e-18, 2.146988), (2.5604951, 0.61803436, 3.1246533), (2.2923799, 1.1755714, 3.2181814), (1.8747805, 1.6180351, 3.3638544), (1.3485749, 1.9021142, 3.5474133), (0.7652715, 2.0000012, 3.75089), (0.18196802, 1.9021143, 3.954367), (-0.3442375, 1.6180348, 4.1379256), (-0.7618364, 1.1755711, 4.2835984), (-1.0299515, 0.6180342, 4.377126), (-1.1223376, 1.6217722e-16, 4.4093533), (-1.0299515, -0.6180342, 4.377126), (-0.7618363, -1.1755708, 4.2835984), (-0.3442372, -1.6180344, 4.137925), (0.1819682, -1.9021136, 3.9543662), (0.76527137, -2.0000002, 3.7508895), (1.3485744, -1.9021136, 3.5474136), (1.8747799, -1.6180344, 3.363855), (2.2923787, -1.1755707, 3.2181816), (2.5604942, -0.61803406, 3.124654), (2.65288, -7.565701e-17, 3.0924263), (2.8823137, 0.61803436, 4.070424), (2.614323, 1.1755712, 4.1639705), (2.1969178, 1.6180348, 4.3096733), (1.6709567, 1.9021142, 4.493269), (1.0879244, 2.000001, 4.6967864), (0.504892, 1.9021139, 4.9003043), (-0.021068905, 1.6180346, 5.0839), (-0.43847388, 1.1755711, 5.229603), (-0.70646423, 0.6180342, 5.323149), (-0.7988074, 2.4820011e-17, 5.355383), (-0.70646423, -0.6180342, 5.323149), (-0.4384737, -1.1755707, 5.2296023), (-0.021068672, -1.6180344, 5.0838995), (0.5048922, -1.9021134, 4.900304), (1.0879244, -2.0000002, 4.696786), (1.6709564, -1.9021133, 4.4932685), (2.196917, -1.618034, 4.309673), (2.614322, -1.1755705, 4.1639705), (2.8823125, -0.61803406, 4.070424), (2.9746559, -1.3696635e-16, 4.03819), (3.1980467, 0.61803436, 5.01573), (2.9303331, 1.1755713, 5.109431), (2.51336, 1.618035, 5.2553735), (1.9879428, 1.902114, 5.4392724), (1.4055139, 2.000001, 5.6431255), (0.82308453, 1.902114, 5.8469787), (0.29766774, 1.6180346, 6.030877), (-0.11930529, 1.1755708, 6.17682), (-0.38701844, 0.6180342, 6.27052), (-0.47926608, -5.2813947e-17, 6.302808), (-0.38701844, -0.6180342, 6.27052), (-0.11930518, -1.1755708, 6.176819), (0.297668, -1.6180342, 6.0308766), (0.8230848, -1.9021133, 5.8469787), (1.4055136, -2.0000002, 5.643125), (1.9879426, -1.9021132, 5.439272), (2.513359, -1.6180341, 5.2553735), (2.930332, -1.1755707, 5.109431), (3.1980457, -0.61803395, 5.0157304), (3.2902935, -1.8207409e-16, 4.9834437), (3.4821038, 0.61803436, 5.9602323), (3.215436, 1.1755712, 6.054632), (2.800091, 1.6180348, 6.201663), (2.2767258, 1.902114, 6.3869333), (1.696571, 2.000001, 6.592307), (1.1164162, 1.9021138, 6.797681), (0.59305125, 1.6180346, 6.9829516), (0.17770652, 1.1755708, 7.129982), (-0.08896123, 0.6180341, 7.2243814), (-0.18084863, -9.8798294e-17, 7.25691), (-0.08896123, -0.6180341, 7.2243814), (0.17770664, -1.1755707, 7.129982), (0.5930515, -1.6180341, 6.9829507), (1.1164163, -1.9021134, 6.797681), (1.6965711, -2.0000005, 6.592308), (2.2767255, -1.9021136, 6.3869348), (2.8000903, -1.6180342, 6.2016644), (3.2154353, -1.1755707, 6.0546327), (3.4821029, -0.618034, 5.9602323), (3.5739903, -2.1630438e-16, 5.9277043), (3.7070162, 0.61803436, 6.903866), (3.4424615, 1.1755712, 6.999056), (3.0304072, 1.6180351, 7.1473165), (2.511189, 1.902114, 7.3341365), (1.9356312, 2.0000007, 7.541227), (1.3600734, 1.9021143, 7.7483187), (0.84085506, 1.6180346, 7.935138), (0.42880124, 1.1755708, 8.083399), (0.16424648, 0.6180342, 8.178589), (0.07308711, -1.2829391e-16, 8.211388), (0.16424648, -0.6180342, 8.178589), (0.42880136, -1.1755707, 8.083399), (0.84085536, -1.6180342, 7.9351377), (1.3600733, -1.9021132, 7.7483187), (1.9356313, -2.0000002, 7.541227), (2.5111887, -1.9021132, 7.334136), (3.030407, -1.6180342, 7.1473165), (3.4424605, -1.1755705, 6.999056), (3.7070153, -0.618034, 6.9038663), (3.7981749, -2.344561e-16, 6.8710666), (3.792165, 0.6180343, 7.9386616), (3.5270073, 1.1755712, 8.025711), (3.114015, 1.618035, 8.161293), (2.5936143, 1.902114, 8.332137), (2.0167456, 2.000001, 8.521519), (1.4398773, 1.902114, 8.710899), (0.9194768, 1.6180347, 8.881743), (0.5064847, 1.1755708, 9.017325), (0.24132745, 0.6180341, 9.104375), (0.14996047, -1.2130348e-16, 9.13437), (0.24132745, -0.6180341, 9.104375), (0.50648475, -1.1755706, 9.017325), (0.91947716, -1.6180344, 8.881743), (1.4398776, -1.9021134, 8.7109), (2.0167458, -2.0000002, 8.521519), (2.593614, -1.9021133, 8.332136), (3.1140146, -1.6180341, 8.161293), (3.5270066, -1.1755706, 8.025712), (3.7921636, -0.618034, 7.9386625), (3.8835309, -2.2175161e-16, 7.9086676), (3.7345204, 0.6180344, 9.03659), (3.467304, 1.1755712, 9.1109495), (3.0511043, 1.6180352, 9.226768), (2.526662, 1.902114, 9.372704), (1.9453138, 2.000001, 9.534476), (1.3639656, 1.902114, 9.696249), (0.8395237, 1.6180347, 9.842186), (0.42332438, 1.1755708, 9.958002), (0.15610795, 0.6180341, 10.032362), (0.06403144, -8.114878e-17, 10.057983), (0.15610795, -0.6180341, 10.032362), (0.42332447, -1.1755707, 9.958002), (0.8395238, -1.6180344, 9.842186), (1.3639654, -1.9021134, 9.696249), (1.9453137, -2.0000002, 9.534476), (2.5266616, -1.9021132, 9.372703), (3.051103, -1.6180342, 9.226767), (3.4673028, -1.1755707, 9.1109495), (3.7345192, -0.618034, 9.036592), (3.8265955, -1.7928359e-16, 9.010968), (2.6852648, 0.30901718, 9.321102), (2.5517523, 0.5877856, 9.356439), (2.3438017, 0.8090175, 9.411476), (2.0817688, 0.951057, 9.480827), (1.7913029, 1.0000005, 9.557704), (1.500837, 0.951057, 9.634581), (1.2388042, 0.80901736, 9.703931), (1.0308537, 0.5877854, 9.758967), (0.8973412, 0.30901706, 9.794304), (0.851336, -7.269097e-17, 9.806479), (0.8973412, -0.30901706, 9.794304), (1.0308539, -0.58778536, 9.758967), (1.2388043, -0.8090172, 9.703931), (1.5008371, -0.95105666, 9.63458), (1.7913029, -1.0000001, 9.557704), (2.0817685, -0.9510566, 9.480827), (2.3438013, -0.8090172, 9.411478), (2.551752, -0.5877854, 9.35644), (2.6852639, -0.309017, 9.321102), (2.7312694, -1.196694e-16, 9.308927), (-0.54572046, 5.508675e-16, -0.028359922), (1.669725, -6.9311806e-17, 9.576039)], 8: [(0.33889934, 0.30901724, -0.43089393), (0.20680708, 0.5877857, -0.37866503), (0.0010684971, 0.80901766, -0.29731658), (-0.25817713, 0.9510572, -0.19481163), (-0.54555315, 1.0000007, -0.08118418), (-0.83292896, 0.9510572, 0.032443147), (-1.0921744, 0.8090175, 0.13494764), (-1.2979125, 0.58778554, 0.21629557), (-1.4300045, 0.30901712, 0.26852408), (-1.4755204, -1.2378423e-16, 0.28652078), (-1.4300045, -0.30901712, 0.26852408), (-1.2979125, -0.58778554, 0.21629559), (-1.0921743, -0.8090173, 0.1349476), (-0.83292884, -0.95105684, 0.032443114), (-0.54555315, -1.0000004, -0.08118416), (-0.2581773, -0.95105684, -0.19481155), (0.0010681647, -0.80901724, -0.29731643), (0.20680657, -0.5877855, -0.37866485), (0.33889878, -0.30901706, -0.43089372), (0.38441464, -2.2405136e-16, -0.4488906), (1.2219071, 0.6180344, -0.7793224), (0.9577287, 1.1755714, -0.674877), (0.546262, 1.6180352, -0.5122012), (0.027786648, 1.9021144, -0.30722097), (-0.546944, 2.0000014, -0.08000314), (-1.1216707, 1.9021143, 0.14720994), (-1.640136, 1.6180351, 0.35217774), (-2.0515897, 1.175571, 0.51483816), (-2.3157585, 0.6180343, 0.6192714), (-2.4067845, -5.4849116e-17, 0.65525633), (-2.3157585, -0.6180343, 0.6192714), (-2.0515895, -1.1755708, 0.51483816), (-1.6401358, -1.6180346, 0.35217765), (-1.1216706, -1.9021139, 0.14720991), (-0.54694414, -2.0000007, -0.08000313), (0.027786318, -1.9021137, -0.30722085), (0.5462613, -1.6180344, -0.5122009), (0.9577277, -1.1755707, -0.6748766), (1.2219063, -0.61803424, -0.77932215), (1.312936, -2.4933347e-16, -0.8153117), (1.588784, 0.6180345, 0.15100423), (1.3246205, 1.1755712, 0.25543842), (0.91317755, 1.6180352, 0.4180971), (0.3947321, 1.9021144, 0.6230565), (-0.17996553, 2.0000017, 0.85025245), (-0.7546595, 1.9021144, 1.0774448), (-1.2730951, 1.618035, 1.282395), (-1.6845257, 1.175571, 1.4450426), (-1.9486797, 0.61803424, 1.5494679), (-2.0397003, -4.1333186e-17, 1.5854499), (-1.9486797, -0.61803424, 1.5494679), (-1.6845258, -1.175571, 1.4450427), (-1.2730949, -1.6180346, 1.2823949), (-0.75465924, -1.9021137, 1.0774448), (-0.17996556, -2.0000007, 0.85025233), (0.39473176, -1.9021136, 0.6230566), (0.9131769, -1.6180342, 0.41809738), (1.3246195, -1.1755707, 0.2554388), (1.5887828, -0.6180341, 0.15100464), (1.6798075, -2.2468669e-16, 0.115018934), (1.9556382, 0.6180345, 1.0811847), (1.6914989, 1.1755713, 1.18561), (1.2800931, 1.618035, 1.3482559), (0.76169306, 1.9021144, 1.5532006), (0.18704447, 2.0000012, 1.7803823), (-0.3876021, 1.9021143, 2.0075624), (-0.9059964, 1.6180348, 2.2125034), (-1.3173952, 1.1755708, 2.3751445), (-1.581529, 0.61803424, 2.4795663), (-1.6725433, -2.3621062e-17, 2.5155478), (-1.581529, -0.61803424, 2.4795663), (-1.3173952, -1.1755708, 2.375145), (-0.90599614, -1.6180345, 2.2125032), (-0.38760197, -1.9021136, 2.0075622), (0.18704443, -2.0000005, 1.7803822), (0.76169276, -1.9021136, 1.5532007), (1.2800924, -1.6180344, 1.3482561), (1.6914978, -1.1755707, 1.1856103), (1.955637, -0.6180341, 1.081185), (2.0466533, -1.851245e-16, 1.0452024), (2.3218377, 0.61803436, 2.0115545), (2.0577354, 1.1755714, 2.1159766), (1.6463867, 1.6180352, 2.2786176), (1.1280571, 1.9021143, 2.4835572), (0.5534849, 2.0000014, 2.7107341), (-0.02108726, 1.9021143, 2.937911), (-0.5394162, 1.6180348, 3.1428504), (-0.9507641, 1.1755708, 3.3054905), (-1.2148659, 0.6180342, 3.4099123), (-1.305869, -2.5495986e-17, 3.4458935), (-1.2148659, -0.6180342, 3.4099123), (-0.950764, -1.1755707, 3.3054905), (-0.5394159, -1.6180345, 3.14285), (-0.021087088, -1.9021136, 2.9379108), (0.55348474, -2.0000005, 2.710734), (1.1280568, -1.9021134, 2.4835575), (1.646386, -1.6180344, 2.2786179), (2.0577343, -1.1755707, 2.115977), (2.321837, -0.6180341, 2.0115554), (2.4128404, -1.709603e-16, 1.975574), (2.684546, 0.61803436, 2.9430728), (2.420537, 1.1755714, 3.0475054), (2.0093331, 1.6180351, 3.210163), (1.4911861, 1.9021142, 3.4151237), (0.9168161, 2.0000012, 3.6423244), (0.3424459, 1.9021143, 3.8695252), (-0.17570072, 1.6180348, 4.0744853), (-0.5869041, 1.1755711, 4.237143), (-0.850913, 0.6180342, 4.3415756), (-0.94188416, -2.918843e-17, 4.3775606), (-0.850913, -0.6180342, 4.3415756), (-0.586904, -1.1755708, 4.237143), (-0.17570049, -1.6180344, 4.074485), (0.34244606, -1.9021136, 3.869525), (0.91681606, -2.0000002, 3.6423242), (1.4911859, -1.9021136, 3.4151244), (2.0093324, -1.6180344, 3.2101638), (2.4205356, -1.1755707, 3.0475059), (2.6845446, -0.61803406, 2.9430735), (2.775516, -1.6017544e-16, 2.9070885), (3.042954, 0.61803436, 3.8748486), (2.779147, 1.1755712, 3.979366), (2.3682585, 1.6180348, 4.142156), (1.8505085, 1.9021142, 4.347284), (1.2765783, 2.000001, 4.574669), (0.70264816, 1.9021139, 4.802054), (0.18489844, 1.6180346, 5.007181), (-0.22599003, 1.1755711, 5.1699715), (-0.48979664, 0.6180342, 5.2744884), (-0.5806982, -3.4583144e-17, 5.310503), (-0.48979664, -0.6180342, 5.2744884), (-0.22598991, -1.1755707, 5.169971), (0.18489867, -1.6180344, 5.0071807), (0.7026484, -1.9021134, 4.802054), (1.2765783, -2.0000002, 4.574669), (1.8505082, -1.9021133, 4.3472834), (2.3682578, -1.618034, 4.1421556), (2.7791462, -1.1755705, 3.9793665), (3.042953, -0.61803406, 3.8748496), (3.1338546, -1.4435296e-16, 3.838835), (3.3943198, 0.61803436, 4.805554), (3.1309552, 1.1755713, 4.9103756), (2.7207563, 1.618035, 5.0736394), (2.2038753, 1.902114, 5.279363), (1.6309087, 2.000001, 5.507411), (1.0579418, 1.902114, 5.735458), (0.54106104, 1.6180346, 5.941182), (0.13086227, 1.1755708, 6.104445), (-0.13250156, 0.6180342, 6.209267), (-0.22325052, -5.5777576e-17, 6.245386), (-0.13250156, -0.6180342, 6.209267), (0.13086239, -1.1755708, 6.104445), (0.54106134, -1.6180342, 5.941181), (1.0579419, -1.9021133, 5.7354574), (1.6309086, -2.0000002, 5.50741), (2.2038753, -1.9021132, 5.279363), (2.7207558, -1.6180341, 5.073639), (3.1309543, -1.1755707, 4.9103756), (3.3943188, -0.61803395, 4.805554), (3.4850678, -1.5601496e-16, 4.769436), (3.708782, 0.61803436, 5.7327504), (3.4470797, 1.1755712, 5.838839), (3.0394695, 1.6180348, 6.0040774), (2.5258508, 1.902114, 6.2122893), (1.9564998, 2.000001, 6.443094), (1.3871491, 1.9021138, 6.6738987), (0.87353045, 1.6180346, 6.88211), (0.4659204, 1.1755708, 7.047348), (0.20421867, 0.6180341, 7.1534367), (0.114042446, -7.933741e-17, 7.1899924), (0.20421867, -0.6180341, 7.1534367), (0.4659205, -1.1755707, 7.047348), (0.8735306, -1.6180341, 6.88211), (1.3871493, -1.9021134, 6.6738977), (1.9565002, -2.0000005, 6.4430947), (2.5258508, -1.9021136, 6.21229), (3.0394692, -1.6180342, 6.004079), (3.4470797, -1.1755707, 5.8388414), (3.7087808, -0.618034, 5.732751), (3.798957, -1.7420519e-16, 5.696195), (3.9583592, 0.61803436, 6.651805), (3.7000563, 1.1755712, 6.7598166), (3.2977402, 1.6180351, 6.9280477), (2.790793, 1.902114, 7.140031), (2.228837, 2.0000007, 7.375016), (1.6668818, 1.9021143, 7.6100035), (1.1599342, 1.6180346, 7.8219867), (0.7576185, 1.1755708, 7.990217), (0.4993159, 0.6180342, 8.098228), (0.4103109, -9.73251e-17, 8.135447), (0.4993159, -0.6180342, 8.098228), (0.7576186, -1.1755707, 7.9902177), (1.1599344, -1.6180342, 7.821987), (1.6668816, -1.9021132, 7.610003), (2.2288373, -2.0000002, 7.3750167), (2.7907925, -1.9021132, 7.1400313), (3.29774, -1.6180342, 6.928048), (3.7000556, -1.1755705, 6.7598166), (3.9583583, -0.618034, 6.6518054), (4.0473633, -1.8459415e-16, 6.614588), (4.055108, 0.6180343, 7.6829133), (3.7963433, 1.1755712, 7.782249), (3.393308, 1.618035, 7.936968), (2.885454, 1.902114, 8.131925), (2.322493, 2.000001, 8.348038), (1.7595327, 1.902114, 8.56415), (1.251679, 1.6180347, 8.759108), (0.8486438, 1.1755708, 8.913825), (0.58987933, 0.6180341, 9.013161), (0.5007152, -8.6148035e-17, 9.04739), (0.58987933, -0.6180341, 9.013161), (0.84864396, -1.1755706, 8.913825), (1.2516793, -1.6180344, 8.759107), (1.759533, -1.9021134, 8.564149), (2.3224933, -2.0000002, 8.348038), (2.8854535, -1.9021133, 8.131925), (3.3933074, -1.6180341, 7.9369683), (3.7963424, -1.1755706, 7.782249), (4.0551066, -0.618034, 7.6829133), (4.144271, -1.7102282e-16, 7.6486845), (3.99201, 0.6180344, 8.793992), (3.730697, 1.1755712, 8.879213), (3.323692, 1.6180352, 9.011951), (2.8108356, 1.902114, 9.179209), (2.24233, 2.000001, 9.364615), (1.6738251, 1.902114, 9.550022), (1.1609693, 1.6180347, 9.7172785), (0.7539646, 1.1755708, 9.850016), (0.49265152, 0.6180341, 9.935238), (0.40260926, -4.7069677e-17, 9.964603), (0.49265152, -0.6180341, 9.935238), (0.7539646, -1.1755707, 9.850016), (1.1609695, -1.6180344, 9.717279), (1.6738251, -1.9021134, 9.550021), (2.24233, -2.0000002, 9.364615), (2.8108346, -1.9021132, 9.17921), (3.323691, -1.6180342, 9.011951), (3.7306952, -1.1755707, 8.879214), (3.9920084, -0.618034, 8.793993), (4.082051, -1.3251072e-16, 8.764627), (2.944974, 0.30901718, 9.119693), (2.814592, 0.5877856, 9.160461), (2.611517, 0.8090175, 9.22396), (2.3556278, 0.951057, 9.303972), (2.0719724, 1.0000005, 9.392668), (1.7883171, 0.951057, 9.481364), (1.5324279, 0.80901736, 9.561377), (1.3293533, 0.5877854, 9.624874), (1.1989713, 0.30901706, 9.665644), (1.1540447, -4.243251e-17, 9.67969), (1.1989713, -0.30901706, 9.665644), (1.3293535, -0.58778536, 9.624874), (1.5324281, -0.8090172, 9.561376), (1.7883172, -0.95105666, 9.481363), (2.0719724, -1.0000001, 9.392668), (2.3556278, -0.9510566, 9.303973), (2.611517, -0.8090172, 9.223961), (2.8145916, -0.5877854, 9.160462), (2.9449732, -0.309017, 9.119692), (2.9898994, -8.387719e-17, 9.105644), (-0.5454411, -1.7668197e-16, -0.0812785), (1.9374901, -4.2128626e-17, 9.414812)], 9: [(0.42967114, 0.30901724, -0.5243143), (0.29811454, 0.5877857, -0.4707463), (0.09321032, 0.80901766, -0.38731208), (-0.16498397, 0.9510572, -0.28217873), (-0.4511944, 1.0000007, -0.16563733), (-0.7374046, 0.9510572, -0.049095705), (-0.9955984, 0.8090175, 0.056038104), (-1.200502, 0.58778554, 0.13947284), (-1.3320582, 0.30901712, 0.1930413), (-1.3773892, 6.1478864e-16, 0.21149972), (-1.3320582, -0.30901712, 0.1930413), (-1.2005022, -0.58778554, 0.13947284), (-0.9955982, -0.8090173, 0.05603806), (-0.7374044, -0.95105684, -0.049095735), (-0.45119438, -1.0000004, -0.16563728), (-0.16498414, -0.95105684, -0.28217864), (0.093209974, -0.80901724, -0.38731197), (0.29811403, -0.5877855, -0.4707461), (0.42967057, -0.30901706, -0.5243141), (0.47500187, 3.812545e-16, -0.54277235), (1.3084708, 0.6180344, -0.881396), (1.0453697, 1.1755714, -0.77425224), (0.6355822, 1.6180352, -0.60737205), (0.11922436, 1.9021144, -0.397092), (-0.4531569, 2.0000014, -0.16399641), (-1.0255319, 1.9021143, 0.06909755), (-1.5418736, 1.6180351, 0.27937314), (-1.9516406, 1.175571, 0.4462477), (-2.2147255, 0.6180343, 0.5533873), (-2.3053782, 6.7265195e-16, 0.590305), (-2.2147255, -0.6180343, 0.5533873), (-1.9516404, -1.1755708, 0.4462476), (-1.5418733, -1.6180346, 0.27937305), (-1.0255318, -1.9021139, 0.06909748), (-0.45315692, -2.0000007, -0.16399637), (0.119224034, -1.9021137, -0.39709193), (0.6355816, -1.6180344, -0.6073718), (1.0453687, -1.1755707, -0.77425176), (1.3084699, -0.61803424, -0.8813958), (1.3991284, 2.4353979e-16, -0.918315), (1.6845834, 0.6180345, 0.045207247), (1.4215068, 1.1755712, 0.15234567), (1.0117576, 1.6180352, 0.31921726), (0.49544767, 1.9021144, 0.5294869), (-0.07688066, 2.0000017, 0.7625714), (-0.6492033, 1.9021144, 0.9956546), (-1.1654981, 1.618035, 1.205921), (-1.5752285, 1.175571, 1.3727889), (-1.8382903, 0.61803424, 1.4799242), (-1.9289347, 5.304733e-16, 1.5168401), (-1.8382903, -0.61803424, 1.4799242), (-1.5752286, -1.175571, 1.3727889), (-1.1654979, -1.6180346, 1.2059209), (-0.6492032, -1.9021137, 0.9956545), (-0.076880716, -2.0000007, 0.7625713), (0.49544737, -1.9021136, 0.52948695), (1.011757, -1.6180342, 0.31921756), (1.4215057, -1.1755707, 0.15234607), (1.6845825, -0.6180341, 0.045207694), (1.7752326, 1.4746129e-16, 0.008290291), (2.0607374, 0.6180345, 0.9716116), (1.7976955, 1.1755713, 1.0787463), (1.3879997, 1.618035, 1.2456125), (0.87175584, 1.9021144, 1.4558764), (0.2994978, 2.0000012, 1.688955), (-0.27275702, 1.9021143, 1.9220331), (-0.7889929, 1.6180348, 2.1322956), (-1.1986783, 1.1755708, 2.2991607), (-1.4617115, 0.61803424, 2.4062946), (-1.5523466, 3.6205023e-16, 2.4432104), (-1.4617115, -0.61803424, 2.4062946), (-1.198678, -1.1755708, 2.299161), (-0.7889927, -1.6180345, 2.1322956), (-0.27275687, -1.9021136, 1.9220331), (0.2994978, -2.0000005, 1.6889548), (0.8717555, -1.9021136, 1.4558766), (1.3879994, -1.6180344, 1.245613), (1.7976944, -1.1755707, 1.0787468), (2.060736, -0.6180341, 0.97161186), (2.1513739, 4.810802e-17, 0.93469584), (2.4361231, 0.61803436, 1.8982105), (2.1731348, 1.1755714, 2.0053556), (1.76352, 1.6180352, 2.1722376), (1.2473756, 1.9021143, 2.382521), (0.67522585, 2.0000014, 2.6156216), (0.103076205, 1.9021143, 2.848722), (-0.41306734, 1.6180348, 3.059005), (-0.82268107, 1.1755708, 3.225886), (-1.0856692, 0.6180342, 3.333031), (-1.1762886, 2.502187e-16, 3.36995), (-1.0856692, -0.6180342, 3.333031), (-0.8226809, -1.1755707, 3.225886), (-0.41306704, -1.6180345, 3.0590048), (0.10307636, -1.9021136, 2.8487217), (0.67522573, -2.0000005, 2.6156213), (1.2473752, -1.9021134, 2.382521), (1.7635193, -1.6180344, 2.1722376), (2.1731336, -1.1755707, 2.005356), (2.4361224, -0.6180341, 1.8982115), (2.5267425, -2.5619628e-17, 1.861292), (2.8073642, 0.61803436, 2.8260329), (2.5445132, 1.1755714, 2.933242), (2.1351125, 1.6180351, 3.1002233), (1.6192379, 1.9021142, 3.3106325), (1.0473866, 2.0000012, 3.5438728), (0.4755354, 1.9021143, 3.7771132), (-0.040339053, 1.6180348, 3.9875226), (-0.44973922, 1.1755711, 4.154504), (-0.71259034, 0.6180342, 4.2617126), (-0.80316263, 1.3400014e-16, 4.2986546), (-0.71259034, -0.6180342, 4.2617126), (-0.4497391, -1.1755708, 4.154504), (-0.04033882, -1.6180344, 3.9875224), (0.4755355, -1.9021136, 3.777113), (1.0473866, -2.0000002, 3.543873), (1.6192377, -1.9021136, 3.310633), (2.135112, -1.6180344, 3.1002238), (2.544512, -1.1755707, 2.933242), (2.807363, -0.61803406, 2.8260336), (2.8979356, -8.8294853e-17, 2.7890918), (3.1738555, 0.61803436, 3.753799), (2.911298, 1.1755712, 3.8612037), (2.5023549, 1.6180348, 4.028491), (1.9870565, 1.9021142, 4.2392845), (1.4158441, 2.000001, 4.472951), (0.8446314, 1.9021139, 4.706618), (0.32933325, 1.6180346, 4.9174113), (-0.0796096, 1.1755711, 5.084698), (-0.34216708, 0.6180342, 5.1921024), (-0.4326382, 3.988181e-18, 5.2291117), (-0.34216708, -0.6180342, 5.1921024), (-0.07960948, -1.1755707, 5.084698), (0.32933348, -1.6180344, 4.9174113), (0.84463155, -1.9021134, 4.7066174), (1.415844, -2.0000002, 4.4729505), (1.9870561, -1.9021133, 4.2392845), (2.5023541, -1.618034, 4.028491), (2.9112968, -1.1755705, 3.8612041), (3.1738548, -0.61803406, 3.7537997), (3.2643259, -1.3981177e-16, 3.7167904), (3.5328758, 0.61803436, 4.6794243), (3.270951, 1.1755713, 4.787366), (2.8629937, 1.618035, 4.9554896), (2.3489385, 1.902114, 5.1673374), (1.7791033, 2.000001, 5.4021726), (1.2092681, 1.902114, 5.6370077), (0.6952125, 1.6180346, 5.848856), (0.2872557, 1.1755708, 6.016979), (0.025331348, 0.6180342, 6.124921), (-0.06492157, -6.352419e-17, 6.162114), (0.025331348, -0.6180342, 6.124921), (0.28725585, -1.1755708, 6.0169787), (0.69521266, -1.6180342, 5.848855), (1.2092682, -1.9021133, 5.637007), (1.7791032, -2.0000002, 5.402172), (2.348938, -1.9021132, 5.1673365), (2.8629937, -1.6180341, 4.9554887), (3.27095, -1.1755707, 4.7873654), (3.5328746, -0.61803395, 4.679424), (3.623128, -1.7358803e-16, 4.642231), (3.8522987, 0.61803436, 5.596379), (3.5927403, 1.1755712, 5.706452), (3.188469, 1.6180348, 5.877895), (2.679057, 1.902114, 6.093926), (2.1143699, 2.000001, 6.333398), (1.5496827, 1.9021138, 6.57287), (1.0402713, 1.6180346, 6.788901), (0.63600004, 1.1755708, 6.960344), (0.3764419, 0.6180341, 7.0704165), (0.28700432, -1.0007867e-16, 7.108345), (0.3764419, -0.6180341, 7.0704165), (0.6360001, -1.1755707, 6.9603434), (1.0402714, -1.6180341, 6.7889004), (1.5496829, -1.9021134, 6.5728703), (2.11437, -2.0000005, 6.333399), (2.6790574, -1.9021136, 6.0939264), (3.1884685, -1.6180342, 5.8778963), (3.59274, -1.1755707, 5.7064524), (3.8522978, -0.618034, 5.596379), (3.941735, -1.9725989e-16, 5.55845), (4.1083136, 0.61803436, 6.492544), (3.8536491, 1.1755712, 6.6063633), (3.4570012, 1.6180351, 6.783642), (2.9571955, 1.902114, 7.007024), (2.4031565, 2.0000007, 7.254646), (1.8491178, 1.9021143, 7.502269), (1.349312, 1.6180346, 7.72565), (0.9526639, 1.1755708, 7.9029274), (0.6980003, 0.6180342, 8.0167465), (0.6102492, -1.2644816e-16, 8.055966), (0.6980003, -0.6180342, 8.0167465), (0.952664, -1.1755707, 7.902928), (1.3493122, -1.6180342, 7.7256503), (1.8491176, -1.9021132, 7.502268), (2.4031565, -2.0000002, 7.254646), (2.9571953, -1.9021132, 7.007024), (3.457001, -1.6180342, 6.7836413), (3.8536487, -1.1755705, 6.606364), (4.108312, -0.618034, 6.4925447), (4.196064, -2.1045027e-16, 6.4533257), (4.209524, 0.6180343, 7.5150666), (3.9548893, 1.1755712, 7.620685), (3.5582852, 1.618035, 7.7851896), (3.0585349, 1.902114, 7.9924774), (2.5045576, 2.000001, 8.222259), (1.9505802, 1.902114, 8.452039), (1.4508306, 1.6180347, 8.6593275), (1.0542265, 1.1755708, 8.8238325), (0.79959124, 0.6180341, 8.929451), (0.71185005, -1.1867595e-16, 8.965844), (0.79959124, -0.6180341, 8.929451), (1.0542266, -1.1755706, 8.8238325), (1.4508308, -1.6180344, 8.6593275), (1.9505808, -1.9021134, 8.45204), (2.5045578, -2.0000002, 8.222259), (3.0585346, -1.9021133, 7.9924774), (3.5582845, -1.6180341, 7.7851896), (3.9548886, -1.1755706, 7.620685), (4.2095237, -0.618034, 7.5150666), (4.2972655, -1.9797415e-16, 7.478673), (4.144124, 0.6180344, 8.629475), (3.886863, 1.1755712, 8.7207), (3.48617, 1.6180352, 8.862788), (2.981267, 1.902114, 9.041827), (2.421578, 2.000001, 9.240295), (1.8618889, 1.902114, 9.438764), (1.3569863, 1.6180347, 9.617803), (0.9562934, 1.1755708, 9.759891), (0.69903266, 0.6180341, 9.851115), (0.61038667, -7.9575595e-17, 9.882551), (0.69903266, -0.6180341, 9.851115), (0.9562935, -1.1755707, 9.75989), (1.3569865, -1.6180344, 9.617803), (1.8618889, -1.9021134, 9.438764), (2.4215777, -2.0000002, 9.240294), (2.9812663, -1.9021132, 9.041827), (3.4861693, -1.6180342, 8.862787), (3.8868623, -1.1755707, 8.7207), (4.144122, -0.618034, 8.629475), (4.2327685, -1.5908567e-16, 8.598041), (3.1069586, 0.30901718, 8.972746), (2.9788878, 0.5877856, 9.016836), (2.7794135, 0.8090175, 9.085506), (2.528061, 0.951057, 9.172035), (2.2494345, 1.0000005, 9.267956), (1.9708081, 0.951057, 9.363874), (1.7194556, 0.80901736, 9.450406), (1.5199813, 0.5877854, 9.519075), (1.3919108, 0.30901706, 9.563165), (1.3477806, -7.358111e-17, 9.578358), (1.3919108, -0.30901706, 9.563165), (1.5199813, -0.58778536, 9.519075), (1.7194557, -0.8090172, 9.450405), (1.9708081, -0.95105666, 9.363874), (2.2494345, -1.0000001, 9.267958), (2.5280602, -0.9510566, 9.172037), (2.7794135, -0.8090172, 9.085507), (2.9788876, -0.5877854, 9.016837), (3.1069577, -0.309017, 8.972746), (3.1510878, -1.1129661e-16, 8.957555), (-0.45103678, 5.0314567e-16, -0.1657683), (2.1135426, -7.121023e-17, 9.289791)], 10: [(0.66420996, 0.30901724, -0.605817), (0.53108805, 0.5877857, -0.556261), (0.32374576, 0.80901766, -0.47907534), (0.06247942, 0.9510572, -0.38181525), (-0.22713636, 1.0000007, -0.27400103), (-0.5167518, 0.9510572, -0.16618606), (-0.7780175, 0.8090175, -0.068924196), (-0.98535895, 0.58778554, 0.008263663), (-1.1184803, 0.30901712, 0.057821523), (-1.1643507, 5.4890366e-16, 0.07489803), (-1.1184803, -0.30901712, 0.057821523), (-0.985359, -0.58778554, 0.008263643), (-0.7780174, -0.8090173, -0.06892425), (-0.5167517, -0.95105684, -0.16618608), (-0.22713637, -1.0000004, -0.274001), (0.062479258, -0.95105684, -0.3818152), (0.3237454, -0.80901724, -0.4790752), (0.5310876, -0.5877855, -0.5562608), (0.6642093, -0.30901706, -0.6058168), (0.71008, 3.1891092e-16, -0.62289256), (1.5526538, 0.6180344, -0.93586457), (1.2864273, 1.1755714, -0.8367114), (0.8717722, 1.6180352, -0.68227494), (0.3492827, 1.9021144, -0.48767063), (-0.22989307, 2.0000014, -0.27194646), (-0.8090601, 1.9021143, -0.056218337), (-1.3315268, 1.6180351, 0.13839616), (-1.746153, 1.175571, 0.2928453), (-2.0123572, 0.6180343, 0.39200893), (-2.1040845, 6.0831895e-16, 0.42617851), (-2.0123572, -0.6180343, 0.39200893), (-1.7461529, -1.1755708, 0.2928453), (-1.3315265, -1.6180346, 0.13839607), (-0.80906, -1.9021139, -0.05621841), (-0.22989313, -2.0000007, -0.2719465), (0.34928238, -1.9021137, -0.4876705), (0.87177145, -1.6180344, -0.68227464), (1.2864261, -1.1755707, -0.83671105), (1.5526532, -0.61803424, -0.93586427), (1.6443887, 1.8498219e-16, -0.97002983), (1.9003196, 0.6180345, 0.0017370197), (1.6341285, 1.1755712, 0.100896634), (1.2195293, 1.6180352, 0.25534275), (0.6971096, 1.9021144, 0.4499585), (0.118010774, 2.0000017, 0.66569465), (-0.46108022, 1.9021144, 0.8814338), (-0.98347884, 1.618035, 1.0760574), (-1.3980521, 1.175571, 1.2305135), (-1.6642225, 0.61803424, 1.3296812), (-1.755938, 4.7694657e-16, 1.363852), (-1.6642225, -0.61803424, 1.3296812), (-1.3980522, -1.175571, 1.2305135), (-0.9834786, -1.6180346, 1.0760573), (-0.46108007, -1.9021137, 0.8814337), (0.11801072, -2.0000007, 0.66569453), (0.69710934, -1.9021136, 0.4499586), (1.2195287, -1.6180342, 0.25534305), (1.6341274, -1.1755707, 0.100897014), (1.9003184, -0.6180341, 0.0017374309), (1.9920421, 9.829262e-17, -0.03243046), (2.2481363, 0.6180345, 0.9390898), (1.981993, 1.1755713, 1.0382571), (1.5674661, 1.618035, 1.1927146), (1.045136, 1.9021144, 1.3873434), (0.4661322, 2.0000012, 1.603093), (-0.112867296, 1.9021143, 1.8188441), (-0.6351866, 1.6180348, 2.0134768), (-1.0496991, 1.1755708, 2.1679392), (-1.3158315, 0.61803424, 2.2671106), (-1.4075344, 3.205622e-16, 2.301283), (-1.3158315, -0.61803424, 2.2671106), (-1.0496991, -1.1755708, 2.1679392), (-0.63518643, -1.6180345, 2.0134766), (-0.112867124, -1.9021136, 1.818844), (0.46613213, -2.0000005, 1.603093), (1.0451355, -1.9021136, 1.3873436), (1.5674657, -1.6180344, 1.1927148), (1.9819919, -1.1755707, 1.0382575), (2.2481353, -0.6180341, 0.93909013), (2.3398423, 9.058244e-18, 0.9049195), (2.5950913, 0.61803436, 1.8765899), (2.3290174, 1.1755714, 1.9757915), (1.9145973, 1.6180352, 2.130301), (1.3923974, 1.9021143, 2.3249946), (0.81353533, 2.0000014, 2.5408137), (0.23467344, 1.9021143, 2.7566328), (-0.28752536, 1.6180348, 2.951326), (-0.7019445, 1.1755708, 3.1058347), (-0.968018, 0.6180342, 3.205036), (-1.0597006, 2.1764703e-16, 3.2392182), (-0.968018, -0.6180342, 3.205036), (-0.7019444, -1.1755707, 3.1058347), (-0.28752506, -1.6180345, 2.9513252), (0.23467359, -1.9021136, 2.7566323), (0.81353515, -2.0000005, 2.5408134), (1.392397, -1.9021134, 2.3249946), (1.9145964, -1.6180344, 2.130301), (2.3290164, -1.1755707, 1.9757918), (2.595091, -0.6180341, 1.8765907), (2.686774, -5.6634476e-17, 1.8424083), (2.9373105, 0.61803436, 2.8151023), (2.6714187, 1.1755714, 2.9144564), (2.2572825, 1.6180351, 3.0692034), (1.7354405, 1.9021142, 3.2641964), (1.1569743, 2.0000012, 3.4803476), (0.57850814, 1.9021143, 3.6964989), (0.056666404, 1.6180348, 3.8914917), (-0.3574695, 1.1755711, 4.0462384), (-0.62336105, 0.6180342, 4.1455927), (-0.714981, 1.10496176e-16, 4.1798277), (-0.62336105, -0.6180342, 4.1455927), (-0.35746935, -1.1755708, 4.0462384), (0.056666624, -1.6180344, 3.891491), (0.57850826, -1.9021136, 3.6964986), (1.1569743, -2.0000002, 3.4803476), (1.7354403, -1.9021136, 3.2641964), (2.2572818, -1.6180344, 3.0692039), (2.6714177, -1.1755707, 2.9144566), (2.937309, -0.61803406, 2.815103), (3.0289292, -1.1177999e-16, 2.7808678), (3.274679, 0.61803436, 3.7528987), (3.0091708, 1.1755712, 3.852625), (2.5956318, 1.6180348, 4.0079527), (2.0745428, 1.9021142, 4.203676), (1.4969112, 2.000001, 4.420638), (0.91927946, 1.9021139, 4.6375995), (0.39819053, 1.6180346, 4.833323), (-0.015347901, 1.1755711, 4.988651), (-0.28085595, 0.6180342, 5.088377), (-0.37234378, -1.0016173e-17, 5.1227403), (-0.28085595, -0.6180342, 5.088377), (-0.015347786, -1.1755707, 4.988651), (0.3981908, -1.6180344, 4.8333225), (0.91927963, -1.9021134, 4.6375995), (1.4969113, -2.0000002, 4.4206376), (2.0745423, -1.9021133, 4.203676), (2.5956314, -1.618034, 4.007952), (3.0091698, -1.1755705, 3.8526256), (3.274678, -0.61803406, 3.7528994), (3.3661659, -1.5601509e-16, 3.7185361), (3.6050034, 0.61803436, 4.6868777), (3.3403103, 1.1755713, 4.7874966), (2.9280412, 1.618035, 4.9442134), (2.4085524, 1.902114, 5.141689), (1.8326948, 2.000001, 5.3605924), (1.2568367, 1.902114, 5.5794954), (0.737348, 1.6180346, 5.7769704), (0.32507938, 1.1755708, 5.9336877), (0.060386676, 0.6180342, 6.034306), (-0.030820157, -7.148684e-17, 6.0689774), (0.060386676, -0.6180342, 6.034306), (0.32507953, -1.1755708, 5.933687), (0.73734814, -1.6180342, 5.7769694), (1.2568368, -1.9021133, 5.5794945), (1.8326945, -2.0000002, 5.360592), (2.4085524, -1.9021132, 5.141689), (2.928041, -1.6180341, 4.9442134), (3.3403094, -1.1755707, 4.787496), (3.6050026, -0.61803395, 4.6868777), (3.6962094, -1.8446613e-16, 4.652208), (3.8971775, 0.61803436, 5.6037397), (3.6355188, 1.1755712, 5.7077894), (3.2279768, 1.6180348, 5.8698516), (2.714443, 1.902114, 6.074062), (2.1451871, 2.000001, 6.3004303), (1.5759311, 1.9021138, 6.526799), (1.062398, 1.6180346, 6.731009), (0.6548557, 1.1755708, 6.8930707), (0.39319748, 0.6180341, 6.997121), (0.3030363, -1.04495536e-16, 7.0329742), (0.39319748, -0.6180341, 6.997121), (0.65485585, -1.1755707, 6.8930707), (1.0623981, -1.6180341, 6.731009), (1.5759312, -1.9021134, 6.5267987), (2.1451874, -2.0000005, 6.300431), (2.714443, -1.9021136, 6.0740623), (3.2279763, -1.6180342, 5.8698525), (3.6355186, -1.1755707, 5.7077904), (3.8971763, -0.618034, 5.6037393), (3.9873376, -2.0387808e-16, 5.5678864), (4.1384807, 0.61803436, 6.4810195), (3.8831675, 1.1755712, 6.591652), (3.485507, 1.6180351, 6.763966), (2.984426, 1.902114, 6.9810944), (2.4289732, 2.0000007, 7.2217827), (1.8735205, 1.9021143, 7.4624734), (1.3724394, 1.6180346, 7.6796007), (0.9747793, 1.1755708, 7.851915), (0.7194659, 0.6180342, 7.9625473), (0.6314909, -1.3099177e-16, 8.000669), (0.7194659, -0.6180342, 7.9625473), (0.9747794, -1.1755707, 7.851915), (1.3724396, -1.6180342, 7.679601), (1.8735206, -1.9021132, 7.4624724), (2.4289732, -2.0000002, 7.2217827), (2.9844255, -1.9021132, 6.981095), (3.4855065, -1.6180342, 6.763966), (3.8831668, -1.1755705, 6.591652), (4.13848, -0.618034, 6.481019), (4.2264547, -2.1521152e-16, 6.4428983), (4.2357802, 0.6180343, 7.489494), (3.9813466, 1.1755712, 7.593764), (3.5850573, 1.618035, 7.7561684), (3.0857034, 1.902114, 7.9608107), (2.5321655, 2.000001, 8.187657), (1.9786279, 1.902114, 8.414506), (1.4792744, 1.6180347, 8.619148), (1.082985, 1.1755708, 8.781553), (0.82855165, 0.6180341, 8.885823), (0.7408799, -1.2404783e-16, 8.921753), (0.82855165, -0.6180341, 8.885823), (1.0829852, -1.1755706, 8.781552), (1.4792745, -1.6180344, 8.619148), (1.9786279, -1.9021134, 8.414506), (2.5321655, -2.0000002, 8.187658), (3.0857031, -1.9021133, 7.9608107), (3.585057, -1.6180341, 7.7561684), (3.981346, -1.1755706, 7.5937643), (4.23578, -0.618034, 7.489494), (4.323451, -2.024406e-16, 7.453564), (4.1719594, 0.6180344, 8.593963), (3.915393, 1.1755712, 8.685064), (3.5157814, 1.6180352, 8.826957), (3.012241, 1.902114, 9.00575), (2.4540622, 2.000001, 9.203944), (1.8958839, 1.902114, 9.402139), (1.3923439, 1.6180347, 9.580932), (0.9927324, 1.1755708, 9.722824), (0.7361661, 0.6180341, 9.813925), (0.6477594, -8.600961e-17, 9.845316), (0.7361661, -0.6180341, 9.813925), (0.9927325, -1.1755707, 9.722824), (1.3923441, -1.6180344, 9.580933), (1.8958838, -1.9021134, 9.40214), (2.4540622, -2.0000002, 9.203943), (3.0122404, -1.9021132, 9.005749), (3.5157804, -1.6180342, 8.826956), (3.915392, -1.1755707, 8.685063), (4.1719575, -0.618034, 8.593964), (4.260365, -1.6400065e-16, 8.5625725), (3.1520922, 0.30901718, 8.924456), (3.0247352, 0.5877856, 8.969239), (2.8263714, 0.8090175, 9.038992), (2.5764189, 0.951057, 9.126885), (2.2993443, 1.0000005, 9.224314), (2.0222697, 0.951057, 9.321744), (1.7723174, 0.80901736, 9.4096365), (1.5739539, 0.5877854, 9.47939), (1.4465966, 0.30901706, 9.524173), (1.4027123, -8.2649696e-17, 9.539602), (1.4465966, -0.30901706, 9.524173), (1.5739539, -0.58778536, 9.479389), (1.7723175, -0.8090172, 9.409637), (2.0222697, -0.95105666, 9.321744), (2.2993443, -1.0000001, 9.224315), (2.5764186, -0.9510566, 9.126884), (2.8263717, -0.8090172, 9.038993), (3.0247347, -0.5877854, 8.96924), (3.1520915, -0.309017, 8.924456), (3.1959758, -1.190978e-16, 8.909025), (-0.22691555, 4.3869665e-16, -0.27416494), (2.1772082, -8.182419e-17, 9.240395)], 11: [(1.1358491, 0.30901724, -0.6185485), (0.99863076, 0.5877857, -0.58181846), (0.7849079, 0.80901766, -0.52460945), (0.5156014, 0.9510572, -0.45252082), (0.21707305, 1.0000007, -0.37260848), (-0.08145518, 0.9510572, -0.2926946), (-0.35076118, 0.8090175, -0.22060193), (-0.5644834, 0.58778554, -0.16338791), (-0.70170146, 0.30901712, -0.12665382), (-0.74898356, -2.4111817e-16, -0.11399603), (-0.70170146, -0.30901712, -0.12665382), (-0.5644834, -0.58778554, -0.16338794), (-0.35076106, -0.8090173, -0.22060196), (-0.08145508, -0.95105684, -0.2926946), (0.21707302, -1.0000004, -0.37260845), (0.5156012, -0.95105684, -0.45252073), (0.7849075, -0.80901724, -0.5246094), (0.99863017, -0.5877855, -0.5818183), (1.1358486, -0.30901706, -0.6185484), (1.1831309, -3.4705044e-16, -0.63120466), (2.0505474, 0.6180344, -0.8629431), (1.7761241, 1.1755714, -0.7893886), (1.3487029, 1.6180352, -0.67481875), (0.8101281, 1.9021144, -0.5304423), (0.21312313, 2.0000014, -0.3703866), (-0.38387144, 1.9021143, -0.21031702), (-0.92241895, 1.6180351, -0.06590409), (-1.3498061, 1.175571, 0.048710816), (-1.6242031, 0.6180343, 0.12230196), (-1.7187531, -1.6894432e-16, 0.14766043), (-1.6242031, -0.6180343, 0.12230196), (-1.3498061, -1.1755708, 0.048710786), (-0.9224187, -1.6180346, -0.065904155), (-0.3838713, -1.9021139, -0.21031708), (0.21312308, -2.0000007, -0.37038663), (0.81012774, -1.9021137, -0.53044224), (1.3487022, -1.6180344, -0.6748186), (1.7761229, -1.1755707, -0.78938824), (2.050547, -0.61803424, -0.86294293), (2.145107, -3.747678e-16, -0.88828737), (2.3077118, 0.6180345, 0.103327006), (2.0333354, 1.1755712, 0.1769116), (1.605988, 1.6180352, 0.29152694), (1.0675058, 1.9021144, 0.43595865), (0.47060293, 2.0000017, 0.59607273), (-0.12629049, 1.9021144, 0.75619745), (-0.66474736, 1.618035, 0.9006572), (-1.0920637, 1.175571, 1.0153072), (-1.3664154, 0.61803424, 1.0889199), (-1.4609497, -1.3833284e-16, 1.1142855), (-1.3664154, -0.61803424, 1.0889199), (-1.0920637, -1.175571, 1.0153073), (-0.6647472, -1.6180346, 0.90065706), (-0.12629032, -1.9021137, 0.7561974), (0.47060275, -2.0000007, 0.5960726), (1.0675055, -1.9021136, 0.43595874), (1.6059874, -1.6180342, 0.29152715), (2.0333343, -1.1755707, 0.17691189), (2.307711, -0.6180341, 0.10332731), (2.4022548, -3.329713e-16, 0.07797236), (2.5652168, 0.6180345, 1.0693269), (2.2909005, 1.1755713, 1.1429421), (1.8636446, 1.618035, 1.257603), (1.3252752, 1.9021144, 1.4020879), (0.7284929, 2.0000012, 1.5622555), (0.13171573, 1.9021143, 1.7224284), (-0.4066404, 1.6180348, 1.8669264), (-0.8338794, 1.1755708, 1.9816034), (-1.1081823, 0.61803424, 2.0552318), (-1.2027006, -1.03585486e-16, 2.0806026), (-1.1081823, -0.61803424, 2.0552318), (-0.8338793, -1.1755708, 1.9816036), (-0.40664023, -1.6180345, 1.8669263), (0.13171592, -1.9021136, 1.7224283), (0.72849286, -2.0000005, 1.5622556), (1.325275, -1.9021136, 1.402088), (1.863644, -1.6180344, 1.2576033), (2.2908993, -1.1755707, 1.1429424), (2.5652156, -0.6180341, 1.0693272), (2.6597385, -2.7631596e-16, 1.0439614), (2.8218102, 0.61803436, 2.035326), (2.5475757, 1.1755714, 2.1090183), (2.1204453, 1.6180352, 2.2237978), (1.5822302, 1.9021143, 2.368427), (0.9856147, 2.0000014, 2.5287504), (0.38899946, 1.9021143, 2.6890736), (-0.14921479, 1.6180348, 2.833703), (-0.5763439, 1.1755708, 2.9484813), (-0.8505776, 0.6180342, 3.0221736), (-0.9450721, -8.8395445e-17, 3.0475664), (-0.8505776, -0.6180342, 3.0221736), (-0.5763438, -1.1755707, 2.9484813), (-0.14921454, -1.6180345, 2.8337028), (0.38899958, -1.9021136, 2.6890733), (0.98561454, -2.0000005, 2.5287502), (1.5822299, -1.9021134, 2.3684275), (2.1204448, -1.6180344, 2.2237976), (2.5475748, -1.1755707, 2.1090188), (2.82181, -0.6180341, 2.0353267), (2.9163048, -2.4502487e-16, 2.009934), (3.0732503, 0.61803436, 3.0015628), (2.7992249, 1.1755714, 3.0755577), (2.3724194, 1.6180351, 3.1908069), (1.8346143, 1.9021142, 3.3360293), (1.2384527, 2.0000012, 3.49701), (0.6422909, 1.9021143, 3.65799), (0.10448571, 1.6180348, 3.803213), (-0.32231882, 1.1755711, 3.9184616), (-0.59634423, 0.6180342, 3.9924562), (-0.6907669, -7.487988e-17, 4.017953), (-0.59634423, -0.6180342, 3.9924562), (-0.3223187, -1.1755708, 3.9184613), (0.10448594, -1.6180344, 3.8032126), (0.64229107, -1.9021136, 3.6579902), (1.2384526, -2.0000002, 3.4970098), (1.8346139, -1.9021136, 3.3360298), (2.372419, -1.6180344, 3.1908073), (2.7992232, -1.1755707, 3.075558), (3.0732489, -0.61803406, 3.0015635), (3.1676717, -2.16885e-16, 2.9760668), (3.3204389, 0.61803436, 3.9658794), (3.0468466, 1.1755712, 4.040538), (2.6207163, 1.6180348, 4.1568203), (2.0837607, 1.9021142, 4.3033447), (1.4885411, 2.000001, 4.4657683), (0.89332145, 1.9021139, 4.6281924), (0.3563662, 1.6180346, 4.774716), (-0.06976384, 1.1755711, 4.8909993), (-0.3433562, 0.6180342, 4.9656563), (-0.43762964, -6.3268014e-17, 4.991382), (-0.3433562, -0.6180342, 4.9656563), (-0.06976372, -1.1755707, 4.8909993), (0.35636643, -1.6180344, 4.774716), (0.8933217, -1.9021134, 4.6281915), (1.4885411, -2.0000002, 4.465768), (2.0837603, -1.9021133, 4.3033442), (2.6207156, -1.618034, 4.15682), (3.0468454, -1.1755705, 4.040538), (3.320438, -0.61803406, 3.9658802), (3.4147117, -1.8376189e-16, 3.9401548), (3.5626998, 0.61803436, 4.923891), (3.2900147, 1.1755713, 5.000012), (2.865298, 1.618035, 5.1185718), (2.3301237, 1.902114, 5.2679667), (1.7368785, 2.000001, 5.4335732), (1.1436332, 1.902114, 5.599178), (0.6084593, 1.6180346, 5.7485723), (0.18374285, 1.1755708, 5.8671327), (-0.088941924, 0.6180342, 5.943253), (-0.18290263, -6.818472e-17, 5.9694824), (-0.088941924, -0.6180342, 5.943253), (0.18374296, -1.1755708, 5.8671327), (0.60845953, -1.6180342, 5.7485723), (1.1436336, -1.9021133, 5.599178), (1.7368785, -2.0000002, 5.433572), (2.3301234, -1.9021132, 5.2679663), (2.8652976, -1.6180341, 5.1185718), (3.2900138, -1.1755707, 5.0000114), (3.5626988, -0.61803395, 4.923891), (3.6566596, -1.7855185e-16, 4.8976626), (3.7765281, 0.61803436, 5.85173), (3.507207, 1.1755712, 5.933351), (3.0877295, 1.6180348, 6.0604796), (2.5591567, 1.902114, 6.2206707), (1.9732298, 2.000001, 6.3982434), (1.3873024, 1.9021138, 6.575816), (0.85873, 1.6180346, 6.7360067), (0.43925264, 1.1755708, 6.8631353), (0.1699316, 0.6180341, 6.944756), (0.077129945, -7.8890955e-17, 6.972881), (0.1699316, -0.6180341, 6.944756), (0.4392528, -1.1755707, 6.8631353), (0.85873026, -1.6180341, 6.7360067), (1.3873025, -1.9021134, 6.5758157), (1.9732298, -2.0000005, 6.398244), (2.5591567, -1.9021136, 6.220671), (3.087729, -1.6180342, 6.06048), (3.5072067, -1.1755707, 5.9333525), (3.7765272, -0.618034, 5.851731), (3.869329, -1.817101e-16, 5.823605), (3.9729555, 0.61803436, 6.7146034), (3.7107434, 1.1755712, 6.807418), (3.302338, 1.6180351, 6.9519787), (2.7877176, 1.902114, 7.134136), (2.2172565, 2.0000007, 7.33606), (1.6467956, 1.9021143, 7.5379844), (1.1321752, 1.6180346, 7.720141), (0.7237703, 1.1755708, 7.8647027), (0.46155825, 0.6180342, 7.957516), (0.37120613, -9.489996e-17, 7.9894977), (0.46155825, -0.6180342, 7.957516), (0.72377044, -1.1755707, 7.864702), (1.1321753, -1.6180342, 7.720141), (1.6467957, -1.9021132, 7.537984), (2.2172565, -2.0000002, 7.3360605), (2.7877176, -1.9021132, 7.1341367), (3.3023374, -1.6180342, 6.9519787), (3.7107422, -1.1755705, 6.807418), (3.9729545, -0.618034, 6.714604), (4.063307, -1.8538481e-16, 6.6826224), (4.055603, 0.6180343, 7.7000327), (3.79531, 1.1755712, 7.7906113), (3.3898945, 1.618035, 7.9316907), (2.879041, 1.902114, 8.109461), (2.312756, 2.000001, 8.3065195), (1.7464708, 1.902114, 8.50358), (1.2356178, 1.6180347, 8.681352), (0.83020246, 1.1755708, 8.82243), (0.56990975, 0.6180341, 8.913007), (0.48021916, -8.549644e-17, 8.944219), (0.56990975, -0.6180341, 8.913007), (0.8302025, -1.1755706, 8.82243), (1.235618, -1.6180344, 8.681351), (1.746471, -1.9021134, 8.50358), (2.312756, -2.0000002, 8.3065195), (2.879041, -1.9021133, 8.109461), (3.3898942, -1.6180341, 7.9316907), (3.7953093, -1.1755706, 7.7906117), (4.0556016, -0.618034, 7.700033), (4.1452928, -1.7070706e-16, 7.668822), (4.001593, 0.6180344, 8.773828), (3.740316, 1.1755712, 8.854938), (3.3333673, 1.6180352, 8.98127), (2.820582, 1.902114, 9.140455), (2.2521546, 2.000001, 9.316916), (1.683728, 1.902114, 9.493376), (1.170943, 1.6180347, 9.652563), (0.76399446, 1.1755708, 9.778894), (0.50271744, 0.6180341, 9.860003), (0.4126875, -5.0348432e-17, 9.887953), (0.50271744, -0.6180341, 9.860003), (0.76399446, -1.1755707, 9.778894), (1.1709431, -1.6180344, 9.652563), (1.6837281, -1.9021134, 9.493376), (2.2521546, -2.0000002, 9.316916), (2.820581, -1.9021132, 9.140455), (3.3333664, -1.6180342, 8.981269), (3.7403147, -1.1755707, 8.854937), (4.001592, -0.618034, 8.773828), (4.0916214, -1.3436926e-16, 8.745879), (3.0129476, 0.30901718, 9.0461445), (2.8835683, 0.5877856, 9.087432), (2.6820552, 0.8090175, 9.151742), (2.4281337, 0.951057, 9.232776), (2.1466596, 1.0000005, 9.322603), (1.8651856, 0.951057, 9.41243), (1.6112641, 0.80901736, 9.493466), (1.4097514, 0.5877854, 9.557775), (1.2803719, 0.30901706, 9.599065), (1.2357907, -5.61298e-17, 9.613292), (1.2803719, -0.30901706, 9.599065), (1.4097513, -0.58778536, 9.557775), (1.6112643, -0.8090172, 9.493465), (1.8651855, -0.95105666, 9.412432), (2.1466596, -1.0000001, 9.322604), (2.4281335, -0.9510566, 9.232776), (2.682055, -0.8090172, 9.151743), (2.8835678, -0.5877854, 9.087433), (3.012947, -0.309017, 9.046144), (3.0575278, -9.5645425e-17, 9.031915), (0.21738862, -2.9688084e-16, -0.3727856), (2.0633805, -6.288506e-17, 9.327094)], 12: [(1.8534001, 0.30901724, -0.45971), (1.7120187, 0.5877857, -0.44591892), (1.4918115, 0.80901766, -0.42443776), (1.2143341, 0.9510572, -0.39736813), (0.9067479, 1.0000007, -0.3673588), (0.59916115, 0.9510572, -0.33734676), (0.3216832, 0.8090175, -0.31027022), (0.101475365, 0.58778554, -0.2887804), (-0.03990681, 0.30901712, -0.27498233), (-0.08862378, -8.235534e-16, -0.27022767), (-0.03990681, -0.30901712, -0.27498233), (0.10147543, -0.58778554, -0.28878045), (0.32168332, -0.8090173, -0.31027022), (0.59916115, -0.95105684, -0.3373468), (0.9067478, -1.0000004, -0.36735877), (1.2143339, -0.95105684, -0.39736813), (1.4918112, -0.80901724, -0.42443773), (1.712018, -0.5877855, -0.44591883), (1.8533995, -0.30901706, -0.45970994), (1.9021162, -8.4542194e-16, -0.46446192), (2.7945206, 0.6180344, -0.5514033), (2.5117476, 1.1755714, -0.5236541), (2.0713203, 1.6180352, -0.4804219), (1.5163563, 1.9021144, -0.42592543), (0.9011822, 2.0000014, -0.36548865), (0.2860171, 1.9021143, -0.3050231), (-0.26892337, 1.6180351, -0.25045153), (-0.7093211, 1.175571, -0.20712633), (-0.99207133, 0.6180343, -0.17930196), (-1.0895, -7.436088e-16, -0.16971289), (-0.99207133, -0.6180343, -0.17930196), (-0.709321, -1.1755708, -0.20712635), (-0.2689231, -1.6180346, -0.2504516), (0.2860173, -1.9021139, -0.3050232), (0.9011821, -2.0000007, -0.36548865), (1.516356, -1.9021137, -0.42592543), (2.0713196, -1.6180344, -0.4804218), (2.5117462, -1.1755707, -0.523654), (2.79452, -0.61803424, -0.55140334), (2.891957, -8.016913e-16, -0.56096363), (2.8900275, 0.6180345, 0.44380364), (2.6073077, 1.1755712, 0.47162056), (2.1669648, 1.6180352, 0.51495606), (1.6121073, 1.9021144, 0.56957835), (0.99705154, 2.0000017, 0.63014895), (0.3820044, 1.9021144, 0.69074154), (-0.17282978, 1.618035, 0.7454219), (-0.6131434, 1.175571, 0.7888291), (-0.89583987, 0.61803424, 0.8167043), (-0.99324983, -5.901089e-16, 0.8263102), (-0.89583987, -0.61803424, 0.8167043), (-0.6131434, -1.175571, 0.78882915), (-0.17282952, -1.6180346, 0.7454218), (0.3820046, -1.9021137, 0.69074154), (0.99705136, -2.0000007, 0.6301488), (1.612107, -1.9021136, 0.5695784), (2.1669643, -1.6180342, 0.5149561), (2.6073065, -1.1755707, 0.47162065), (2.8900263, -0.6180341, 0.44380373), (2.987445, -6.592539e-16, 0.43421978), (2.9861484, 0.6180345, 1.4387891), (2.703496, 1.1755713, 1.4666743), (2.2632563, 1.618035, 1.510111), (1.7085264, 1.9021144, 1.5648527), (1.093608, 2.0000012, 1.625544), (0.47869444, 1.9021143, 1.6862457), (-0.076022916, 1.6180348, 1.7410141), (-0.5162463, 1.1755708, 1.7844841), (-0.7988859, 0.61803424, 1.8123962), (-0.8962767, -4.1314223e-16, 1.8220147), (-0.7988859, -0.61803424, 1.8123962), (-0.51624626, -1.1755708, 1.7844843), (-0.07602268, -1.6180345, 1.7410141), (0.47869462, -1.9021136, 1.6862457), (1.0936078, -2.0000005, 1.6255441), (1.708526, -1.9021136, 1.5648526), (2.2632558, -1.6180344, 1.5101113), (2.703495, -1.1755707, 1.4666742), (2.9861474, -0.6180341, 1.4387891), (3.0835423, -4.9042313e-16, 1.4291812), (3.0813901, 0.61803436, 2.4335103), (2.7988186, 1.1755714, 2.4615378), (2.3587027, 1.6180352, 2.505192), (1.8041244, 1.9021143, 2.5601995), (1.1893709, 2.0000014, 2.621176), (0.5746174, 1.9021143, 2.6821523), (0.02004051, 1.6180348, 2.7371597), (-0.4200741, 1.1755708, 2.7808135), (-0.70264506, 0.6180342, 2.808841), (-0.80001235, -3.042099e-16, 2.8184988), (-0.70264506, -0.6180342, 2.808841), (-0.420074, -1.1755707, 2.7808135), (0.020040752, -1.6180345, 2.7371595), (0.57461756, -1.9021136, 2.682152), (1.1893706, -2.0000005, 2.6211758), (1.804124, -1.9021134, 2.5601995), (2.3587017, -1.6180344, 2.5051918), (2.7988176, -1.1755707, 2.4615378), (3.0813894, -0.6180341, 2.4335108), (3.178758, -3.7944172e-16, 2.423853), (3.1714306, 0.61803436, 3.427021), (2.8890436, 1.1755714, 3.4555662), (2.4492145, 1.6180351, 3.5000272), (1.8949976, 1.9021142, 3.5560517), (1.2806439, 2.0000012, 3.6181548), (0.66629016, 1.9021143, 3.6802578), (0.11207386, 1.6180348, 3.7362819), (-0.3277547, 1.1755711, 3.7807426), (-0.610142, 0.6180342, 3.8092885), (-0.707446, -1.9521122e-16, 3.8191242), (-0.610142, -0.6180342, 3.8092885), (-0.32775453, -1.1755708, 3.7807426), (0.11207409, -1.6180344, 3.7362816), (0.66629034, -1.9021136, 3.6802576), (1.2806438, -2.0000002, 3.6181545), (1.8949975, -1.9021136, 3.5560515), (2.4492137, -1.6180344, 3.500028), (2.889042, -1.1755707, 3.455567), (3.1714292, -0.61803406, 3.4270208), (3.2687335, -2.807647e-16, 3.4171848), (3.2588155, 0.61803436, 4.416974), (2.9768057, 1.1755712, 4.4465985), (2.5375643, 1.6180348, 4.492739), (1.9840884, 1.9021142, 4.5508795), (1.3705555, 2.000001, 4.615329), (0.7570227, 1.9021139, 4.679778), (0.20354694, 1.6180346, 4.7379184), (-0.23569389, 1.1755711, 4.784059), (-0.51770383, 0.6180342, 4.8136835), (-0.6148779, -8.0578436e-17, 4.8238907), (-0.51770383, -0.6180342, 4.8136835), (-0.23569375, -1.1755707, 4.784059), (0.2035472, -1.6180344, 4.7379184), (0.757023, -1.9021134, 4.679778), (1.3705556, -2.0000002, 4.615329), (1.9840882, -1.9021133, 4.550879), (2.5375638, -1.618034, 4.492739), (2.9768043, -1.1755705, 4.446598), (3.2588146, -0.61803406, 4.4169745), (3.3559887, -1.8124046e-16, 4.406767), (3.345675, 0.61803436, 5.397767), (3.064447, 1.1755713, 5.4296556), (2.626424, 1.618035, 5.479323), (2.0744827, 1.902114, 5.5419073), (1.4626517, 2.000001, 5.6112843), (0.8508205, 1.902114, 5.68066), (0.29887965, 1.6180346, 5.7432437), (-0.13914299, 1.1755708, 5.792912), (-0.42037082, 0.6180342, 5.8248005), (-0.51727533, -3.285804e-17, 5.8357887), (-0.42037082, -0.6180342, 5.8248005), (-0.13914287, -1.1755708, 5.7929115), (0.2988799, -1.6180342, 5.7432437), (0.8508207, -1.9021133, 5.6806593), (1.4626517, -2.0000002, 5.6112833), (2.0744824, -1.9021132, 5.5419073), (2.6264231, -1.6180341, 5.4793224), (3.064446, -1.1755707, 5.429655), (3.345674, -0.61803395, 5.397767), (3.442579, -1.3912238e-16, 5.3867793), (3.4252234, 0.61803436, 6.332738), (3.146884, 1.1755712, 6.3730245), (2.7133613, 1.6180348, 6.4357715), (2.1670902, 1.902114, 6.5148373), (1.5615444, 2.000001, 6.6024837), (0.9559987, 1.9021138, 6.690129), (0.40972808, 1.6180346, 6.769195), (-0.023794642, 1.1755708, 6.831942), (-0.30213338, 0.6180341, 6.872228), (-0.39804232, -1.4626484e-17, 6.886111), (-0.30213338, -0.6180341, 6.872228), (-0.023794524, -1.1755707, 6.8319426), (0.40972832, -1.6180341, 6.769195), (0.9559989, -1.9021134, 6.690129), (1.5615445, -2.0000005, 6.602484), (2.1670902, -1.9021136, 6.514839), (2.7133605, -1.6180342, 6.4357724), (3.1468835, -1.1755707, 6.3730245), (3.425222, -0.618034, 6.332738), (3.5211313, -1.1930828e-16, 6.3188562), (3.547756, 0.61803436, 7.1778393), (3.2755754, 1.1755712, 7.235847), (2.8516438, 1.6180351, 7.326197), (2.317459, 1.902114, 7.4400444), (1.7253106, 2.0000007, 7.5662456), (1.1331624, 1.9021143, 7.692448), (0.59897774, 1.6180346, 7.8062944), (0.17504653, 1.1755708, 7.8966446), (-0.09713405, 0.6180342, 7.954653), (-0.19092105, -1.3221038e-17, 7.974641), (-0.09713405, -0.6180342, 7.954653), (0.17504665, -1.1755707, 7.8966446), (0.59897804, -1.6180342, 7.806295), (1.1331625, -1.9021132, 7.692447), (1.7253107, -2.0000002, 7.5662456), (2.3174586, -1.9021132, 7.440045), (2.851643, -1.6180342, 7.326197), (3.2755744, -1.1755705, 7.235847), (3.5477548, -0.618034, 7.177839), (3.641542, -1.1163377e-16, 7.1578507), (3.6089497, 0.6180343, 8.128229), (3.3390656, 1.1755712, 8.190708), (2.9187117, 1.618035, 8.28802), (2.389035, 1.902114, 8.410641), (1.8018842, 2.000001, 8.546567), (1.2147331, 1.902114, 8.682494), (0.68505687, 1.6180347, 8.805116), (0.26470327, 1.1755708, 8.902428), (-0.005180235, 0.6180341, 8.964906), (-0.09817575, 1.0041178e-18, 8.986434), (-0.005180235, -0.6180341, 8.964906), (0.26470342, -1.1755706, 8.902428), (0.6850571, -1.6180344, 8.805115), (1.2147336, -1.9021134, 8.682493), (1.8018843, -2.0000002, 8.546568), (2.3890347, -1.9021133, 8.410641), (2.9187112, -1.6180341, 8.288021), (3.3390646, -1.1755706, 8.190708), (3.6089485, -0.618034, 8.128229), (3.7019436, -9.44526e-17, 8.106701), (3.5796988, 0.6180344, 9.151504), (3.309918, 1.1755712, 9.211053), (2.8897238, 1.6180352, 9.303805), (2.3602483, 1.902114, 9.420679), (1.7733208, 2.000001, 9.550237), (1.186393, 1.902114, 9.679791), (0.6569179, 1.6180347, 9.796665), (0.23672433, 1.1755708, 9.889419), (-0.03305665, 0.6180341, 9.948968), (-0.12601672, 3.1459826e-17, 9.969487), (-0.03305665, -0.6180341, 9.948968), (0.23672447, -1.1755707, 9.889419), (0.6569182, -1.6180344, 9.796666), (1.1863931, -1.9021134, 9.679792), (1.7733208, -2.0000002, 9.550237), (2.360248, -1.9021132, 9.420679), (2.889723, -1.6180342, 9.303806), (3.3099172, -1.1755707, 9.211054), (3.5796978, -0.618034, 9.151504), (3.6726577, -6.293984e-17, 9.130984), (2.6482382, 0.30901718, 9.323632), (2.514589, 0.5877856, 9.356471), (2.306425, 0.8090175, 9.407621), (2.044124, 0.951057, 9.472072), (1.7533605, 1.0000005, 9.543517), (1.4625974, 0.951057, 9.614961), (1.200296, 0.80901736, 9.679412), (0.99213266, 0.5877854, 9.73056), (0.8584836, 0.30901706, 9.763399), (0.8124312, 1.0562647e-17, 9.774714), (0.8584836, -0.30901706, 9.763399), (0.9921328, -0.58778536, 9.73056), (1.2002962, -0.8090172, 9.679411), (1.4625974, -0.95105666, 9.614961), (1.7533606, -1.0000001, 9.543518), (2.044124, -0.9510566, 9.472072), (2.3064253, -0.8090172, 9.407622), (2.5145886, -0.5877854, 9.356473), (2.6482372, -0.309017, 9.323633), (2.6942897, -3.511382e-17, 9.312318), (0.9071916, -8.4232996e-16, -0.36750782), (1.7376039, -9.540728e-18, 9.538212)], 13: [(2.6953368, 0.30901724, -0.034549654), (2.554266, 0.5877857, -0.051250003), (2.3345425, 0.80901766, -0.07725999), (2.0576737, 0.9510572, -0.110031895), (1.7507616, 1.0000007, -0.14635631), (1.443848, 0.9510572, -0.18267685), (1.1669766, 0.8090175, -0.21543862), (0.94724953, 0.58778554, -0.24143605), (0.80617577, 0.30901712, -0.25812626), (0.757565, -1.1915342e-15, -0.2638771), (0.80617577, -0.30901712, -0.25812626), (0.9472497, -0.58778554, -0.24143606), (1.1669767, -0.8090173, -0.2154386), (1.4438479, -0.95105684, -0.18267684), (1.7507614, -1.0000004, -0.14635631), (2.0576737, -0.95105684, -0.11003192), (2.3345418, -0.80901724, -0.077260025), (2.5542653, -0.5877855, -0.051250067), (2.6953363, -0.30901706, -0.034549724), (2.7439456, -1.1597895e-15, -0.028795019), (3.6329634, 0.6180344, 0.07625774), (3.3507593, 1.1755714, 0.04310309), (2.9112155, 1.6180352, -0.008517753), (2.3573596, 1.9021144, -0.07353081), (1.7434078, 2.0000014, -0.14555489), (1.1294584, 1.9021143, -0.21753277), (0.57560885, 1.6180351, -0.28242496), (0.13607296, 1.175571, -0.3338964), (-0.1461257, 0.6180343, -0.36693043), (-0.24336454, -1.113101e-15, -0.37831083), (-0.1461257, -0.6180343, -0.36693043), (0.1360731, -1.1755708, -0.33389637), (0.5756091, -1.6180346, -0.28242496), (1.1294587, -1.9021139, -0.21753277), (1.7434078, -2.0000007, -0.1455549), (2.3573592, -1.9021137, -0.07353086), (2.9112148, -1.6180344, -0.008517836), (3.350758, -1.1755707, 0.043102965), (3.6329632, -0.61803424, 0.07625763), (3.7302036, -1.0743502e-15, 0.08768409), (3.513758, 0.6180345, 1.0687326), (3.2316017, 1.1755712, 1.035694), (2.7921352, 1.6180352, 0.98425), (2.2383776, 1.9021144, 0.91945356), (1.6245377, 2.0000017, 0.8476605), (1.0107012, 1.9021144, 0.7759031), (0.4569553, 1.618035, 0.71120054), (0.017502656, 1.175571, 0.6598727), (-0.26464224, 0.61803424, 0.62692785), (-0.3618624, -8.7821917e-16, 0.61557746), (-0.26464224, -0.61803424, 0.62692785), (0.017502777, -1.175571, 0.6598729), (0.45695555, -1.6180346, 0.7112006), (1.0107014, -1.9021137, 0.77590317), (1.6245373, -2.0000007, 0.84766036), (2.2383773, -1.9021136, 0.91945356), (2.7921345, -1.6180342, 0.98425), (3.231601, -1.1755707, 1.0356939), (3.5137565, -0.6180341, 1.0687325), (3.6109812, -8.617692e-16, 1.0801189), (3.3954818, 0.6180345, 2.0611424), (3.1133883, 1.1755713, 2.02822), (2.6740186, 1.618035, 1.9769495), (2.1203833, 1.9021144, 1.912358), (1.5066758, 2.0000012, 1.8407739), (0.89297146, 1.9021143, 1.7692064), (0.33934307, 1.6180348, 1.7046582), (-0.10001717, 1.1755708, 1.6534415), (-0.38210312, 0.61803424, 1.620563), (-0.47930315, -6.101514e-16, 1.6092346), (-0.38210312, -0.61803424, 1.620563), (-0.10001704, -1.1755708, 1.6534418), (0.3393433, -1.6180345, 1.7046582), (0.8929716, -1.9021136, 1.7692065), (1.5066758, -2.0000005, 1.8407738), (2.1203825, -1.9021136, 1.9123579), (2.674018, -1.6180344, 1.9769496), (3.113387, -1.1755707, 2.0282197), (3.3954804, -0.6180341, 2.061142), (3.4926832, -6.170029e-16, 2.0724866), (3.2764745, 0.61803436, 3.0529506), (2.9944367, 1.1755714, 3.0202498), (2.5551527, 1.6180352, 2.9693167), (2.0016227, 1.9021143, 2.905137), (1.3880311, 2.0000014, 2.8339944), (0.77443963, 1.9021143, 2.7628515), (0.22091095, 1.6180348, 2.698672), (-0.21837178, 1.1755708, 2.6477392), (-0.50040865, 0.6180342, 2.6150384), (-0.5975919, -4.3454304e-16, 2.6037703), (-0.50040865, -0.6180342, 2.6150384), (-0.21837167, -1.1755707, 2.6477392), (0.22091118, -1.6180345, 2.698672), (0.77443975, -1.9021136, 2.762851), (1.3880308, -2.0000005, 2.8339937), (2.0016222, -1.9021134, 2.9051368), (2.5551517, -1.6180344, 2.9693162), (2.9944355, -1.1755707, 3.0202496), (3.276474, -0.6180341, 3.0529513), (3.3736582, -4.464888e-16, 3.0642195), (3.1528015, 0.61803436, 4.0416245), (2.8708413, 1.1755714, 4.009693), (2.431678, 1.6180351, 3.9599583), (1.8783005, 1.9021142, 3.8972893), (1.2648767, 2.0000012, 3.82782), (0.65145296, 1.9021143, 3.7583506), (0.09807548, 1.6180348, 3.6956813), (-0.34108728, 1.1755711, 3.6459465), (-0.6230472, 0.6180342, 3.614015), (-0.7202038, -2.5792121e-16, 3.603012), (-0.6230472, -0.6180342, 3.614015), (-0.34108716, -1.1755708, 3.6459465), (0.09807571, -1.6180344, 3.695681), (0.65145314, -1.9021136, 3.7583506), (1.2648767, -2.0000002, 3.8278196), (1.8783003, -1.9021136, 3.8972893), (2.4316776, -1.6180344, 3.9599588), (2.8708403, -1.1755707, 4.009693), (3.1528, -0.61803406, 4.0416245), (3.2499568, -2.9300905e-16, 4.0526276), (3.029094, 0.61803436, 5.025156), (2.7472932, 1.1755712, 4.994781), (2.3083777, 1.6180348, 4.9474716), (1.7553124, 1.9021142, 4.8878574), (1.1422346, 2.000001, 4.821776), (0.52915686, 1.9021139, 4.755694), (-0.023908447, 1.6180346, 4.6960797), (-0.4628235, 1.1755711, 4.648771), (-0.7446243, 0.6180342, 4.6183963), (-0.8417262, -7.1916274e-17, 4.6079297), (-0.7446243, -0.6180342, 4.6183963), (-0.4628234, -1.1755707, 4.648771), (-0.0239082, -1.6180344, 4.69608), (0.52915704, -1.9021134, 4.7556934), (1.1422346, -2.0000002, 4.821776), (1.7553121, -1.9021133, 4.887857), (2.3083773, -1.618034, 4.9474707), (2.7472923, -1.1755705, 4.99478), (3.029093, -0.61803406, 5.0251555), (3.1261954, -1.4106104e-16, 5.0356216), (2.9113986, 0.61803436, 5.9973874), (2.6299288, 1.1755713, 5.970192), (2.1915298, 1.618035, 5.927834), (1.6391146, 1.902114, 5.8744597), (1.0267578, 2.000001, 5.8152947), (0.41440114, 1.902114, 5.7561297), (-0.13801378, 1.6180346, 5.7027555), (-0.57641256, 1.1755708, 5.660398), (-0.85788196, 0.6180342, 5.633202), (-0.9548696, 2.159664e-17, 5.6238317), (-0.85788196, -0.6180342, 5.633202), (-0.57641244, -1.1755708, 5.6603975), (-0.13801351, -1.6180342, 5.702755), (0.4144013, -1.9021133, 5.756129), (1.0267578, -2.0000002, 5.8152943), (1.6391144, -1.9021132, 5.8744597), (2.1915293, -1.6180341, 5.9278336), (2.6299279, -1.1755707, 5.970191), (2.9113972, -0.61803395, 5.997387), (3.0083854, -6.20585e-17, 6.006758), (2.8184793, 0.61803436, 6.911028), (2.5382361, 1.1755712, 6.8955235), (2.1017468, 1.6180348, 6.871374), (1.5517381, 1.902114, 6.8409443), (0.9420488, 2.000001, 6.8072114), (0.33235958, 1.9021138, 6.7734804), (-0.21764888, 1.6180346, 6.74305), (-0.65413797, 1.1755708, 6.7189), (-0.93438125, 0.6180341, 6.703396), (-1.0309465, 7.290943e-17, 6.698053), (-0.93438125, -0.6180341, 6.703396), (-0.6541379, -1.1755707, 6.7189), (-0.21764864, -1.6180341, 6.7430496), (0.33235976, -1.9021134, 6.7734804), (0.94204885, -2.0000005, 6.807213), (1.5517379, -1.9021136, 6.840945), (2.101746, -1.6180342, 6.8713756), (2.5382354, -1.1755707, 6.8955245), (2.818478, -0.618034, 6.9110284), (2.9150434, -1.575067e-17, 6.916371), (2.8517807, 0.61803436, 7.7233863), (2.5741403, 1.1755712, 7.733091), (2.141705, 1.6180351, 7.748207), (1.5968049, 1.902114, 7.767254), (0.9927786, 2.0000007, 7.7883673), (0.38875237, 1.9021143, 7.809482), (-0.1561475, 1.6180346, 7.8285275), (-0.5885824, 1.1755708, 7.843643), (-0.8662227, 0.6180342, 7.8533483), (-0.96189094, 9.7891757e-17, 7.856693), (-0.8662227, -0.6180342, 7.8533483), (-0.58858234, -1.1755707, 7.8436437), (-0.15614724, -1.6180342, 7.828528), (0.38875255, -1.9021132, 7.8094816), (0.99277854, -2.0000002, 7.7883673), (1.5968047, -1.9021132, 7.7672534), (2.1417043, -1.6180342, 7.7482066), (2.5741394, -1.1755705, 7.733091), (2.8517792, -0.618034, 7.7233863), (2.9474478, 4.630903e-18, 7.720042), (2.8939605, 0.6180343, 8.627404), (2.617164, 1.1755712, 8.650025), (2.1860433, 1.618035, 8.685259), (1.6427995, 1.902114, 8.729652), (1.0406094, 2.000001, 8.778868), (0.43841937, 1.902114, 8.82808), (-0.10482401, 1.6180347, 8.872477), (-0.53594434, 1.1755708, 8.907708), (-0.8127407, 0.6180341, 8.930329), (-0.90811807, 1.200723e-16, 8.938124), (-0.8127407, -0.6180341, 8.930329), (-0.5359443, -1.1755706, 8.907708), (-0.10482375, -1.6180344, 8.872476), (0.4384196, -1.9021134, 8.828081), (1.0406095, -2.0000002, 8.778867), (1.6427994, -1.9021133, 8.729654), (2.1860428, -1.6180341, 8.685258), (2.6171632, -1.1755706, 8.650025), (2.8939593, -0.618034, 8.627404), (2.9893367, 2.350169e-17, 8.619611), (2.9094822, 0.6180344, 9.591789), (2.632538, 1.1755712, 9.620121), (2.2011874, 1.6180352, 9.6642475), (1.6576536, 1.902114, 9.71985), (1.0551419, 2.000001, 9.781486), (0.4526303, 1.902114, 9.843122), (-0.09090309, 1.6180347, 9.898724), (-0.5222536, 1.1755708, 9.942849), (-0.79919773, 0.6180341, 9.971182), (-0.89462614, 1.4591938e-16, 9.980944), (-0.79919773, -0.6180341, 9.971182), (-0.5222535, -1.1755707, 9.942849), (-0.09090283, -1.6180344, 9.898723), (0.45263055, -1.9021134, 9.843122), (1.0551419, -2.0000002, 9.781486), (1.6576531, -1.9021132, 9.719849), (2.2011867, -1.6180342, 9.664247), (2.6325374, -1.1755707, 9.620121), (2.9094813, -0.618034, 9.591789), (3.0049093, 4.6920745e-17, 9.582028), (2.0710018, 0.30901718, 9.64652), (1.9330243, 0.5877856, 9.6666), (1.7181191, 0.8090175, 9.697878), (1.447323, 0.951057, 9.737288), (1.147143, 1.0000005, 9.780975), (0.8469633, 0.951057, 9.824663), (0.5761672, 0.80901736, 9.864075), (0.36126226, 0.5877854, 9.895351), (0.22328472, 0.30901706, 9.915432), (0.175741, 1.0865999e-16, 9.922351), (0.22328472, -0.30901706, 9.915432), (0.3612623, -0.58778536, 9.89535), (0.5761673, -0.8090172, 9.864075), (0.84696335, -0.95105666, 9.824663), (1.1471431, -1.0000001, 9.780977), (1.447323, -0.9510566, 9.737288), (1.7181191, -0.8090172, 9.697879), (1.933024, -0.5877854, 9.666601), (2.0710013, -0.309017, 9.64652), (2.118545, 5.8101285e-17, 9.6396), (1.7513471, -1.1860583e-15, -0.14642021), (1.2197698, 7.308717e-17, 9.780573)], 14: [(3.5000997, 0.30901724, 0.6976816), (3.3673966, 0.5877857, 0.64698), (3.1607056, 0.80901766, 0.56801206), (2.9002585, 0.9510572, 0.46850997), (2.6115487, 1.0000007, 0.3582155), (2.3228354, 0.9510572, 0.24792592), (2.0623822, 0.8090175, 0.14843674), (1.8556836, 0.58778554, 0.06948481), (1.7229743, 0.30901712, 0.018796036), (1.6772456, -7.4412416e-16, 0.0013301659), (1.7229743, -0.30901712, 0.018796036), (1.8556838, -0.58778554, 0.06948484), (2.0623822, -0.8090173, 0.14843678), (2.3228352, -0.95105684, 0.24792594), (2.6115484, -1.0000004, 0.35821548), (2.900258, -0.95105684, 0.4685099), (3.1607053, -0.80901724, 0.56801194), (3.367396, -0.5877855, 0.64697975), (3.5000987, -0.30901706, 0.69768137), (3.5458248, -7.8630545e-16, 0.7151521), (4.3807034, 0.6180344, 1.0337873), (4.1151524, 1.1755714, 0.932699), (3.7015402, 1.6180352, 0.77527577), (3.1803513, 1.9021144, 0.576956), (2.6025987, 2.0000014, 0.35717624), (2.0248349, 1.9021143, 0.13745977), (1.5036185, 1.6180351, -0.060694534), (1.0899724, 1.175571, -0.21791333), (0.8243925, 0.6180343, -0.31883654), (0.73287946, -6.879707e-16, -0.35360909), (0.8243925, -0.6180343, -0.31883654), (1.0899725, -1.1755708, -0.21791328), (1.5036187, -1.6180346, -0.06069445), (2.0248353, -1.9021139, 0.13745983), (2.6025987, -2.0000007, 0.35717627), (3.180351, -1.9021137, 0.57695585), (3.7015395, -1.6180344, 0.77527547), (4.1151514, -1.1755707, 0.9326986), (4.380703, -0.61803424, 1.033787), (4.4722056, -7.728822e-16, 1.0686225), (4.022261, 0.6180345, 1.9667032), (3.756736, 1.1755712, 1.865782), (3.3431687, 1.6180352, 1.708615), (2.8220396, 1.9021144, 1.5106096), (2.2443585, 2.0000017, 1.291166), (1.6666714, 1.9021144, 1.0717716), (1.1455283, 1.618035, 0.8738955), (0.7319439, 1.175571, 0.71688837), (0.46640494, 0.61803424, 0.6160968), (0.37490618, -5.369268e-16, 0.5813686), (0.46640494, -0.61803424, 0.6160968), (0.731944, -1.175571, 0.7168885), (1.1455286, -1.6180346, 0.87389565), (1.6666716, -1.9021137, 1.0717717), (2.244358, -2.0000007, 1.2911657), (2.8220394, -1.9021136, 1.5106094), (3.3431683, -1.6180342, 1.708615), (3.7567353, -1.1755707, 1.8657818), (4.02226, -0.6180341, 1.9667027), (4.113754, -6.1742995e-16, 2.0014803), (3.6650453, 0.6180345, 2.8998313), (3.3995612, 1.1755713, 2.7990792), (2.9860592, 1.618035, 2.6421633), (2.465016, 1.9021144, 2.4444563), (1.8874329, 2.0000012, 2.2253182), (1.3098487, 1.9021143, 2.0062032), (0.78880095, 1.6180348, 1.8085558), (0.3752946, 1.1755708, 1.6517146), (0.10980673, 0.61803424, 1.5510222), (0.018325824, -3.7603988e-16, 1.5163273), (0.10980673, -0.61803424, 1.5510222), (0.37529472, -1.1755708, 1.6517147), (0.78880125, -1.6180345, 1.8085558), (1.3098488, -1.9021136, 2.0062032), (1.887433, -2.0000005, 2.2253182), (2.4650156, -1.9021136, 2.444456), (2.986059, -1.6180344, 2.6421635), (3.3995602, -1.1755707, 2.7990785), (3.6650438, -0.6180341, 2.8998308), (3.756523, -4.4374947e-16, 2.9345486), (3.3073804, 0.61803436, 3.8320136), (3.0418978, 1.1755714, 3.731561), (2.6283994, 1.6180352, 3.5751026), (2.1073606, 1.9021143, 3.3779538), (1.5297858, 2.0000014, 3.1594136), (0.95221126, 1.9021143, 2.9408731), (0.43117386, 1.6180348, 2.743725), (0.017676372, 1.1755708, 2.5872672), (-0.24780537, 0.6180342, 2.4868155), (-0.33928406, -2.4926507e-16, 2.4522016), (-0.24780537, -0.6180342, 2.4868155), (0.01767649, -1.1755707, 2.5872674), (0.4311741, -1.6180345, 2.7437246), (0.9522114, -1.9021136, 2.940873), (1.5297856, -2.0000005, 3.159413), (2.10736, -1.9021134, 3.3779535), (2.6283982, -1.6180344, 3.5751019), (3.041897, -1.1755707, 3.7315605), (3.30738, -0.6180341, 3.832014), (3.3988597, -3.0531938e-16, 3.866628), (2.946321, 0.61803436, 4.758991), (2.6807134, 1.1755714, 4.6595488), (2.2670197, 1.6180351, 4.5046644), (1.7457354, 1.9021142, 4.3094983), (1.1678876, 2.0000012, 4.093156), (0.5900395, 1.9021143, 3.876813), (0.0687554, 1.6180348, 3.6816473), (-0.34493792, 1.1755711, 3.5267627), (-0.6105454, 0.6180342, 3.4273207), (-0.70206743, -1.2335042e-16, 3.3930557), (-0.6105454, -0.6180342, 3.4273207), (-0.3449378, -1.1755708, 3.5267627), (0.068755634, -1.6180344, 3.681647), (0.5900396, -1.9021136, 3.8768127), (1.1678874, -2.0000002, 4.093156), (1.7457352, -1.9021136, 4.309499), (2.2670193, -1.6180344, 4.5046644), (2.6807122, -1.1755707, 4.6595488), (2.9463196, -0.61803406, 4.7589903), (3.0378418, -1.7319637e-16, 4.793256), (2.5887067, 0.61803436, 5.679811), (2.3228526, 1.1755712, 5.5823793), (1.908775, 1.6180348, 5.4306254), (1.387007, 1.9021142, 5.239404), (0.80862266, 2.000001, 5.027434), (0.23023835, 1.9021139, 4.8154635), (-0.29152957, 1.6180346, 4.6242423), (-0.7056069, 1.1755711, 4.4724884), (-0.97146094, 0.6180342, 4.3750567), (-1.0630679, 2.6445576e-18, 4.3414836), (-0.97146094, -0.6180342, 4.3750567), (-0.70560676, -1.1755707, 4.472489), (-0.29152936, -1.6180344, 4.6242423), (0.2302385, -1.9021134, 4.8154635), (0.80862266, -2.0000002, 5.0274334), (1.3870066, -1.9021133, 5.2394037), (1.9087744, -1.618034, 5.4306245), (2.3228514, -1.1755705, 5.582379), (2.5887055, -0.61803406, 5.679811), (2.6803129, -3.851886e-17, 5.713383), (2.2451446, 0.61803436, 6.58896), (1.9788039, 1.1755713, 6.495561), (1.5639677, 1.618035, 6.3500867), (1.041244, 1.902114, 6.166779), (0.4618005, 2.000001, 5.9635825), (-0.11764307, 1.902114, 5.760385), (-0.64036655, 1.6180346, 5.577078), (-1.0552021, 1.1755708, 5.4316034), (-1.3215431, 0.6180342, 5.3382044), (-1.4133178, 9.5959793e-17, 5.3060207), (-1.3215431, -0.6180342, 5.3382044), (-1.0552021, -1.1755708, 5.4316034), (-0.6403663, -1.6180342, 5.577077), (-0.117642894, -1.9021133, 5.760384), (0.46180046, -2.0000002, 5.963582), (1.0412438, -1.9021132, 6.1667795), (1.563967, -1.6180341, 6.350087), (1.9788028, -1.1755707, 6.49556), (2.2451437, -0.61803395, 6.5889597), (2.3369186, 5.657881e-17, 6.621144), (1.9665809, 0.61803436, 7.435091), (1.6984684, 1.1755712, 7.356437), (1.2808735, 1.6180348, 7.23393), (0.754673, 1.902114, 7.0795627), (0.17137541, 2.000001, 6.908446), (-0.41192216, 1.9021138, 6.737328), (-0.93812245, 1.6180346, 6.582961), (-1.3557172, 1.1755708, 6.4604545), (-1.6238295, 0.6180341, 6.3818), (-1.7162148, 1.7209392e-16, 6.3546977), (-1.6238295, -0.6180341, 6.3818), (-1.355717, -1.1755707, 6.4604545), (-0.9381221, -1.6180341, 6.5829606), (-0.41192198, -1.9021134, 6.737328), (0.17137535, -2.0000005, 6.908447), (0.7546727, -1.9021136, 7.079564), (1.2808728, -1.6180342, 7.2339315), (1.6984677, -1.1755707, 7.356437), (1.9665798, -0.618034, 7.43509), (2.058965, 1.2527263e-16, 7.462193), (1.9105095, 0.61803436, 8.193172), (1.6384743, 1.1755712, 8.146761), (1.2147698, 1.6180351, 8.074475), (0.6808706, 1.902114, 7.9833884), (0.08903908, 2.0000007, 7.8824162), (-0.50279254, 1.9021143, 7.781447), (-1.0366913, 1.6180346, 7.6903586), (-1.4603957, 1.1755708, 7.6180716), (-1.7324307, 0.6180342, 7.57166), (-1.8261675, 2.2129208e-16, 7.5556684), (-1.7324307, -0.6180342, 7.57166), (-1.4603956, -1.1755707, 7.618072), (-1.0366912, -1.6180342, 7.690359), (-0.5027923, -1.9021132, 7.781446), (0.08903901, -2.0000002, 7.8824167), (0.6808703, -1.9021132, 7.9833875), (1.214769, -1.6180342, 8.074474), (1.6384734, -1.1755705, 8.146762), (1.9105085, -0.618034, 8.193173), (2.0042453, 1.5623977e-16, 8.209166), (1.9439555, 0.6180343, 9.043167), (1.6686902, 1.1755712, 9.018572), (1.2399541, 1.618035, 8.980264), (0.6997152, 1.902114, 8.931994), (0.100856, 2.000001, 8.878486), (-0.49800336, 1.902114, 8.82498), (-1.038242, 1.6180347, 8.776709), (-1.4669776, 1.1755708, 8.738401), (-1.7422427, 0.6180341, 8.713806), (-1.8370928, 2.53382e-16, 8.705332), (-1.7422427, -0.6180341, 8.713806), (-1.4669774, -1.1755706, 8.738401), (-1.0382416, -1.6180344, 8.776709), (-0.49800307, -1.9021134, 8.824979), (0.10085597, -2.0000002, 8.878487), (0.699715, -1.9021133, 8.931994), (1.2399535, -1.6180341, 8.980265), (1.6686893, -1.1755706, 9.018573), (1.9439545, -0.618034, 9.043167), (2.0388043, 1.7468042e-16, 9.0516405), (2.0253665, 0.6180344, 9.953377), (1.7473743, 1.1755712, 9.944064), (1.314391, 1.6180352, 9.929559), (0.76880044, 1.902114, 9.911279), (0.16400872, 2.000001, 9.891017), (-0.44078293, 1.902114, 9.870754), (-0.98637325, 1.6180347, 9.852475), (-1.4193561, 1.1755708, 9.83797), (-1.6973482, 0.6180341, 9.828656), (-1.7931377, 2.7613814e-16, 9.825447), (-1.6973482, -0.6180341, 9.828656), (-1.4193559, -1.1755707, 9.83797), (-0.986373, -1.6180344, 9.852475), (-0.4407827, -1.9021134, 9.870754), (0.1640088, -2.0000002, 9.891016), (0.76880014, -1.9021132, 9.911279), (1.3143904, -1.6180342, 9.929558), (1.7473735, -1.1755707, 9.944064), (2.0253654, -0.618034, 9.953377), (2.1211548, 1.8680335e-16, 9.956587), (1.317723, 0.30901718, 9.899844), (1.1775167, 0.5877856, 9.904011), (0.95914006, 0.8090175, 9.9105015), (0.68396956, 0.951057, 9.918678), (0.3789408, 1.0000005, 9.927743), (0.07391211, 0.951057, 9.936809), (-0.20125829, 0.80901736, 9.944986), (-0.41963464, 0.5877854, 9.951475), (-0.559841, 0.30901706, 9.955643), (-0.6081526, 2.260369e-16, 9.957078), (-0.559841, -0.30901706, 9.955643), (-0.41963458, -0.58778536, 9.951475), (-0.20125811, -0.8090172, 9.944986), (0.07391225, -0.95105666, 9.936809), (0.3789409, -1.0000001, 9.927743), (0.68396956, -0.9510566, 9.91868), (0.95913994, -0.8090172, 9.910502), (1.1775165, -0.5877854, 9.904012), (1.3177226, -0.309017, 9.899845), (1.3660345, 1.7599694e-16, 9.898409), (2.6122603, -7.695823e-16, 0.3582981), (0.5486106, 1.7697634e-16, 9.956736)], 15: [(4.107566, 0.30901724, 1.687502), (3.9923935, 0.5877857, 1.6043361), (3.813006, 0.80901766, 1.4748042), (3.5869617, 0.9510572, 1.3115878), (3.3363864, 1.0000007, 1.1306663), (3.0858064, 0.9510572, 0.9497502), (2.8597515, 0.8090175, 0.7865485), (2.6803508, 0.58778554, 0.6570345), (2.5651672, 0.30901712, 0.5738831), (2.5254776, -1.1933184e-15, 0.5452314), (2.5651672, -0.30901712, 0.5738831), (2.680351, -0.58778554, 0.65703464), (2.8597517, -0.8090173, 0.78654855), (3.0858061, -0.95105684, 0.9497502), (3.336386, -1.0000004, 1.1306661), (3.5869615, -0.95105684, 1.3115877), (3.8130057, -0.80901724, 1.474804), (3.992393, -0.5877855, 1.6043357), (4.1075654, -0.30901706, 1.6875017), (4.147251, -1.1286188e-15, 1.7161589), (4.8705273, 0.6180344, 2.2381885), (4.6399302, 1.1755714, 2.0722158), (4.2807536, 1.6180352, 1.813737), (3.828143, 1.9021144, 1.4880896), (3.3263922, 2.0000014, 1.1271784), (2.8246129, 1.9021143, 0.76634395), (2.371926, 1.6180351, 0.44089696), (2.0126545, 1.175571, 0.18266594), (1.7819806, 0.6180343, 0.016892692), (1.7024943, -1.1557569e-15, -0.04022499), (1.7819806, -0.6180343, 0.016892692), (2.0126545, -1.1755708, 0.182666), (2.3719263, -1.6180346, 0.4408971), (2.8246133, -1.9021139, 0.7663442), (3.3263922, -2.0000007, 1.1271785), (3.8281422, -1.9021137, 1.4880893), (4.2807527, -1.6180344, 1.8137367), (4.6399293, -1.1755707, 2.072215), (4.8705277, -0.61803424, 2.2381885), (4.9499846, -1.041373e-15, 2.295382), (4.2838817, 0.6180345, 3.0470424), (4.053273, 1.1755712, 2.8812823), (3.6940818, 1.6180352, 2.6231308), (3.2414603, 1.9021144, 2.297886), (2.739708, 2.0000017, 1.9374068), (2.2379348, 1.9021144, 1.5769874), (1.7852626, 1.618035, 1.2518998), (1.4260092, 1.175571, 0.99394363), (1.1953492, 0.61803424, 0.82834154), (1.115868, -9.05002e-16, 0.77128184), (1.1953492, -0.61803424, 0.82834154), (1.4260094, -1.175571, 0.99394387), (1.7852628, -1.6180346, 1.2519001), (2.2379348, -1.9021137, 1.5769874), (2.7397072, -2.0000007, 1.9374064), (3.24146, -1.9021136, 2.2978857), (3.6940813, -1.6180342, 2.6231308), (4.0532722, -1.1755707, 2.8812819), (4.283881, -0.6180341, 3.047042), (4.363343, -8.018356e-16, 3.1041615), (3.6986804, 0.6180345, 3.8564875), (3.4680734, 1.1755713, 3.6909432), (3.1088905, 1.618035, 3.4331138), (2.6562884, 1.9021144, 3.1082523), (2.1545672, 2.0000012, 2.7481673), (1.6528379, 1.9021143, 2.3881102), (1.2002146, 1.6180348, 2.0633216), (0.8410065, 1.1755708, 1.8055835), (0.61037886, 0.61803424, 1.6401124), (0.53090966, -6.309062e-16, 1.5830964), (0.61037886, -0.61803424, 1.6401124), (0.84100664, -1.1755708, 1.8055837), (1.2002149, -1.6180345, 2.0633218), (1.652838, -1.9021136, 2.3881104), (2.154567, -2.0000005, 2.7481675), (2.6562881, -1.9021136, 3.1082523), (3.1088903, -1.6180344, 3.4331138), (3.4680724, -1.1755707, 3.6909425), (3.6986792, -0.6180341, 3.8564866), (3.7781403, -5.360093e-16, 3.9135308), (3.1134334, 0.61803436, 4.6647024), (2.8827472, 1.1755714, 4.499522), (2.5234447, 1.6180352, 4.2422466), (2.0706964, 1.9021143, 3.9180617), (1.5688229, 2.0000014, 3.5587013), (1.0669491, 1.9021143, 3.1993413), (0.6142023, 1.6180348, 2.8751574), (0.25490063, 1.1755708, 2.6178837), (0.024214732, 0.6180342, 2.4527037), (-0.055274162, -4.2476577e-16, 2.3957868), (0.024214732, -0.6180342, 2.4527037), (0.25490072, -1.1755707, 2.617884), (0.61420244, -1.6180345, 2.8751574), (1.066949, -1.9021136, 3.1993408), (1.5688225, -2.0000005, 3.5587008), (2.0706964, -1.9021134, 3.9180615), (2.523444, -1.6180344, 4.2422457), (2.8827465, -1.1755707, 4.499521), (3.1134334, -0.6180341, 4.664703), (3.1929228, -3.2818427e-16, 4.7216206), (2.5267725, 0.61803436, 5.465882), (2.2956758, 1.1755714, 5.3018947), (1.9357337, 1.6180351, 5.0464783), (1.4821802, 1.9021142, 4.7246346), (0.97941256, 2.0000012, 4.367869), (0.4766449, 1.9021143, 4.011102), (0.023091666, 1.6180348, 3.6892598), (-0.33685017, 1.1755711, 3.4338434), (-0.56794703, 0.6180342, 3.2698557), (-0.6475775, -2.1818196e-16, 3.2133496), (-0.56794703, -0.6180342, 3.2698557), (-0.33685005, -1.1755708, 3.4338431), (0.023091871, -1.6180344, 3.6892593), (0.476645, -1.9021136, 4.011102), (0.97941256, -2.0000002, 4.367869), (1.4821801, -1.9021136, 4.724635), (1.9357332, -1.6180344, 5.046478), (2.2956748, -1.1755707, 5.301894), (2.5267715, -0.61803406, 5.465882), (2.6064024, -1.3338785e-16, 5.522388), (1.9474852, 0.61803436, 6.260848), (1.7155782, 1.1755712, 6.0992055), (1.354374, 1.6180348, 5.847441), (0.8992305, 1.9021142, 5.5302), (0.39470005, 2.000001, 5.178535), (-0.10983043, 1.9021139, 4.8268695), (-0.5649739, 1.6180346, 4.5096283), (-0.9261777, 1.1755711, 4.2578645), (-1.1580849, 0.6180342, 4.0962214), (-1.2379944, -6.1172496e-18, 4.0405235), (-1.1580849, -0.6180342, 4.0962214), (-0.9261775, -1.1755707, 4.257865), (-0.56497365, -1.6180344, 4.5096283), (-0.109830275, -1.9021134, 4.82687), (0.3947, -2.0000002, 5.178534), (0.8992302, -1.9021133, 5.530199), (1.3543736, -1.618034, 5.8474407), (1.7155772, -1.1755705, 6.099205), (1.9474844, -0.61803406, 6.260847), (2.027394, 6.066776e-17, 6.316546), (1.3906982, 0.61803436, 7.0461345), (1.1571814, 1.1755713, 6.8891373), (0.79346997, 1.618035, 6.6446075), (0.3351671, 1.902114, 6.336483), (-0.17286542, 2.000001, 5.994924), (-0.6808981, 1.902114, 5.6533656), (-1.1392007, 1.6180346, 5.345241), (-1.5029116, 1.1755708, 5.100712), (-1.7364286, 0.6180342, 4.943714), (-1.8168929, 1.3841437e-16, 4.889617), (-1.7364286, -0.6180342, 4.943714), (-1.5029114, -1.1755708, 5.1007113), (-1.1392003, -1.6180342, 5.34524), (-0.6808978, -1.9021133, 5.653365), (-0.17286548, -2.0000002, 5.9949236), (0.3351668, -1.9021132, 6.336482), (0.7934694, -1.6180341, 6.6446066), (1.1571803, -1.1755707, 6.8891363), (1.3906972, -0.61803395, 7.0461335), (1.4711616, 1.9381072e-16, 7.100232), (0.94196266, 0.61803436, 7.7756734), (0.7025777, 1.1755712, 7.6355944), (0.32972664, 1.6180348, 7.4174156), (-0.14009297, 1.902114, 7.142495), (-0.6608919, 2.000001, 6.837743), (-1.1816909, 1.9021138, 6.5329905), (-1.6515102, 1.6180346, 6.25807), (-2.0243611, 1.1755708, 6.0398912), (-2.263746, 0.6180341, 5.8998117), (-2.3462322, 2.5103243e-16, 5.851544), (-2.263746, -0.6180341, 5.8998117), (-2.024361, -1.1755707, 6.0398917), (-1.6515101, -1.6180341, 6.2580695), (-1.1816907, -1.9021134, 6.532991), (-0.66089207, -2.0000005, 6.8377438), (-0.1400934, -1.9021136, 7.1424956), (0.32972592, -1.6180342, 7.417417), (0.7025767, -1.1755707, 7.635595), (0.9419615, -0.618034, 7.7756734), (1.0244478, 2.8689e-16, 7.8239408), (0.8106901, 0.61803436, 8.459536), (0.55837315, 1.1755712, 8.356825), (0.16538, 1.6180351, 8.196849), (-0.32982013, 1.902114, 7.9952683), (-0.8787536, 2.0000007, 7.7718143), (-1.4276872, 1.9021143, 7.5483613), (-1.922887, 1.6180346, 7.34678), (-2.3158796, 1.1755708, 7.186804), (-2.5681968, 0.6180342, 7.0840936), (-2.655139, 3.3169138e-16, 7.0487022), (-2.5681968, -0.6180342, 7.0840936), (-2.3158796, -1.1755707, 7.1868043), (-1.9228868, -1.6180342, 7.3467803), (-1.427687, -1.9021132, 7.548361), (-0.8787538, -2.0000002, 7.771815), (-0.32982057, -1.9021132, 7.995269), (0.16537921, -1.6180342, 8.19685), (0.55837196, -1.1755705, 8.356825), (0.8106889, -0.618034, 8.459535), (0.89763135, 3.2742416e-16, 8.494927), (0.8498524, 0.6180343, 9.254447), (0.58760136, 1.1755712, 9.181427), (0.17913553, 1.618035, 9.067694), (-0.33556142, 1.902114, 8.924384), (-0.9061071, 2.000001, 8.765522), (-1.4766531, 1.902114, 8.606661), (-1.9913497, 1.6180347, 8.463351), (-2.399815, 1.1755708, 8.349618), (-2.6620662, 0.6180341, 8.276597), (-2.7524314, 3.7860856e-16, 8.251436), (-2.6620662, -0.6180341, 8.276597), (-2.3998148, -1.1755706, 8.349618), (-1.9913495, -1.6180344, 8.46335), (-1.4766529, -1.9021134, 8.606661), (-0.90610725, -2.0000002, 8.765522), (-0.33556166, -1.9021133, 8.924383), (0.17913482, -1.6180341, 9.067694), (0.58760035, -1.1755706, 9.181426), (0.84985137, -0.618034, 9.254447), (0.9402168, 3.4344184e-16, 9.279609), (1.0130867, 0.6180344, 10.126726), (0.7429233, 1.1755712, 10.078052), (0.3221338, 1.6180352, 10.002238), (-0.20809168, 1.902114, 9.906708), (-0.79585105, 2.000001, 9.800813), (-1.3836105, 1.902114, 9.694917), (-1.9138355, 1.6180347, 9.599387), (-2.3346248, 1.1755708, 9.523575), (-2.6047883, 0.6180341, 9.4749), (-2.6978803, 4.0200676e-16, 9.458129), (-2.6047883, -0.6180341, 9.4749), (-2.3346248, -1.1755707, 9.523575), (-1.9138354, -1.6180344, 9.599388), (-1.3836102, -1.9021134, 9.694917), (-0.79585093, -2.0000002, 9.800814), (-0.20809183, -1.9021132, 9.906708), (0.3221334, -1.6180342, 10.002238), (0.7429226, -1.1755707, 10.078052), (1.0130857, -0.618034, 10.126725), (1.1061776, 3.4219737e-16, 10.1434965), (0.4641866, 0.30901718, 9.996241), (0.32528496, 0.5877856, 9.983173), (0.10894045, 0.8090175, 9.962825), (-0.16366945, 0.951057, 9.937182), (-0.4658598, 1.0000005, 9.908757), (-0.76805025, 0.951057, 9.880333), (-1.04066, 0.80901736, 9.854691), (-1.2570043, 0.5877854, 9.834341), (-1.3959059, 0.30901706, 9.821274), (-1.443768, 3.4702466e-16, 9.816772), (-1.3959059, -0.30901706, 9.821274), (-1.2570041, -0.58778536, 9.834341), (-1.0406598, -0.8090172, 9.854691), (-0.76804996, -0.95105666, 9.880333), (-0.46585965, -1.0000001, 9.908758), (-0.1636694, -0.9510566, 9.937182), (0.10894041, -0.8090172, 9.962826), (0.32528484, -0.5877854, 9.983174), (0.46418637, -0.309017, 9.996239), (0.5120486, 3.053623e-16, 10.00074), (3.3371804, -1.1688567e-15, 1.1309435), (-0.20536102, 2.8995277e-16, 9.99397)], 16: [(4.4176855, 0.30901724, 2.8003585), (4.327222, 0.5877857, 2.6908236), (4.186319, 0.80901766, 2.5202205), (4.0087667, 0.9510572, 2.3052516), (3.8119435, 1.0000007, 2.0669625), (3.6151135, 0.9510572, 1.8286781), (3.4375458, 0.8090175, 1.6137245), (3.2966237, 0.58778554, 1.4431398), (3.2061443, 0.30901712, 1.3336195), (3.174967, -7.918462e-16, 1.2958817), (3.2061443, -0.30901712, 1.3336195), (3.2966242, -0.58778554, 1.4431401), (3.4375458, -0.8090173, 1.6137246), (3.6151133, -0.95105684, 1.8286781), (3.8119433, -1.0000004, 2.0669622), (4.0087667, -0.95105684, 2.3052516), (4.1863184, -0.80901724, 2.52022), (4.3272214, -0.5877855, 2.690823), (4.417685, -0.30901706, 2.800358), (4.448857, -7.5207537e-16, 2.8381016), (5.015756, 0.6180344, 3.5248077), (4.834463, 1.1755714, 3.306107), (4.552069, 1.6180352, 2.9655066), (4.196197, 1.9021144, 2.536384), (3.8016608, 2.0000014, 2.0607774), (3.4070745, 1.9021143, 1.5852545), (3.051069, 1.6180351, 1.1563524), (2.7685115, 1.175571, 0.81602323), (2.5870848, 0.6180343, 0.5975418), (2.5245671, -7.912044e-16, 0.52226263), (2.5870848, -0.6180343, 0.5975418), (2.7685115, -1.1755708, 0.8160233), (3.051069, -1.6180346, 1.1563525), (3.4070747, -1.9021139, 1.5852549), (3.8016608, -2.0000007, 2.0607772), (4.196197, -1.9021137, 2.5363839), (4.552069, -1.6180344, 2.965506), (4.834462, -1.1755707, 3.3061063), (5.0157566, -0.61803424, 3.5248075), (5.0782228, -7.0666635e-16, 3.60017), (4.2439957, 0.6180345, 4.159165), (4.062639, 1.1755712, 3.9407113), (3.7801557, 1.6180352, 3.600489), (3.4241788, 1.9021144, 3.1718335), (3.029542, 2.0000017, 2.6967294), (2.6348681, 1.9021144, 2.2216907), (2.2787971, 1.618035, 1.7932099), (1.9961975, 1.175571, 1.4532037), (1.814748, 0.61803424, 1.234924), (1.7522228, -6.1506006e-16, 1.159713), (1.814748, -0.61803424, 1.234924), (1.9961979, -1.175571, 1.4532039), (2.2787974, -1.6180346, 1.79321), (2.6348681, -1.9021137, 2.221691), (3.0295415, -2.0000007, 2.696729), (3.4241788, -1.9021136, 3.1718328), (3.7801552, -1.6180342, 3.6004887), (4.0626388, -1.1755707, 3.9407103), (4.243994, -0.6180341, 4.1591644), (4.3064833, -5.1958965e-16, 4.2344418), (3.4737775, 0.6180345, 4.794542), (3.2923732, 1.1755713, 4.5763373), (3.0098226, 1.618035, 4.236489), (2.6537762, 1.9021144, 3.8082802), (2.2590802, 2.0000012, 3.3336365), (1.864369, 1.9021143, 2.8590243), (1.5082817, 1.6180348, 2.4308963), (1.2256808, 1.1755708, 2.0911496), (1.0442361, 0.61803424, 1.8730261), (0.9817137, -4.3496293e-16, 1.7978677), (1.0442361, -0.61803424, 1.8730261), (1.2256811, -1.1755708, 2.0911496), (1.508282, -1.6180345, 2.4308965), (1.8643693, -1.9021136, 2.8590245), (2.2590802, -2.0000005, 3.3336363), (2.6537762, -1.9021136, 3.80828), (3.0098221, -1.6180344, 4.236489), (3.2923725, -1.1755707, 4.576336), (3.4737768, -0.6180341, 4.7945404), (3.536283, -3.1780335e-16, 4.86973), (2.703989, 0.61803436, 5.4285145), (2.522409, 1.1755714, 5.2107115), (2.239591, 1.6180352, 4.8714767), (1.8832198, 1.9021143, 4.444014), (1.4881799, 2.0000014, 3.970172), (1.0931404, 1.9021143, 3.4963293), (0.73677003, 1.6180348, 3.0688698), (0.453953, 1.1755708, 2.729636), (0.27237332, 0.6180342, 2.5118346), (0.20980524, -2.7430466e-16, 2.4367855), (0.27237332, -0.6180342, 2.5118346), (0.4539531, -1.1755707, 2.7296362), (0.73677015, -1.6180345, 3.0688696), (1.0931404, -1.9021136, 3.4963293), (1.4881799, -2.0000005, 3.9701715), (1.8832196, -1.9021134, 4.4440145), (2.2395904, -1.6180344, 4.871475), (2.522408, -1.1755707, 5.2107115), (2.7039886, -0.6180341, 5.428515), (2.7665567, -1.4162147e-16, 5.503564), (1.9352347, 0.61803436, 6.054177), (1.7529167, 1.1755714, 5.8376603), (1.4689498, 1.6180351, 5.5004277), (1.1111302, 1.9021142, 5.07549), (0.71448445, 2.0000012, 4.604444), (0.31783867, 1.9021143, 4.133397), (-0.039980575, 1.6180348, 3.7084596), (-0.3239475, 1.1755711, 3.3712273), (-0.50626546, 0.6180342, 3.154711), (-0.5690879, -1.1475365e-16, 3.0801044), (-0.50626546, -0.6180342, 3.154711), (-0.32394743, -1.1755708, 3.3712273), (-0.039980408, -1.6180344, 3.7084594), (0.31783882, -1.9021136, 4.133397), (0.7144844, -2.0000002, 4.604443), (1.11113, -1.9021136, 5.0754905), (1.4689492, -1.6180344, 5.5004277), (1.7529162, -1.1755707, 5.8376594), (1.935234, -0.61803406, 6.0541763), (1.9980565, 3.024996e-17, 6.1287827), (1.1776779, 0.61803436, 6.674605), (0.99390835, 1.1755712, 6.4605913), (0.7076802, 1.6180348, 6.1272583), (0.34701195, 1.9021142, 5.7072334), (-0.05279194, 2.000001, 5.241632), (-0.4525958, 1.9021139, 4.7760305), (-0.813264, 1.6180346, 4.3560057), (-1.0994918, 1.1755711, 4.022672), (-1.2832615, 0.6180342, 3.8086593), (-1.3465842, 4.2708437e-17, 3.734915), (-1.2832615, -0.6180342, 3.8086593), (-1.0994917, -1.1755707, 4.0226727), (-0.81326383, -1.6180344, 4.3560057), (-0.45259565, -1.9021134, 4.7760305), (-0.052791968, -2.0000002, 5.2416315), (0.34701166, -1.9021133, 5.7072325), (0.7076798, -1.618034, 6.127257), (0.99390763, -1.1755705, 6.460591), (1.1776774, -0.61803406, 6.674604), (1.2409999, 2.0467584e-16, 6.748348), (0.4502338, 0.61803436, 7.289561), (0.26358858, 1.1755713, 7.0804553), (-0.027118247, 1.618035, 6.754765), (-0.39343014, 1.902114, 6.3443727), (-0.79949, 2.000001, 5.889449), (-1.2055497, 1.902114, 5.4345245), (-1.5718614, 1.6180346, 5.024132), (-1.8625679, 1.1755708, 4.6984425), (-2.0492132, 0.6180342, 4.489337), (-2.1135263, 1.8284062e-16, 4.417284), (-2.0492132, -0.6180342, 4.489337), (-1.8625679, -1.1755708, 4.6984425), (-1.5718614, -1.6180342, 5.0241313), (-1.2055496, -1.9021133, 5.4345245), (-0.79949, -2.0000002, 5.889448), (-0.3934304, -1.9021132, 6.344372), (-0.027118769, -1.6180341, 6.7547646), (0.26358777, -1.1755707, 7.0804543), (0.4502329, -0.61803395, 7.28956), (0.51454645, 3.4588752e-16, 7.3616138), (-0.1295577, 0.61803436, 7.8674073), (-0.32667536, 1.1755712, 7.676116), (-0.6336935, 1.6180348, 7.378173), (-1.0205587, 1.902114, 7.002743), (-1.4494022, 2.000001, 6.5865755), (-1.8782454, 1.9021138, 6.1704082), (-2.2651107, 1.6180346, 5.794978), (-2.5721283, 1.1755708, 5.4970355), (-2.7692459, 0.6180341, 5.3057437), (-2.8371682, 3.1420147e-16, 5.239829), (-2.7692459, -0.6180341, 5.3057437), (-2.5721285, -1.1755707, 5.497035), (-2.2651105, -1.6180341, 5.7949777), (-1.8782454, -1.9021134, 6.170408), (-1.4494023, -2.0000005, 6.5865765), (-1.0205592, -1.9021136, 7.0027437), (-0.6336942, -1.6180342, 7.3781734), (-0.32667637, -1.1755707, 7.6761165), (-0.12955874, -0.618034, 7.8674064), (-0.06163675, 4.518007e-16, 7.933321), (-0.31249252, 0.61803436, 8.466254), (-0.5327435, 1.1755712, 8.314641), (-0.8757927, 1.6180351, 8.078498), (-1.3080597, 1.902114, 7.78094), (-1.7872312, 2.0000007, 7.451094), (-2.2664032, 1.9021143, 7.12125), (-2.6986697, 1.6180346, 6.8236914), (-3.0417185, 1.1755708, 6.5875487), (-3.2619696, 0.6180342, 6.4359355), (-3.3378627, 4.1932602e-16, 6.383693), (-3.2619696, -0.6180342, 6.4359355), (-3.0417185, -1.1755707, 6.5875487), (-2.6986697, -1.6180342, 6.823692), (-2.2664032, -1.9021132, 7.1212497), (-1.7872313, -2.0000002, 7.451094), (-1.3080602, -1.9021132, 7.780939), (-0.8757934, -1.6180342, 8.078498), (-0.5327446, -1.1755705, 8.31464), (-0.31249377, -0.618034, 8.466253), (-0.23660055, 4.9662595e-16, 8.5184965), (-0.25403038, 0.6180343, 9.212375), (-0.4926832, 1.1755712, 9.096119), (-0.86439383, 1.618035, 8.915046), (-1.3327764, 1.902114, 8.686879), (-1.8519826, 2.000001, 8.433956), (-2.371189, 1.902114, 8.181033), (-2.8395715, 1.6180347, 7.9528675), (-3.2112818, 1.1755708, 7.771794), (-3.4499347, 0.6180341, 7.6555376), (-3.5321684, 4.8026615e-16, 7.6154785), (-3.4499347, -0.6180341, 7.6555376), (-3.2112818, -1.1755706, 7.7717934), (-2.8395712, -1.6180344, 7.9528675), (-2.3711894, -1.9021134, 8.181034), (-1.851983, -2.0000002, 8.433956), (-1.332777, -1.9021133, 8.686879), (-0.86439455, -1.6180341, 8.915045), (-0.49268427, -1.1755706, 9.096117), (-0.25403148, -0.618034, 9.212375), (-0.1717974, 5.0800007e-16, 9.252433), (-0.0035839034, 0.6180344, 10.069082), (-0.25734138, 1.1755712, 9.984449), (-0.6525781, 1.6180352, 9.852628), (-1.1506051, 1.902114, 9.686523), (-1.7026724, 2.000001, 9.502397), (-2.2547395, 1.902114, 9.318269), (-2.7527666, 1.6180347, 9.1521635), (-3.1480024, 1.1755708, 9.020345), (-3.40176, 0.6180341, 8.935709), (-3.489199, 5.0704975e-16, 8.906548), (-3.40176, -0.6180341, 8.935709), (-3.1480024, -1.1755707, 9.020345), (-2.752766, -1.6180344, 9.152164), (-2.2547393, -1.9021134, 9.318269), (-1.7026721, -2.0000002, 9.502397), (-1.1506052, -1.9021132, 9.686523), (-0.6525783, -1.6180342, 9.852627), (-0.25734192, -1.1755707, 9.984449), (-0.0035846112, -0.618034, 10.069082), (0.08385409, 4.9297275e-16, 10.098247), (-0.38562137, 0.30901718, 9.904199), (-0.5194833, 0.5877856, 9.874759), (-0.7279783, 0.8090175, 9.828906), (-0.9906974, 0.951057, 9.77113), (-1.2819234, 1.0000005, 9.707085), (-1.5731498, 0.951057, 9.643038), (-1.8358685, 0.80901736, 9.585261), (-2.0443633, 0.5877854, 9.53941), (-2.1782253, 0.30901706, 9.509972), (-2.224351, 4.5574036e-16, 9.499826), (-2.1782253, -0.30901706, 9.509972), (-2.044363, -0.58778536, 9.539409), (-1.8358682, -0.8090172, 9.585262), (-1.5731496, -0.95105666, 9.64304), (-1.2819233, -1.0000001, 9.707085), (-0.99069726, -0.9510566, 9.771131), (-0.7279784, -0.8090172, 9.828908), (-0.51948357, -0.5877854, 9.874761), (-0.38562152, -0.309017, 9.904197), (-0.33949584, 4.2996816e-16, 9.914341), (3.8127599, -7.7482154e-16, 2.0674539), (-0.9497797, 3.9773396e-16, 9.868668)], 17: [(4.431787, 0.30901724, 3.862742), (4.3687997, 0.5877857, 3.7354069), (4.270692, 0.80901766, 3.5370789), (4.1470633, 0.9510572, 3.287175), (4.0100136, 1.0000007, 3.0101585), (3.8729556, 0.9510572, 2.7331474), (3.7493079, 0.8090175, 2.4832573), (3.6511757, 0.58778554, 2.2849472), (3.5881684, 0.30901712, 2.1576252), (3.5664573, -1.4629488e-15, 2.1137536), (3.5881684, -0.30901712, 2.1576252), (3.6511762, -0.58778554, 2.2849474), (3.7493079, -0.8090173, 2.4832573), (3.8729556, -0.95105684, 2.7331474), (4.0100136, -1.0000004, 3.0101585), (4.1470633, -0.95105684, 3.2871745), (4.270691, -0.80901724, 3.5370784), (4.368799, -0.5877855, 3.7354062), (4.4317865, -0.30901706, 3.8627412), (4.4534903, -1.274571e-15, 3.9066186), (4.847069, 0.6180344, 4.70398), (4.7206254, 1.1755714, 4.449661), (4.523652, 1.6180352, 4.0535817), (4.275401, 1.9021144, 3.5545545), (4.0001445, 2.0000014, 3.0014591), (3.7248168, 1.9021143, 2.4484487), (3.476378, 1.6180351, 1.9496449), (3.2791731, 1.175571, 1.5538425), (3.1525407, 0.6180343, 1.2997458), (3.1089022, -1.4865511e-15, 1.2121943), (3.1525407, -0.6180343, 1.2997458), (3.2791731, -1.1755708, 1.5538427), (3.476378, -1.6180346, 1.9496453), (3.724817, -1.9021139, 2.4484491), (4.0001445, -2.0000007, 3.0014591), (4.2754016, -1.9021137, 3.5545542), (4.5236516, -1.6180344, 4.053581), (4.720624, -1.1755707, 4.4496593), (4.8470697, -0.61803424, 4.70398), (4.890636, -1.1254417e-15, 4.7916155), (3.9506, 0.6180345, 5.144528), (3.8240404, 1.1755712, 4.890473), (3.626897, 1.6180352, 4.4947996), (3.3784428, 1.9021144, 3.9962747), (3.1029794, 2.0000017, 3.4437206), (2.8274634, 1.9021144, 2.8912337), (2.5788724, 1.618035, 2.3928874), (2.3815598, 1.175571, 1.9974362), (2.2548635, 0.61803424, 1.7435592), (2.2112043, -1.1728236e-15, 1.6560823), (2.2548635, -0.61803424, 1.7435592), (2.3815603, -1.175571, 1.9974365), (2.5788724, -1.6180346, 2.392887), (2.8274636, -1.9021137, 2.891234), (3.102979, -2.0000007, 3.4437199), (3.3784425, -1.9021136, 3.9962742), (3.6268966, -1.6180342, 4.4947996), (3.8240397, -1.1755707, 4.890472), (3.9505992, -0.6180341, 5.1445274), (3.9942062, -8.230994e-16, 5.2320724), (3.0556605, 0.6180345, 5.586502), (2.9289985, 1.1755713, 5.3327146), (2.7317069, 1.618035, 4.937444), (2.483088, 1.9021144, 4.4394), (2.207469, 2.0000012, 3.8873448), (1.9318268, 1.9021143, 3.3353212), (1.6831473, 1.6180348, 2.8373606), (1.4857812, 1.1755708, 2.4421947), (1.3590585, 0.61803424, 2.1884902), (1.3153919, -8.35843e-16, 2.1010714), (1.3590585, -0.61803424, 2.1884902), (1.4857813, -1.1755708, 2.4421947), (1.6831473, -1.6180345, 2.8373606), (1.931827, -1.9021136, 3.3353217), (2.207469, -2.0000005, 3.887345), (2.483088, -1.9021136, 4.4394), (2.7317066, -1.6180344, 4.937444), (2.9289978, -1.1755707, 5.3327136), (3.05566, -0.6180341, 5.586501), (3.099303, -4.945296e-16, 5.6739526), (2.1616194, 0.61803436, 6.0270214), (2.0346859, 1.1755714, 5.7736464), (1.8369819, 1.6180352, 5.379005), (1.5878596, 1.9021143, 4.881728), (1.3117062, 2.0000014, 4.3304954), (1.0355529, 1.9021143, 3.779262), (0.7864314, 1.6180348, 3.2819874), (0.5887274, 1.1755708, 2.8873482), (0.46179372, 0.6180342, 2.6339743), (0.41805542, -5.6673884e-16, 2.5466673), (0.46179372, -0.6180342, 2.6339743), (0.58872753, -1.1755707, 2.887348), (0.7864314, -1.6180345, 3.2819872), (1.0355529, -1.9021136, 3.7792618), (1.311706, -2.0000005, 4.3304944), (1.5878595, -1.9021134, 4.881728), (1.8369814, -1.6180344, 5.379004), (2.0346854, -1.1755707, 5.7736454), (2.1616194, -0.6180341, 6.0270224), (2.205358, -2.2408958e-16, 6.11433), (1.2711364, 0.61803436, 6.458628), (1.1431484, 1.1755714, 6.2065415), (0.94380236, 1.6180351, 5.8139067), (0.69261175, 1.9021142, 5.3191586), (0.41416493, 2.0000012, 4.770726), (0.13571805, 1.9021143, 4.222294), (-0.11547246, 1.6180348, 3.7275462), (-0.31481832, 1.1755711, 3.3349118), (-0.44280624, 0.6180342, 3.0828252), (-0.48690784, -2.967973e-16, 2.995962), (-0.44280624, -0.6180342, 3.0828252), (-0.3148183, -1.1755708, 3.3349118), (-0.11547233, -1.6180344, 3.727546), (0.13571814, -1.9021136, 4.222294), (0.41416487, -2.0000002, 4.770726), (0.69261163, -1.9021136, 5.3191586), (0.9438022, -1.6180344, 5.813906), (1.143148, -1.1755707, 6.2065406), (1.2711358, -0.61803406, 6.458627), (1.3152375, 3.2686525e-17, 6.5454903), (0.39506137, 0.61803436, 6.886743), (0.26500705, 1.1755712, 6.637143), (0.06244254, 1.6180348, 6.2483807), (-0.19280358, 1.9021142, 5.7585125), (-0.475746, 2.000001, 5.21549), (-0.75868845, 1.9021139, 4.6724668), (-1.0139345, 1.6180346, 4.182598), (-1.216499, 1.1755711, 3.7938373), (-1.3465533, 0.6180342, 3.544237), (-1.391367, -2.1290481e-17, 3.4582307), (-1.3465533, -0.6180342, 3.544237), (-1.2164987, -1.1755707, 3.7938368), (-1.0139344, -1.6180344, 4.182598), (-0.75868833, -1.9021134, 4.672466), (-0.47574607, -2.0000002, 5.2154894), (-0.19280377, -1.9021133, 5.758512), (0.06244219, -1.618034, 6.24838), (0.2650065, -1.1755705, 6.637141), (0.39506084, -0.61803406, 6.8867416), (0.43987447, 2.875079e-16, 6.972748), (-0.4450632, 0.61803436, 7.3149157), (-0.5791971, 1.1755713, 7.070145), (-0.7881156, 1.618035, 6.688905), (-1.051368, 1.902114, 6.208515), (-1.3431858, 2.000001, 5.6759996), (-1.6350036, 1.902114, 5.1434827), (-1.898256, 1.6180346, 4.6630926), (-2.1071742, 1.1755708, 4.2818537), (-2.241308, 0.6180342, 4.0370827), (-2.2875273, 1.8663713e-16, 3.9527407), (-2.241308, -0.6180342, 4.0370827), (-2.1071742, -1.1755708, 4.281853), (-1.8982558, -1.6180342, 4.663093), (-1.6350036, -1.9021133, 5.143482), (-1.3431859, -2.0000002, 5.675998), (-1.0513682, -1.9021132, 6.2085137), (-0.7881159, -1.6180341, 6.6889043), (-0.5791977, -1.1755707, 7.0701437), (-0.44506395, -0.61803395, 7.3149147), (-0.39884466, 4.788157e-16, 7.399257), (-1.1063875, 0.61803436, 7.7318206), (-1.2553624, 1.1755712, 7.504526), (-1.4873962, 1.6180348, 7.150506), (-1.7797759, 1.902114, 6.704415), (-2.1038814, 2.000001, 6.2099195), (-2.4279861, 1.9021138, 5.7154236), (-2.7203658, 1.6180346, 5.2693334), (-2.9523995, 1.1755708, 4.9153132), (-3.1013741, 0.6180341, 4.688019), (-3.1527076, 3.630364e-16, 4.6096983), (-3.1013741, -0.6180341, 4.688019), (-2.9523995, -1.1755707, 4.9153137), (-2.7203658, -1.6180341, 5.269333), (-2.4279861, -1.9021134, 5.715424), (-2.1038816, -2.0000005, 6.20992), (-1.7797763, -1.9021136, 6.704416), (-1.487397, -1.6180342, 7.150507), (-1.2553635, -1.1755707, 7.5045266), (-1.1063886, -0.618034, 7.73182), (-1.0550553, 6.1670706e-16, 7.8101397), (-1.315834, 0.61803436, 8.247816), (-1.4976813, 1.1755712, 8.059744), (-1.7809155, 1.6180351, 7.7668166), (-2.1378112, 1.902114, 7.397704), (-2.5334334, 2.0000007, 6.9885397), (-2.9290555, 1.9021143, 6.5793777), (-3.285951, 1.6180346, 6.2102647), (-3.5691848, 1.1755708, 5.917337), (-3.751032, 0.6180342, 5.729265), (-3.8136923, 5.0146113e-16, 5.6644597), (-3.751032, -0.6180342, 5.729265), (-3.5691848, -1.1755707, 5.917337), (-3.285951, -1.6180342, 6.210265), (-2.9290552, -1.9021132, 6.579377), (-2.5334334, -2.0000002, 6.98854), (-2.1378117, -1.9021132, 7.397703), (-1.7809163, -1.6180342, 7.7668147), (-1.4976823, -1.1755705, 8.059744), (-1.3158349, -0.618034, 8.247816), (-1.2531748, 6.7265083e-16, 8.312621), (-1.2298533, 0.6180343, 8.956729), (-1.4388882, 1.1755712, 8.807048), (-1.7644682, 1.618035, 8.5739155), (-2.1747227, 1.902114, 8.28015), (-2.6294925, 2.000001, 7.9545097), (-3.0842636, 1.902114, 7.62887), (-3.4945178, 1.6180347, 7.3351054), (-3.8200972, 1.1755708, 7.101973), (-4.0291324, 0.6180341, 6.952292), (-4.10116, 5.7823916e-16, 6.900716), (-4.0291324, -0.6180341, 6.952292), (-3.820097, -1.1755706, 7.101973), (-3.4945176, -1.6180344, 7.3351054), (-3.0842636, -1.9021134, 7.628871), (-2.6294932, -2.0000002, 7.95451), (-2.174723, -1.9021133, 8.28015), (-1.7644689, -1.6180341, 8.573916), (-1.4388893, -1.1755706, 8.807049), (-1.2298543, -0.618034, 8.95673), (-1.1578258, 6.795601e-16, 9.008305), (-0.8991292, 0.6180344, 9.8187275), (-1.131192, 1.1755712, 9.705487), (-1.4926383, 1.6180352, 9.529112), (-1.948087, 1.902114, 9.306864), (-2.4529557, 2.000001, 9.0605), (-2.9578245, 1.902114, 8.814137), (-3.4132729, 1.6180347, 8.591891), (-3.774719, 1.1755708, 8.415516), (-4.0067816, 0.6180341, 8.302275), (-4.086745, 6.065294e-16, 8.263254), (-4.0067816, -0.6180341, 8.302275), (-3.774719, -1.1755707, 8.415515), (-3.413273, -1.6180344, 8.591892), (-2.9578245, -1.9021134, 8.814137), (-2.4529555, -2.0000002, 9.0605), (-1.9480869, -1.9021132, 9.306863), (-1.4926385, -1.6180342, 9.529111), (-1.1311923, -1.1755707, 9.705487), (-0.89912975, -0.618034, 9.8187275), (-0.81916636, 6.476053e-16, 9.857747), (-1.1288662, 0.30901718, 9.658835), (-1.2550673, 0.5877856, 9.615762), (-1.4516305, 0.8090175, 9.548675), (-1.6993141, 0.951057, 9.46414), (-1.9738735, 1.0000005, 9.370431), (-2.2484329, 0.951057, 9.276723), (-2.4961166, 0.80901736, 9.192186), (-2.6926794, 0.5877854, 9.125098), (-2.8188803, 0.30901706, 9.082026), (-2.8623662, 5.519165e-16, 9.067184), (-2.8188803, -0.30901706, 9.082026), (-2.6926792, -0.58778536, 9.125098), (-2.4961164, -0.8090172, 9.192186), (-2.2484326, -0.95105666, 9.276723), (-1.9738731, -1.0000001, 9.370432), (-1.6993141, -0.9510566, 9.46414), (-1.4516305, -0.8090172, 9.548676), (-1.2550677, -0.5877854, 9.615763), (-1.1288663, -0.309017, 9.658834), (-1.0853806, 5.466582e-16, 9.673677), (4.010796, -1.3766769e-15, 3.01085), (-1.5956806, 4.8788706e-16, 9.615093)], 18: [(4.2509737, 0.30901724, 4.7211685), (4.2129154, 0.5877857, 4.5842996), (4.153634, 0.80901766, 4.3711224), (4.078929, 0.9510572, 4.1025066), (3.9961107, 1.0000007, 3.8047483), (3.9132826, 0.9510572, 3.5069938), (3.838555, 0.8090175, 3.2383904), (3.7792454, 0.58778554, 3.0252287), (3.741164, 0.30901712, 2.888372), (3.7280412, -1.2062739e-15, 2.841215), (3.741164, -0.30901712, 2.888372), (3.7792456, -0.58778554, 3.0252295), (3.838555, -0.8090173, 3.2383904), (3.9132824, -0.95105684, 3.5069933), (3.9961104, -1.0000004, 3.8047476), (4.078929, -0.95105684, 4.102506), (4.1536336, -0.80901724, 4.371122), (4.2129154, -0.5877855, 4.5842986), (4.250973, -0.30901706, 4.721168), (4.2640877, -1.0105133e-15, 4.7683296), (4.500758, 0.6180344, 5.6245027), (4.4240913, 1.1755714, 5.351082), (4.3046403, 1.6180352, 4.9252496), (4.15406, 1.9021144, 4.388729), (3.9870567, 2.0000014, 3.7940693), (3.8199651, 1.9021143, 3.1994917), (3.669152, 1.6180351, 2.6631875), (3.5494137, 1.175571, 2.2376227), (3.472513, 0.6180343, 1.9644166), (3.4460106, -1.2614359e-15, 1.8702805), (3.472513, -0.6180343, 1.9644166), (3.5494134, -1.1755708, 2.2376227), (3.6691523, -1.6180346, 2.6631877), (3.8199651, -1.9021139, 3.199492), (3.987057, -2.0000007, 3.7940693), (4.15406, -1.9021137, 4.3887286), (4.30464, -1.6180344, 4.925249), (4.42409, -1.1755707, 5.3510804), (4.5007586, -0.61803424, 5.624503), (4.527172, -8.7434923e-16, 5.718721), (3.5377374, 0.6180345, 5.8893547), (3.460908, 1.1755712, 5.6162014), (3.3412163, 1.6180352, 5.190783), (3.1903467, 1.9021144, 4.654773), (3.0230439, 2.0000017, 4.0606675), (2.8556745, 1.9021144, 3.4666266), (2.7046328, 1.618035, 2.930792), (2.5847278, 1.175571, 2.5055897), (2.5077267, 0.61803424, 2.2326105), (2.4811904, -9.959334e-16, 2.1385517), (2.5077267, -0.61803424, 2.2326105), (2.584728, -1.175571, 2.5055902), (2.7046325, -1.6180346, 2.9307926), (2.8556747, -1.9021137, 3.4666271), (3.0230434, -2.0000007, 4.0606666), (3.1903462, -1.9021136, 4.654773), (3.341216, -1.6180342, 5.190783), (3.460908, -1.1755707, 5.6162004), (3.537737, -0.6180341, 5.8893538), (3.564207, -6.078143e-16, 5.98348), (2.5761588, 0.6180345, 6.1559596), (2.4991798, 1.1755713, 5.8830795), (2.3792691, 1.618035, 5.458071), (2.228151, 1.9021144, 4.922554), (2.0606065, 2.0000012, 4.328959), (1.8930323, 1.9021143, 3.7353952), (1.7418369, 1.6180348, 3.19996), (1.6218313, 1.1755708, 2.7750533), (1.5447757, 0.61803424, 2.5022545), (1.5182228, -7.180544e-16, 2.4082558), (1.5447757, -0.61803424, 2.5022545), (1.6218313, -1.1755708, 2.7750533), (1.7418369, -1.6180345, 3.1999602), (1.8930324, -1.9021136, 3.7353954), (2.0606062, -2.0000005, 4.3289595), (2.2281508, -1.9021136, 4.9225535), (2.3792694, -1.6180344, 5.4580703), (2.4991794, -1.1755707, 5.8830786), (2.5761583, -0.6180341, 6.1559587), (2.6026816, -3.2153826e-16, 6.249989), (1.6158719, 0.61803436, 6.4211497), (1.5385422, 1.1755714, 6.148673), (1.4180975, 1.6180352, 5.7242794), (1.2663276, 1.9021143, 5.1895123), (1.09809, 2.0000014, 4.5967207), (0.9298523, 1.9021143, 4.00393), (0.77808285, 1.6180348, 3.469166), (0.6576379, 1.1755708, 3.0447743), (0.5803077, 0.6180342, 2.7722986), (0.5536615, -4.8079226e-16, 2.6784098), (0.5803077, -0.6180342, 2.7722986), (0.65763795, -1.1755707, 3.0447748), (0.7780829, -1.6180345, 3.469166), (0.92985225, -1.9021136, 4.00393), (1.0980898, -2.0000005, 4.59672), (1.2663276, -1.9021134, 5.1895113), (1.4180973, -1.6180344, 5.7242785), (1.5385418, -1.1755707, 6.148672), (1.6158719, -0.6180341, 6.4211507), (1.642518, -7.520121e-17, 6.5150404), (0.6613186, 0.61803436, 6.6773715), (0.5826773, 1.1755714, 6.4061255), (0.46019056, 1.6180351, 5.9836493), (0.30584827, 1.9021142, 5.4512987), (0.13475859, 2.0000012, 4.861183), (-0.036331102, 1.9021143, 4.2710676), (-0.1906733, 1.6180348, 3.7387168), (-0.31315994, 1.1755711, 3.3162408), (-0.3918012, 0.6180342, 3.0449944), (-0.41889912, -2.4358367e-16, 2.9515293), (-0.3918012, -0.6180342, 3.0449944), (-0.3131599, -1.1755708, 3.3162408), (-0.19067322, -1.6180344, 3.7387168), (-0.03633104, -1.9021136, 4.271067), (0.13475858, -2.0000002, 4.8611827), (0.3058482, -1.9021136, 5.4512987), (0.46019036, -1.6180344, 5.9836493), (0.58267707, -1.1755707, 6.4061246), (0.6613183, -0.61803406, 6.6773705), (0.6884162, 1.6227298e-16, 6.770836), (-0.27652678, 0.61803436, 6.9320745), (-0.35773078, 1.1755712, 6.6631856), (-0.48420903, 1.6180348, 6.24438), (-0.6435809, 1.9021142, 5.716655), (-0.82024604, 2.000001, 5.131667), (-0.9969111, 1.9021139, 4.546679), (-1.156283, 1.6180346, 4.018954), (-1.2827612, 1.1755711, 3.6001494), (-1.3639652, 0.6180342, 3.3312597), (-1.3919461, -4.9673544e-18, 3.238607), (-1.3639652, -0.6180342, 3.3312597), (-1.2827611, -1.1755707, 3.6001494), (-1.1562828, -1.6180344, 4.0189543), (-0.99691105, -1.9021134, 4.546679), (-0.8202461, -2.0000002, 5.1316667), (-0.6435811, -1.9021133, 5.7166543), (-0.4842093, -1.618034, 6.244379), (-0.35773116, -1.1755705, 6.6631837), (-0.27652717, -0.61803406, 6.932074), (-0.24854624, 3.9964417e-16, 7.0247264), (-1.1746815, 0.61803436, 7.1923513), (-1.2609303, 1.1755713, 6.928), (-1.395266, 1.618035, 6.5162625), (-1.5645388, 1.902114, 5.9974437), (-1.7521793, 2.000001, 5.4223294), (-1.9398195, 1.902114, 4.847214), (-2.1090922, 1.6180346, 4.3283963), (-2.2434275, 1.1755708, 3.916659), (-2.3296762, 0.6180342, 3.652308), (-2.3593955, 1.9457415e-16, 3.5612192), (-2.3296762, -0.6180342, 3.652308), (-2.2434275, -1.1755708, 3.9166594), (-2.109092, -1.6180342, 4.328396), (-1.9398195, -1.9021133, 4.847214), (-1.7521791, -2.0000002, 5.4223285), (-1.564539, -1.9021132, 5.997443), (-1.3952662, -1.6180341, 6.5162616), (-1.2609308, -1.1755707, 6.927998), (-1.1746821, -0.61803395, 7.19235), (-1.144963, 5.891843e-16, 7.2834396), (-1.873411, 0.61803436, 7.467815), (-1.9779954, 1.1755712, 7.2198377), (-2.140889, 1.6180348, 6.8336043), (-2.3461468, 1.902114, 6.346923), (-2.573677, 2.000001, 5.8074317), (-2.8012068, 1.9021138, 5.2679405), (-3.006465, 1.6180346, 4.7812586), (-3.1693583, 1.1755708, 4.3950257), (-3.273942, 0.6180341, 4.1470485), (-3.3099794, 3.770208e-16, 4.0616016), (-3.273942, -0.6180341, 4.1470485), (-3.169358, -1.1755707, 4.3950257), (-3.0064647, -1.6180341, 4.7812586), (-2.8012068, -1.9021134, 5.267941), (-2.5736773, -2.0000005, 5.807432), (-2.3461475, -1.9021136, 6.3469234), (-2.1408896, -1.6180342, 6.8336053), (-1.9779963, -1.1755707, 7.2198377), (-1.8734121, -0.618034, 7.4678135), (-1.837375, 7.284288e-16, 7.5532603), (-2.0900068, 0.61803436, 7.91533), (-2.2352982, 1.1755712, 7.704366), (-2.4615948, 1.6180351, 7.3757844), (-2.746745, 1.902114, 6.9617457), (-3.0628366, 2.0000007, 6.50278), (-3.3789287, 1.9021143, 6.0438156), (-3.664078, 1.6180346, 5.6297765), (-3.890375, 1.1755708, 5.3011937), (-4.035666, 0.6180342, 5.090231), (-4.08573, 5.2899574e-16, 5.0175376), (-4.035666, -0.6180342, 5.090231), (-3.890375, -1.1755707, 5.301194), (-3.6640785, -1.6180342, 5.6297765), (-3.3789282, -1.9021132, 6.0438156), (-3.062837, -2.0000002, 6.50278), (-2.7467456, -1.9021132, 6.961745), (-2.4615953, -1.6180342, 7.375784), (-2.235299, -1.1755705, 7.7043657), (-2.090008, -0.618034, 7.915329), (-2.0399442, 7.833316e-16, 7.9880223), (-1.9759749, 0.6180343, 8.600192), (-2.1560314, 1.1755712, 8.4284725), (-2.4364758, 1.618035, 8.1610155), (-2.7898564, 1.902114, 7.823997), (-3.181582, 2.000001, 7.450411), (-3.5733075, 1.902114, 7.076824), (-3.9266884, 1.6180347, 6.7398076), (-4.207132, 1.1755708, 6.4723487), (-4.3871884, 0.6180341, 6.30063), (-4.4492316, 6.1622113e-16, 6.2414594), (-4.3871884, -0.6180341, 6.30063), (-4.207132, -1.1755706, 6.4723487), (-3.926688, -1.6180344, 6.7398067), (-3.5733075, -1.9021134, 7.076825), (-3.1815822, -2.0000002, 7.450411), (-2.7898571, -1.9021133, 7.823997), (-2.4364767, -1.6180341, 8.161015), (-2.1560326, -1.1755706, 8.428472), (-1.9759759, -0.618034, 8.600192), (-1.9139329, 7.850588e-16, 8.659361), (-1.5820069, 0.6180344, 9.480021), (-1.7922329, 1.1755712, 9.347232), (-2.1196675, 1.6180352, 9.140408), (-2.5322587, 1.902114, 8.879791), (-2.9896195, 2.000001, 8.590898), (-3.4469812, 1.902114, 8.302004), (-3.8595722, 1.6180347, 8.041389), (-4.1870065, 1.1755708, 7.8345647), (-4.397232, 0.6180341, 7.7017746), (-4.4696712, 6.5054073e-16, 7.6560183), (-4.397232, -0.6180341, 7.7017746), (-4.1870065, -1.1755707, 7.834564), (-3.8595717, -1.6180344, 8.041389), (-3.4469805, -1.9021134, 8.302004), (-2.9896195, -2.0000002, 8.590898), (-2.5322587, -1.9021132, 8.879791), (-2.1196673, -1.6180342, 9.140408), (-1.7922331, -1.1755707, 9.347232), (-1.5820074, -0.618034, 9.480021), (-1.5095686, 7.435185e-16, 9.525778), (-1.6922808, 0.30901718, 9.349021), (-1.8102479, 0.5877856, 9.296125), (-1.993986, 0.8090175, 9.21374), (-2.2255094, 0.951057, 9.109928), (-2.4821553, 1.0000005, 8.994851), (-2.7388012, 0.951057, 8.879775), (-2.9703245, 0.80901736, 8.775963), (-3.1540623, 0.5877854, 8.693577), (-3.2720294, 0.30901706, 8.640684), (-3.312678, 6.090233e-16, 8.6224575), (-3.2720294, -0.30901706, 8.640684), (-3.154062, -0.58778536, 8.693577), (-2.9703245, -0.8090172, 8.775964), (-2.7388008, -0.95105666, 8.879775), (-2.482155, -1.0000001, 8.994852), (-2.2255092, -0.9510566, 9.109928), (-1.9939862, -0.8090172, 9.213741), (-1.8102483, -0.5877854, 9.296126), (-1.6922808, -0.309017, 9.349021), (-1.651632, 6.242076e-16, 9.367248), (3.9968288, -1.1134747e-15, 3.8055964), (-2.0815573, 5.531357e-16, 9.313738)], 19: [(4.033716, 0.30901724, 5.276436), (4.0132456, 0.5877857, 5.135857), (3.9813585, 0.80901766, 4.9169016), (3.941172, 0.9510572, 4.6410036), (3.896616, 1.0000007, 4.3351736), (3.85205, 0.9510572, 4.029346), (3.8118386, 0.8090175, 3.7534602), (3.7799208, 0.58778554, 3.5345182), (3.7594252, 0.30901712, 3.3939502), (3.7523625, -1.4767939e-15, 3.345514), (3.7594252, -0.30901712, 3.3939502), (3.7799213, -0.58778554, 3.5345187), (3.8118386, -0.8090173, 3.7534602), (3.8520498, -0.95105684, 4.029346), (3.8966157, -1.0000004, 4.335173), (3.941172, -0.95105684, 4.6410036), (3.9813583, -0.80901724, 4.916901), (4.0132456, -0.5877855, 5.1358566), (4.0337157, -0.30901706, 5.276435), (4.0407696, -1.1655854e-15, 5.3248754), (4.1668925, 0.6180344, 6.203595), (4.1253514, 1.1755714, 5.9227223), (4.0606074, 1.6180352, 5.485282), (3.9789531, 1.9021144, 4.93413), (3.8883445, 2.0000014, 4.323248), (3.7976358, 1.9021143, 3.712444), (3.7157197, 1.6180351, 3.1614988), (3.6506515, 1.175571, 2.7243128), (3.6088479, 0.6180343, 2.443644), (3.594438, -1.5453374e-15, 2.3469365), (3.6088479, -0.6180343, 2.443644), (3.6506512, -1.1755708, 2.724313), (3.7157197, -1.6180346, 3.161499), (3.7976363, -1.9021139, 3.7124445), (3.8883448, -2.0000007, 4.323248), (3.9789534, -1.9021137, 4.93413), (4.0606074, -1.6180344, 5.485281), (4.125351, -1.1755707, 5.922721), (4.166894, -0.61803424, 6.2035956), (4.181203, -9.458237e-16, 6.300381), (3.1781604, 0.6180345, 6.344553), (3.1364264, 1.1755712, 6.0639453), (3.0713923, 1.6180352, 5.6269145), (2.9893894, 1.9021144, 5.0762715), (2.898417, 2.0000017, 4.46594), (2.8073697, 1.9021144, 3.855672), (2.7251713, 1.618035, 3.305196), (2.6598952, 1.175571, 2.8683722), (2.617966, 0.61803424, 2.5879316), (2.6035144, -1.2160316e-15, 2.491301), (2.617966, -0.61803424, 2.5879316), (2.6598957, -1.175571, 2.8683727), (2.725171, -1.6180346, 3.3051963), (2.8073697, -1.9021137, 3.8556721), (2.8984165, -2.0000007, 4.4659395), (2.9893892, -1.9021136, 5.076271), (3.0713925, -1.6180342, 5.6269145), (3.1364264, -1.1755707, 6.0639443), (3.1781602, -0.6180341, 6.344552), (3.1925375, -6.357806e-16, 6.441247), (2.1907744, 0.6180345, 6.4874754), (2.148858, 1.1755713, 6.207137), (2.0835567, 1.618035, 5.770514), (2.0012472, 1.9021144, 5.2203608), (1.9099735, 2.0000012, 4.610539), (1.8186665, 1.9021143, 4.0007486), (1.736269, 1.6180348, 3.450673), (1.6708595, 1.1755708, 3.0141475), (1.6288556, 0.61803424, 2.7338889), (1.6143806, -8.5667785e-16, 2.6373196), (1.6288556, -0.61803424, 2.7338889), (1.6708597, -1.1755708, 3.0141478), (1.7362692, -1.6180345, 3.4506736), (1.8186667, -1.9021136, 4.0007486), (1.9099737, -2.0000005, 4.61054), (2.0012472, -1.9021136, 5.2203603), (2.0835567, -1.6180344, 5.770514), (2.1488578, -1.1755707, 6.207136), (2.1907742, -0.6180341, 6.4874735), (2.2052155, -2.9540338e-16, 6.5840726), (1.2049423, 0.61803436, 6.6290503), (1.1626225, 1.1755714, 6.3491), (1.0967071, 1.6180352, 5.9130683), (1.0136479, 1.9021143, 5.363636), (0.9215763, 2.0000014, 4.7545886), (0.8295047, 1.9021143, 4.1455407), (0.74644583, 1.6180348, 3.5961115), (0.6805299, 1.1755708, 3.1600814), (0.6382092, 0.6180342, 2.8801334), (0.62362653, -5.819902e-16, 2.7836697), (0.6382092, -0.6180342, 2.8801334), (0.68052983, -1.1755707, 3.1600816), (0.74644583, -1.6180345, 3.5961113), (0.8295047, -1.9021136, 4.1455407), (0.92157626, -2.0000005, 4.7545877), (1.0136479, -1.9021134, 5.363636), (1.0967069, -1.6180344, 5.9130673), (1.1626222, -1.1755707, 6.349099), (1.2049425, -0.6180341, 6.6290503), (1.2195249, -2.4495925e-17, 6.725515), (0.22632559, 0.61803436, 6.7618537), (0.1825277, 1.1755714, 6.483067), (0.11431087, 1.6180351, 6.048846), (0.028352663, 1.9021142, 5.501694), (-0.06693272, 2.0000012, 4.895173), (-0.16221812, 1.9021143, 4.2886524), (-0.24817629, 1.6180348, 3.7415023), (-0.31639308, 1.1755711, 3.307281), (-0.36019093, 0.6180342, 3.0284936), (-0.37528262, -3.0603727e-16, 2.9324303), (-0.36019093, -0.6180342, 3.0284936), (-0.31639302, -1.1755708, 3.307281), (-0.24817622, -1.6180344, 3.741502), (-0.16221806, -1.9021136, 4.2886524), (-0.06693272, -2.0000002, 4.8951735), (0.02835261, -1.9021136, 5.5016947), (0.11431075, -1.6180344, 6.048845), (0.18252753, -1.1755707, 6.4830656), (0.22632536, -0.61803406, 6.7618527), (0.2414171, 2.288687e-16, 6.8579164), (-0.73424745, 0.61803436, 6.8947134), (-0.78092784, 1.1755712, 6.618139), (-0.8536344, 1.6180348, 6.187362), (-0.9452499, 1.9021142, 5.6445537), (-1.0468066, 2.000001, 5.042845), (-1.1483634, 1.9021139, 4.4411354), (-1.2399787, 1.6180346, 3.8983264), (-1.3126853, 1.1755711, 3.467551), (-1.3593658, 0.6180342, 3.1909757), (-1.3754507, -2.1366472e-17, 3.0956745), (-1.3593658, -0.6180342, 3.1909757), (-1.3126853, -1.1755707, 3.4675505), (-1.2399787, -1.6180344, 3.8983266), (-1.1483631, -1.9021134, 4.441135), (-1.0468066, -2.0000002, 5.042844), (-0.94525, -1.9021133, 5.6445527), (-0.85363454, -1.618034, 6.1873617), (-0.780928, -1.1755705, 6.618137), (-0.73424774, -0.61803406, 6.8947124), (-0.7181628, 4.7866806e-16, 6.9900136), (-1.653222, 0.61803436, 7.037268), (-1.7055656, 1.1755713, 6.7649226), (-1.7870924, 1.618035, 6.3407326), (-1.8898224, 1.902114, 5.806224), (-2.0036993, 2.000001, 5.2137165), (-2.1175764, 1.902114, 4.6212087), (-2.2203062, 1.6180346, 4.0867), (-2.3018332, 1.1755708, 3.662511), (-2.3541765, 0.6180342, 3.3901653), (-2.3722126, 1.8008406e-16, 3.2963219), (-2.3541765, -0.6180342, 3.3901653), (-2.301833, -1.1755708, 3.6625113), (-2.2203062, -1.6180342, 4.0867), (-2.1175764, -1.9021133, 4.6212087), (-2.0036993, -2.0000002, 5.2137165), (-1.8898224, -1.9021132, 5.8062234), (-1.7870927, -1.6180341, 6.3407316), (-1.7055658, -1.1755707, 6.764921), (-1.6532227, -0.61803395, 7.0372667), (-1.6351864, 6.5512567e-16, 7.1311116), (-2.3618069, 0.61803436, 7.2150693), (-2.4347196, 1.1755712, 6.957947), (-2.5482833, 1.6180348, 6.5574703), (-2.6913826, 1.902114, 6.0528393), (-2.850009, 2.000001, 5.493452), (-3.0086355, 1.9021138, 4.934065), (-3.1517344, 1.6180346, 4.429435), (-3.2652981, 1.1755708, 4.0289574), (-3.3382106, 0.6180341, 3.7718356), (-3.363335, 3.5040107e-16, 3.6832373), (-3.3382106, -0.6180341, 3.7718356), (-3.2652981, -1.1755707, 4.0289574), (-3.1517344, -1.6180341, 4.4294343), (-3.0086353, -1.9021134, 4.9340653), (-2.8500094, -2.0000005, 5.493453), (-2.6913834, -1.9021136, 6.05284), (-2.5482843, -1.6180342, 6.5574703), (-2.43472, -1.1755707, 6.9579473), (-2.3618076, -0.618034, 7.215068), (-2.3366838, 7.7428764e-16, 7.303666), (-2.5761163, 0.61803436, 7.61727), (-2.6947694, 1.1755712, 7.394761), (-2.879576, 1.6180351, 7.048195), (-3.1124454, 1.902114, 6.6114964), (-3.3705833, 2.0000007, 6.127411), (-3.6287217, 1.9021143, 5.6433277), (-3.8615906, 1.6180346, 5.2066283), (-4.0463967, 1.1755708, 4.8600616), (-4.16505, 0.6180342, 4.6375527), (-4.205935, 5.0396957e-16, 4.560881), (-4.16505, -0.6180342, 4.6375527), (-4.0463967, -1.1755707, 4.8600616), (-3.8615906, -1.6180342, 5.2066283), (-3.6287212, -1.9021132, 5.6433268), (-3.3705835, -2.0000002, 6.127411), (-3.1124458, -1.9021132, 6.611495), (-2.8795764, -1.6180342, 7.048194), (-2.6947706, -1.1755705, 7.39476), (-2.5761173, -0.618034, 7.617269), (-2.5352325, 8.192711e-16, 7.6939406), (-2.4410558, 0.6180343, 8.289535), (-2.5996258, 1.1755712, 8.105997), (-2.8466048, 1.618035, 7.8201294), (-3.157816, 1.902114, 7.459914), (-3.5027962, 2.000001, 7.0606136), (-3.847777, 1.902114, 6.661313), (-4.158988, 1.6180347, 6.301099), (-4.405966, 1.1755708, 6.015231), (-4.5645366, 0.6180341, 5.8316927), (-4.6191754, 5.9835117e-16, 5.7684503), (-4.5645366, -0.6180341, 5.8316927), (-4.405966, -1.1755706, 6.015231), (-4.1589875, -1.6180344, 6.301099), (-3.847777, -1.9021134, 6.661314), (-3.5027964, -2.0000002, 7.0606136), (-3.1578164, -1.9021133, 7.459914), (-2.846605, -1.6180341, 7.820128), (-2.599627, -1.1755706, 8.105996), (-2.441057, -0.618034, 8.289535), (-2.3864174, 8.166261e-16, 8.3527775), (-2.0068407, 0.6180344, 9.187912), (-2.200596, 1.1755712, 9.044199), (-2.502377, 1.6180352, 8.820362), (-2.8826427, 1.902114, 8.538309), (-3.3041708, 2.000001, 8.225653), (-3.725699, 1.902114, 7.9129953), (-4.105964, 1.6180347, 7.6309433), (-4.407745, 1.1755708, 7.4071054), (-4.6015, 0.6180341, 7.2633934), (-4.668264, 6.4280685e-16, 7.2138734), (-4.6015, -0.6180341, 7.2633934), (-4.407745, -1.1755707, 7.4071054), (-4.105964, -1.6180344, 7.6309433), (-3.7256985, -1.9021134, 7.912996), (-3.3041704, -2.0000002, 8.225653), (-2.8826427, -1.9021132, 8.538309), (-2.5023768, -1.6180342, 8.820361), (-2.2005963, -1.1755707, 9.044198), (-2.0068412, -0.618034, 9.187912), (-1.9400777, 7.741822e-16, 9.237431), (-2.041173, 0.30901718, 9.088213), (-2.152697, 0.5877856, 9.02952), (-2.3263993, 0.8090175, 8.938104), (-2.545277, 0.951057, 8.822914), (-2.7879047, 1.0000005, 8.695224), (-3.0305326, 0.951057, 8.567534), (-3.2494104, 0.80901736, 8.452343), (-3.4231124, 0.5877854, 8.360929), (-3.534636, 0.30901706, 8.302237), (-3.5730646, 6.2799383e-16, 8.282012), (-3.534636, -0.30901706, 8.302237), (-3.4231122, -0.58778536, 8.360929), (-3.2494102, -0.8090172, 8.452344), (-3.0305321, -0.95105666, 8.567535), (-2.7879045, -1.0000001, 8.695225), (-2.5452769, -0.9510566, 8.822915), (-2.3263996, -0.8090172, 8.938106), (-2.1526973, -0.5877854, 9.029521), (-2.041173, -0.309017, 9.088212), (-2.0027447, 6.585788e-16, 9.108436), (3.8972716, -1.3307826e-15, 4.3361206), (-2.3803587, 5.918103e-16, 9.065909)], 20: [(3.935411, 0.30901724, 5.4726605), (3.9214783, 0.5877857, 5.3312836), (3.8997736, 0.80901766, 5.111086), (3.872417, 0.9510572, 4.8336234), (3.8420837, 1.0000007, 4.5260577), (3.81174, 0.9510572, 4.2184944), (3.7843583, 0.8090175, 3.9410422), (3.7626216, 0.58778554, 3.7208574), (3.748663, 0.30901712, 3.5794914), (3.7438529, -8.2453295e-16, 3.5307806), (3.748663, -0.30901712, 3.5794914), (3.762622, -0.58778554, 3.720858), (3.7843583, -0.8090173, 3.9410424), (3.8117397, -0.95105684, 4.218494), (3.8420835, -1.0000004, 4.5260572), (3.872417, -0.95105684, 4.833623), (3.8997731, -0.80901724, 5.111086), (3.921478, -0.5877855, 5.331283), (3.9354107, -0.30901706, 5.4726596), (3.9402113, -6.141257e-16, 5.521374), (4.0252757, 0.6180344, 6.404825), (3.9967926, 1.1755714, 6.122344), (3.9523852, 1.6180352, 5.6823964), (3.896354, 1.9021144, 5.1280856), (3.8341446, 2.0000014, 4.5136995), (3.7718313, 1.9021143, 3.8993895), (3.7155275, 1.6180351, 3.3452804), (3.6707826, 1.175571, 2.9055817), (3.6420264, 0.6180343, 2.6233), (3.6321127, -9.093549e-16, 2.5260365), (3.6420264, -0.6180343, 2.6233), (3.6707826, -1.1755708, 2.9055817), (3.7155275, -1.6180346, 3.3452806), (3.7718318, -1.9021139, 3.8993902), (3.8341448, -2.0000007, 4.5136986), (3.8963537, -1.9021137, 5.128085), (3.9523852, -1.6180344, 5.682396), (3.9967923, -1.1755707, 6.122342), (4.025276, -0.61803424, 6.404826), (4.035086, -4.8416086e-16, 6.502165), (3.0310817, 0.6180345, 6.4997454), (3.0023944, 1.1755712, 6.2175264), (2.957679, 1.6180352, 5.7779865), (2.9012773, 1.9021144, 5.22418), (2.838681, 2.0000017, 4.610342), (2.7760065, 1.9021144, 3.9965653), (2.7194004, 1.618035, 3.4429235), (2.6744335, 1.175571, 3.0035865), (2.6455426, 0.61803424, 2.7215316), (2.6355832, -7.1239637e-16, 2.624345), (2.6455426, -0.61803424, 2.7215316), (2.6744335, -1.175571, 3.003587), (2.7194004, -1.6180346, 3.4429235), (2.7760065, -1.9021137, 3.9965656), (2.8386807, -2.0000007, 4.6103415), (2.901277, -1.9021136, 5.2241797), (2.9576793, -1.6180342, 5.7779865), (3.002394, -1.1755707, 6.217526), (3.0310814, -0.6180341, 6.499744), (3.0409632, -2.76545e-16, 6.596994), (2.038191, 0.6180345, 6.5967026), (2.0093093, 1.1755713, 6.3147526), (1.9643095, 1.618035, 5.875617), (1.9075799, 1.9021144, 5.322298), (1.8446604, 2.0000012, 4.708967), (1.7817059, 1.9021143, 4.0956664), (1.7248844, 1.6180348, 3.542424), (1.6797713, 1.1755708, 3.1033845), (1.6507984, 0.61803424, 2.8215117), (1.6408132, -5.1145003e-16, 2.7243862), (1.6507984, -0.61803424, 2.8215117), (1.6797715, -1.1755708, 3.103385), (1.7248845, -1.6180345, 3.5424244), (1.781706, -1.9021136, 4.095667), (1.8446603, -2.0000005, 4.7089677), (1.9075799, -1.9021136, 5.322298), (1.9643095, -1.6180344, 5.8756166), (2.009309, -1.1755707, 6.314751), (2.0381906, -0.6180341, 6.596701), (2.0481408, -5.4160385e-17, 6.693856), (1.0469491, 0.61803436, 6.692348), (1.017645, 1.1755714, 6.410778), (0.97200227, 1.6180352, 5.9722223), (0.9144881, 1.9021143, 5.4196105), (0.8507331, 2.0000014, 4.807039), (0.78697824, 1.9021143, 4.194467), (0.729464, 1.6180348, 3.6418576), (0.6838205, 1.1755708, 3.2033048), (0.6545157, 0.6180342, 2.9217365), (0.6444178, -3.2992e-16, 2.8247147), (0.6545157, -0.6180342, 2.9217365), (0.6838204, -1.1755707, 3.2033048), (0.729464, -1.6180345, 3.6418576), (0.7869782, -1.9021136, 4.1944666), (0.85073304, -2.0000005, 4.807039), (0.914488, -1.9021134, 5.41961), (0.972002, -1.6180344, 5.972221), (1.0176449, -1.1755707, 6.4107766), (1.0469491, -0.6180341, 6.6923485), (1.0570467, 1.4243572e-16, 6.7893705), (0.06346296, 0.61803436, 6.7793417), (0.03262206, 1.1755714, 6.498904), (-0.015413783, 1.6180351, 6.062111), (-0.07594247, 1.9021142, 5.51172), (-0.14303903, 2.0000012, 4.901607), (-0.21013558, 1.9021143, 4.2914944), (-0.27066424, 1.6180348, 3.741104), (-0.31870002, 1.1755711, 3.304311), (-0.34954092, 0.6180342, 3.0238726), (-0.36016792, -1.4936914e-16, 2.9272401), (-0.34954092, -0.6180342, 3.0238726), (-0.31870002, -1.1755708, 3.304311), (-0.27066416, -1.6180344, 3.7411034), (-0.21013553, -1.9021136, 4.2914944), (-0.14303902, -2.0000002, 4.9016066), (-0.07594252, -1.9021136, 5.5117197), (-0.015413877, -1.6180344, 6.0621104), (0.03262192, -1.1755707, 6.4989033), (0.0634628, -0.61803406, 6.7793403), (0.07408984, 3.3368678e-16, 6.8759727), (-0.9015398, 0.61803436, 6.8670144), (-0.9353758, 1.1755712, 6.5887237), (-0.98807675, 1.6180348, 6.1552763), (-1.0544838, 1.9021142, 5.6091003), (-1.1280965, 2.000001, 5.003659), (-1.2017093, 1.9021139, 4.398218), (-1.2681162, 1.6180346, 3.852042), (-1.320817, 1.1755711, 3.4185946), (-1.3546531, 0.6180342, 3.1403039), (-1.3663121, 2.960552e-17, 3.0444114), (-1.3546531, -0.6180342, 3.1403039), (-1.320817, -1.1755707, 3.4185946), (-1.268116, -1.6180344, 3.852042), (-1.201709, -1.9021134, 4.3982177), (-1.1280965, -2.0000002, 5.0036583), (-1.0544838, -1.9021133, 5.6090994), (-0.9880768, -1.618034, 6.155275), (-0.9353759, -1.1755705, 6.5887227), (-0.9015401, -0.61803406, 6.867014), (-0.889881, 5.2650975e-16, 6.962906), (-1.82438, 0.61803436, 6.965957), (-1.8640959, 1.1755713, 6.6917615), (-1.925955, 1.618035, 6.264689), (-2.0039017, 1.902114, 5.7265477), (-2.0903065, 2.000001, 5.130015), (-2.176711, 1.902114, 4.53348), (-2.2546577, 1.6180346, 3.995339), (-2.3165164, 1.1755708, 3.5682678), (-2.3562322, 0.6180342, 3.2940712), (-2.3699174, 1.9268467e-16, 3.1995897), (-2.3562322, -0.6180342, 3.2940712), (-2.3165166, -1.1755708, 3.5682678), (-2.2546577, -1.6180342, 3.995339), (-2.1767108, -1.9021133, 4.53348), (-2.0903063, -2.0000002, 5.1300135), (-2.0039017, -1.9021132, 5.7265477), (-1.9259552, -1.6180341, 6.2646885), (-1.8640963, -1.1755707, 6.69176), (-1.8243805, -0.61803395, 6.965956), (-1.8106956, 6.8464456e-16, 7.0604386), (-2.533467, 0.61803436, 7.1078763), (-2.5945342, 1.1755712, 6.8484015), (-2.6896484, 1.6180348, 6.44426), (-2.8094995, 1.902114, 5.9350133), (-2.9423554, 2.000001, 5.3705087), (-3.0752108, 1.9021138, 4.8060036), (-3.195062, 1.6180346, 4.296756), (-3.2901762, 1.1755708, 3.8926153), (-3.351243, 0.6180341, 3.6331408), (-3.3722854, 3.5438022e-16, 3.543732), (-3.351243, -0.6180341, 3.6331408), (-3.290176, -1.1755707, 3.892615), (-3.195062, -1.6180341, 4.2967563), (-3.0752108, -1.9021134, 4.8060036), (-2.9423554, -2.0000005, 5.370509), (-2.8095, -1.9021136, 5.9350133), (-2.6896493, -1.6180342, 6.444261), (-2.5945349, -1.1755707, 6.848401), (-2.5334675, -0.618034, 7.1078753), (-2.5124252, 7.9912646e-16, 7.1972837), (-2.7455869, 0.61803436, 7.4938006), (-2.8541622, 1.1755712, 7.2678804), (-3.0232728, 1.6180351, 6.916001), (-3.2363644, 1.902114, 6.4726076), (-3.472578, 2.0000007, 5.9811006), (-3.708792, 1.9021143, 5.4895954), (-3.9218829, 1.6180346, 5.0462003), (-4.090993, 1.1755708, 4.6943216), (-4.1995687, 0.6180342, 4.4684005), (-4.236982, 5.067313e-16, 4.390554), (-4.1995687, -0.6180342, 4.4684005), (-4.0909934, -1.1755707, 4.6943216), (-3.9218833, -1.6180342, 5.0462008), (-3.7087917, -1.9021132, 5.489595), (-3.4725785, -2.0000002, 5.981101), (-3.2363648, -1.9021132, 6.472606), (-3.0232735, -1.6180342, 6.9160004), (-2.8541632, -1.1755705, 7.267879), (-2.745588, -0.618034, 7.4938), (-2.7081757, 8.421467e-16, 7.571647), (-2.6025043, 0.6180343, 8.162215), (-2.7528713, 1.1755712, 7.9749937), (-2.987074, 1.618035, 7.683388), (-3.282186, 1.902114, 7.3159456), (-3.6093202, 2.000001, 6.9086304), (-3.9364552, 1.902114, 6.5013165), (-4.231568, 1.6180347, 6.1338735), (-4.46577, 1.1755708, 5.842268), (-4.6161366, 0.6180341, 5.655046), (-4.667949, 6.021232e-16, 5.590534), (-4.6161366, -0.6180341, 5.655046), (-4.46577, -1.1755706, 5.842268), (-4.2315674, -1.6180344, 6.1338735), (-3.936455, -1.9021134, 6.501316), (-3.609321, -2.0000002, 6.908631), (-3.282187, -1.9021133, 7.315944), (-2.9870746, -1.6180341, 7.6833878), (-2.7528722, -1.1755706, 7.9749928), (-2.6025054, -0.618034, 8.162214), (-2.550692, 8.379084e-16, 8.2267275), (-2.1541727, 0.6180344, 9.06864), (-2.3415844, 1.1755712, 8.9214115), (-2.6334858, 1.6180352, 8.692098), (-3.0013022, 1.902114, 8.403144), (-3.40903, 2.000001, 8.082839), (-3.8167572, 1.902114, 7.762533), (-4.1845737, 1.6180347, 7.4735804), (-4.476475, 1.1755708, 7.2442665), (-4.663887, 0.6180341, 7.097038), (-4.7284646, 6.4811954e-16, 7.0463066), (-4.663887, -0.6180341, 7.097038), (-4.4764743, -1.1755707, 7.2442665), (-4.184573, -1.6180344, 7.473581), (-3.8167572, -1.9021134, 7.762533), (-3.4090295, -2.0000002, 8.08284), (-3.0013018, -1.9021132, 8.403144), (-2.6334856, -1.6180342, 8.692098), (-2.3415847, -1.1755707, 8.9214115), (-2.154173, -0.618034, 9.068639), (-2.0895953, 7.9342e-16, 9.11937), (-2.161849, 0.30901718, 8.982645), (-2.2708464, 0.5877856, 8.922009), (-2.4406128, 0.8090175, 8.827569), (-2.6545317, 0.951057, 8.708567), (-2.891662, 1.0000005, 8.576652), (-3.1287925, 0.951057, 8.4447365), (-3.3427112, 0.80901736, 8.325734), (-3.5124779, 0.5877854, 8.231294), (-3.621475, 0.30901706, 8.170658), (-3.659032, 6.37716e-16, 8.149765), (-3.621475, -0.30901706, 8.170658), (-3.5124779, -0.58778536, 8.231294), (-3.3427112, -0.8090172, 8.325734), (-3.1287925, -0.95105666, 8.4447365), (-2.891662, -1.0000001, 8.576653), (-2.6545315, -0.9510566, 8.708567), (-2.4406133, -0.8090172, 8.82757), (-2.2708466, -0.5877854, 8.92201), (-2.161849, -0.309017, 8.982645), (-2.1242914, 6.742054e-16, 9.003537), (3.8427129, -7.221536e-16, 4.527039), (-2.4832463, 6.0479984e-16, 8.966473)], 21: [(3.9890633, 0.30901724, 5.3851476), (3.9720118, 0.5877857, 5.2441134), (3.9454496, 0.80901766, 5.024449), (3.911973, 0.9510572, 4.747657), (3.874855, 1.0000007, 4.4408355), (3.837727, 0.9510572, 4.1340165), (3.8042252, 0.8090175, 3.8572364), (3.7776313, 0.58778554, 3.6375847), (3.7605546, 0.30901712, 3.4965608), (3.7546694, -1.2387293e-15, 3.447968), (3.7605546, -0.30901712, 3.4965608), (3.7776318, -0.58778554, 3.6375852), (3.8042252, -0.8090173, 3.8572364), (3.8377266, -0.95105684, 4.1340165), (3.8748548, -1.0000004, 4.4408355), (3.9119725, -0.95105684, 4.747657), (3.9454496, -0.80901724, 5.024448), (3.9720118, -0.5877855, 5.244113), (3.9890633, -0.30901706, 5.385147), (3.9949381, -9.653785e-16, 5.433745), (4.099567, 0.6180344, 6.3151484), (4.064854, 1.1755714, 6.0333586), (4.0107436, 1.6180352, 5.594488), (3.9424865, 1.9021144, 5.041535), (3.8667269, 2.0000014, 4.4286547), (3.790865, 1.9021143, 3.8158522), (3.7223403, 1.6180351, 3.2631035), (3.6678984, 1.175571, 2.8244853), (3.6329167, 0.6180343, 2.542897), (3.6208575, -1.3358431e-15, 2.4458725), (3.6329167, -0.6180343, 2.542897), (3.6678982, -1.1755708, 2.8244853), (3.7223406, -1.6180346, 3.2631037), (3.7908654, -1.9021139, 3.8158529), (3.866727, -2.0000007, 4.4286547), (3.9424865, -1.9021137, 5.041535), (4.0107436, -1.6180344, 5.5944877), (4.064853, -1.1755707, 6.033357), (4.099568, -0.61803424, 6.315149), (4.111524, -7.926424e-16, 6.4122505), (3.1077046, 0.6180345, 6.43202), (3.072792, 1.1755712, 6.150494), (3.018382, 1.6180352, 5.7120337), (2.9497645, 1.9021144, 5.1595874), (2.8736289, 2.0000017, 4.5472584), (2.797416, 1.9021144, 3.9349914), (2.728598, 1.618035, 3.3827116), (2.6739404, 1.175571, 2.9444566), (2.6388283, 0.61803424, 2.6630964), (2.6267252, -1.0516864e-15, 2.566149), (2.6388283, -0.61803424, 2.6630964), (2.6739407, -1.175571, 2.9444568), (2.7285976, -1.6180346, 3.382712), (2.797416, -1.9021137, 3.9349916), (2.8736284, -2.0000007, 4.5472574), (2.9497645, -1.9021136, 5.1595874), (3.018382, -1.6180342, 5.7120333), (3.0727918, -1.1755707, 6.150493), (3.1077046, -0.6180341, 6.432019), (3.1197307, -5.061679e-16, 6.52903), (2.1171699, 0.6180345, 6.5508966), (2.0820684, 1.1755713, 6.269641), (2.0273814, 1.618035, 5.831587), (1.9584463, 1.9021144, 5.2796316), (1.8819971, 2.0000012, 4.6678123), (1.8055137, 1.9021143, 4.0560226), (1.7364881, 1.6180348, 3.5041442), (1.6816902, 1.1755708, 3.0661879), (1.6464992, 0.61803424, 2.7850099), (1.6343716, -7.564034e-16, 2.688124), (1.6464992, -0.61803424, 2.7850099), (1.6816905, -1.1755708, 3.0661879), (1.7364882, -1.6180345, 3.5041447), (1.8055137, -1.9021136, 4.056023), (1.8819971, -2.0000005, 4.667812), (1.9584463, -1.9021136, 5.2796307), (2.0273817, -1.6180344, 5.831587), (2.0820684, -1.1755707, 6.26964), (2.1171694, -0.6180341, 6.550895), (2.1292624, -2.0068629e-16, 6.6478114), (1.128238, 0.61803436, 6.6684394), (1.0927227, 1.1755714, 6.387569), (1.0374054, 1.6180352, 5.950102), (0.9677009, 1.9021143, 5.3988614), (0.89043283, 2.0000014, 4.78781), (0.8131648, 1.9021143, 4.176759), (0.7434603, 1.6180348, 3.6255217), (0.68814254, 1.1755708, 3.188057), (0.6526264, 0.6180342, 2.9071875), (0.64038825, -4.9858747e-16, 2.8104064), (0.6526264, -0.6180342, 2.9071875), (0.68814254, -1.1755707, 3.188057), (0.74346024, -1.6180345, 3.6255214), (0.8131648, -1.9021136, 4.1767583), (0.8904327, -2.0000005, 4.7878094), (0.9677008, -1.9021134, 5.3988614), (1.0374053, -1.6180344, 5.950101), (1.0927224, -1.1755707, 6.3875675), (1.1282381, -0.6180341, 6.66844), (1.1404757, 6.6841666e-17, 6.765221), (0.14679892, 0.61803436, 6.7772393), (0.109771915, 1.1755714, 6.4975176), (0.052100964, 1.6180351, 6.061841), (-0.02056867, 1.9021142, 5.512857), (-0.10112356, 2.0000012, 4.9043036), (-0.18167846, 1.9021143, 4.2957497), (-0.25434807, 1.6180348, 3.746766), (-0.31201893, 1.1755711, 3.31109), (-0.34904593, 0.6180342, 3.0313687), (-0.36180457, -2.408366e-16, 2.9349833), (-0.34904593, -0.6180342, 3.0313687), (-0.3120189, -1.1755708, 3.31109), (-0.25434798, -1.6180344, 3.746766), (-0.1816784, -1.9021136, 4.29575), (-0.10112356, -2.0000002, 4.904303), (-0.020568721, -1.9021136, 5.512857), (0.052100856, -1.6180344, 6.0618405), (0.109771766, -1.1755707, 6.4975166), (0.14679876, -0.61803406, 6.777238), (0.15955739, 3.2548827e-16, 6.873623), (-0.8163462, 0.61803436, 6.8863964), (-0.85632056, 1.1755712, 6.6088595), (-0.9185821, 1.6180348, 6.1765857), (-0.9970361, 1.9021142, 5.63189), (-1.0840031, 2.000001, 5.028088), (-1.17097, 1.9021139, 4.424288), (-1.249424, 1.6180346, 3.879591), (-1.3116856, 1.1755711, 3.4473178), (-1.35166, 0.6180342, 3.169781), (-1.365434, 1.8037762e-17, 3.0741484), (-1.35166, -0.6180342, 3.169781), (-1.3116853, -1.1755707, 3.4473178), (-1.249424, -1.6180344, 3.879591), (-1.17097, -1.9021134, 4.4242873), (-1.0840032, -2.0000002, 5.028088), (-0.9970361, -1.9021133, 5.631888), (-0.9185822, -1.618034, 6.1765847), (-0.8563208, -1.1755705, 6.608858), (-0.8163465, -0.61803406, 6.8863955), (-0.8025723, 5.8357214e-16, 6.9820275), (-1.7375302, 0.61803436, 7.0060472), (-1.783293, 1.1755713, 6.7326827), (-1.8545705, 1.618035, 6.3069057), (-1.9443849, 1.902114, 5.770396), (-2.0439453, 2.000001, 5.1756706), (-2.1435058, 1.902114, 4.5809455), (-2.2333205, 1.6180346, 4.044436), (-2.3045976, 1.1755708, 3.6186597), (-2.3503604, 0.6180342, 3.3452945), (-2.3661292, 2.4165376e-16, 3.2510996), (-2.3503604, -0.6180342, 3.3452945), (-2.3045976, -1.1755708, 3.61866), (-2.2333202, -1.6180342, 4.044436), (-2.1435058, -1.9021133, 4.5809455), (-2.0439456, -2.0000002, 5.1756706), (-1.9443853, -1.9021132, 5.7703958), (-1.8545705, -1.6180341, 6.306904), (-1.7832934, -1.1755707, 6.7326813), (-1.7375307, -0.61803395, 7.0060463), (-1.7217622, 7.9445587e-16, 7.100242), (-2.4462385, 0.61803436, 7.164834), (-2.5130243, 1.1755712, 6.906478), (-2.6170456, 1.6180348, 6.5040793), (-2.74812, 1.902114, 5.9970274), (-2.8934174, 2.000001, 5.434956), (-3.0387142, 1.9021138, 4.8728843), (-3.1697888, 1.6180346, 4.3658323), (-3.27381, 1.1755708, 3.9634333), (-3.3405955, 0.6180341, 3.7050776), (-3.3636084, 4.527037e-16, 3.616054), (-3.3405955, -0.6180341, 3.7050776), (-3.27381, -1.1755707, 3.9634333), (-3.1697888, -1.6180341, 4.3658323), (-3.0387144, -1.9021134, 4.8728843), (-2.8934176, -2.0000005, 5.4349566), (-2.7481208, -1.9021136, 5.997027), (-2.6170466, -1.6180342, 6.50408), (-2.5130253, -1.1755707, 6.9064784), (-2.4462395, -0.618034, 7.164833), (-2.4232264, 9.490879e-16, 7.2538557), (-2.658407, 0.61803436, 7.558345), (-2.7719536, 1.1755712, 7.3341503), (-2.9488063, 1.6180351, 6.9849606), (-3.1716535, 1.902114, 6.5449553), (-3.4186814, 2.0000007, 6.0572042), (-3.66571, 1.9021143, 5.5694556), (-3.8885567, 1.6180346, 5.129449), (-4.065409, 1.1755708, 4.7802587), (-4.1789556, 0.6180342, 4.556064), (-4.218081, 6.393355e-16, 4.4788117), (-4.1789556, -0.6180342, 4.556064), (-4.065409, -1.1755707, 4.780258), (-3.888557, -1.6180342, 5.129449), (-3.6657095, -1.9021132, 5.5694547), (-3.4186816, -2.0000002, 6.0572047), (-3.1716542, -1.9021132, 6.5449533), (-2.948807, -1.6180342, 6.984959), (-2.7719545, -1.1755705, 7.3341494), (-2.6584084, -0.618034, 7.558344), (-2.619283, 1.0087549e-15, 7.6355963), (-2.518655, 0.6180343, 8.228566), (-2.6731362, 1.1755712, 8.043249), (-2.9137468, 1.618035, 7.7546086), (-3.2169333, 1.902114, 7.390901), (-3.553018, 2.000001, 6.9877276), (-3.8891037, 1.902114, 6.5845547), (-4.1922903, 1.6180347, 6.2208476), (-4.4329004, 1.1755708, 5.932207), (-4.5873814, 0.6180341, 5.746888), (-4.640612, 7.4699846e-16, 5.6830325), (-4.5873814, -0.6180341, 5.746888), (-4.4329004, -1.1755706, 5.9322066), (-4.1922903, -1.6180344, 6.2208476), (-3.8891037, -1.9021134, 6.584555), (-3.5530188, -2.0000002, 6.987727), (-3.2169342, -1.9021133, 7.390901), (-2.9137475, -1.6180341, 7.754608), (-2.6731374, -1.1755706, 8.043249), (-2.5186563, -0.618034, 8.228566), (-2.4654255, 1.0041864e-15, 8.292422), (-2.0770135, 0.6180344, 9.13101), (-2.267657, 1.1755712, 8.98562), (-2.5645912, 1.6180352, 8.759171), (-2.9387496, 1.902114, 8.473827), (-3.353508, 2.000001, 8.15752), (-3.7682662, 1.902114, 7.841216), (-4.142425, 1.6180347, 7.555872), (-4.4393587, 1.1755708, 7.329422), (-4.6300025, 0.6180341, 7.1840324), (-4.695694, 7.8773926e-16, 7.133934), (-4.6300025, -0.6180341, 7.1840324), (-4.4393587, -1.1755707, 7.329422), (-4.1424246, -1.6180344, 7.5558724), (-3.768266, -1.9021134, 7.841215), (-3.3535078, -2.0000002, 8.15752), (-2.9387496, -1.9021132, 8.473827), (-2.5645912, -1.6180342, 8.759171), (-2.2676573, -1.1755707, 8.98562), (-2.0770137, -0.618034, 9.13101), (-2.0113227, 9.45096e-16, 9.181108), (-2.0976856, 0.30901718, 9.039004), (-2.2080102, 0.5877856, 8.9794), (-2.3798454, 0.8090175, 8.886563), (-2.59637, 0.951057, 8.769584), (-2.8363893, 1.0000005, 8.639909), (-3.076409, 0.951057, 8.510235), (-3.2929337, 0.80901736, 8.393255), (-3.4647684, 0.5877854, 8.300418), (-3.575093, 0.30901706, 8.240814), (-3.6131086, 7.5597114e-16, 8.220276), (-3.575093, -0.30901706, 8.240814), (-3.4647684, -0.58778536, 8.300418), (-3.2929337, -0.8090172, 8.393256), (-3.0764089, -0.95105666, 8.510235), (-2.8363893, -1.0000001, 8.63991), (-2.5963697, -0.9510566, 8.769584), (-2.3798454, -0.8090172, 8.886564), (-2.2080107, -0.5877854, 8.979401), (-2.0976856, -0.309017, 9.039003), (-2.05967, 7.9360274e-16, 9.059543), (3.8754992, -1.1067986e-15, 4.441803), (-2.4281704, 7.024527e-16, 9.020712)], 22: [(4.12481, 0.30901724, 5.141875), (4.09934, 0.5877857, 5.0021152), (4.059666, 0.80901766, 4.7844353), (4.009668, 0.9510572, 4.5101457), (3.9542353, 1.0000007, 4.2060966), (3.8987932, 0.9510572, 3.902052), (3.8487697, 0.8090175, 3.6277735), (3.8090656, 0.58778554, 3.4101083), (3.7835705, 0.30901712, 3.2703598), (3.7747855, -8.5745807e-16, 3.2222059), (3.7835705, -0.30901712, 3.2703598), (3.809066, -0.58778554, 3.4101088), (3.8487697, -0.8090173, 3.6277738), (3.898793, -0.95105684, 3.9020517), (3.954235, -1.0000004, 4.2060966), (4.009668, -0.95105684, 4.5101457), (4.059666, -0.80901724, 4.784435), (4.09934, -0.5877855, 5.0021143), (4.1248097, -0.30901706, 5.1418743), (4.133586, -6.6797934e-16, 5.190033), (4.2910395, 0.6180344, 6.0637107), (4.2395086, 1.1755714, 5.784488), (4.1592064, 1.6180352, 5.3496175), (4.05795, 1.9021144, 4.801707), (3.9456146, 2.0000014, 4.194418), (3.8331814, 1.9021143, 3.5872104), (3.73167, 1.6180351, 3.0395105), (3.6510518, 1.175571, 2.6049006), (3.5992653, 0.6180343, 2.3258867), (3.5814164, -9.295535e-16, 2.2297494), (3.5992653, -0.6180343, 2.3258867), (3.6510515, -1.1755708, 2.6049006), (3.7316701, -1.6180346, 3.0395105), (3.8331819, -1.9021139, 3.5872107), (3.9456148, -2.0000007, 4.1944184), (4.05795, -1.9021137, 4.8017063), (4.1592064, -1.6180344, 5.3496165), (4.239508, -1.1755707, 5.784487), (4.29104, -0.61803424, 6.0637116), (4.3087916, -5.4704866e-16, 6.1599283), (3.3079422, 0.6180345, 6.239847), (3.2562263, 1.1755712, 5.9608917), (3.175647, 1.6180352, 5.5264363), (3.074057, 1.9021144, 4.979039), (2.9613743, 2.0000017, 4.3723083), (2.8486183, 1.9021144, 3.7656412), (2.7468379, 1.618035, 3.2184153), (2.6660233, 1.175571, 2.7841718), (2.614118, 0.61803424, 2.5053878), (2.596229, -7.2807156e-16, 2.4093285), (2.614118, -0.61803424, 2.5053878), (2.6660235, -1.175571, 2.784172), (2.7468379, -1.6180346, 3.2184157), (2.8486183, -1.9021137, 3.7656415), (2.9613738, -2.0000007, 4.3723073), (3.0740569, -1.9021136, 4.979039), (3.1756468, -1.6180342, 5.5264363), (3.2562265, -1.1755707, 5.960891), (3.307942, -0.6180341, 6.2398453), (3.3257585, -3.3585275e-16, 6.3359714), (2.3262339, 0.6180345, 6.4178987), (2.274345, 1.1755713, 6.139218), (2.1935105, 1.618035, 5.7051754), (2.0916293, 1.9021144, 5.1582737), (1.9786607, 2.0000012, 4.552058), (1.86566, 1.9021143, 3.9458737), (1.7636932, 1.6180348, 3.3990524), (1.6827539, 1.1755708, 2.9651096), (1.6307795, 0.61803424, 2.686509), (1.6128688, -5.21762e-16, 2.590511), (1.6307795, -0.61803424, 2.686509), (1.682754, -1.1755708, 2.96511), (1.7636931, -1.6180345, 3.3990529), (1.8656601, -1.9021136, 3.945874), (1.9786608, -2.0000005, 4.5520587), (2.0916295, -1.9021136, 5.158273), (2.1935105, -1.6180344, 5.705175), (2.2743444, -1.1755707, 6.139217), (2.3262339, -0.6180341, 6.417898), (2.3441117, -1.093941e-16, 6.5139265), (1.3460035, 0.61803436, 6.594562), (1.2937229, 1.1755714, 6.3162775), (1.2122935, 1.6180352, 5.8828397), (1.1096859, 1.9021143, 5.336675), (0.9959443, 2.0000014, 4.7312512), (0.8822029, 1.9021143, 4.125827), (0.77959526, 1.6180348, 3.579666), (0.69816536, 1.1755708, 3.1462297), (0.6458843, 0.6180342, 2.8679466), (0.62786937, -3.3699976e-16, 2.7720568), (0.6458843, -0.6180342, 2.8679466), (0.69816536, -1.1755707, 3.1462297), (0.77959526, -1.6180345, 3.5796657), (0.8822028, -1.9021136, 4.125827), (0.9959442, -2.0000005, 4.7312503), (1.1096858, -1.9021134, 5.336675), (1.2122934, -1.6180344, 5.8828382), (1.2937227, -1.1755707, 6.3162766), (1.3460035, -0.6180341, 6.5945625), (1.3640182, 8.9870493e-17, 6.690453), (0.37254217, 0.61803436, 6.762262), (0.3188204, 1.1755714, 6.4851727), (0.23514673, 1.6180351, 6.0535955), (0.12971176, 1.9021142, 5.509778), (0.012836231, 2.0000012, 4.906951), (-0.1040393, 1.9021143, 4.3041234), (-0.20947424, 1.6180348, 3.760306), (-0.2931478, 1.1755711, 3.328729), (-0.34686956, 0.6180342, 3.05164), (-0.36538082, -1.5312588e-16, 2.9561617), (-0.34686956, -0.6180342, 3.05164), (-0.29314777, -1.1755708, 3.328729), (-0.20947416, -1.6180344, 3.760306), (-0.10403925, -1.9021136, 4.3041234), (0.012836227, -2.0000002, 4.9069505), (0.12971169, -1.9021136, 5.509778), (0.23514658, -1.6180344, 6.0535955), (0.31882018, -1.1755707, 6.4851723), (0.37254193, -0.61803406, 6.762261), (0.39105317, 2.8353073e-16, 6.857739), (-0.58317494, 0.61803436, 6.929471), (-0.6397101, 1.1755712, 6.6546617), (-0.7277659, 1.6180348, 6.2266364), (-0.83872265, 1.9021142, 5.687292), (-0.961719, 2.000001, 5.0894246), (-1.0847154, 1.9021139, 4.491558), (-1.195672, 1.6180346, 3.9522138), (-1.2837276, 1.1755711, 3.5241883), (-1.340263, 0.6180342, 3.2493792), (-1.3597436, 2.943867e-17, 3.1546862), (-1.340263, -0.6180342, 3.2493792), (-1.2837275, -1.1755707, 3.5241885), (-1.1956719, -1.6180344, 3.9522142), (-1.0847154, -1.9021134, 4.491557), (-0.9617189, -2.0000002, 5.0894246), (-0.83872265, -1.9021133, 5.687291), (-0.7277661, -1.618034, 6.226635), (-0.63971037, -1.1755705, 6.6546607), (-0.58317524, -0.61803406, 6.9294705), (-0.56369454, 4.7867976e-16, 7.0241623), (-1.4975629, 0.61803436, 7.105091), (-1.5596304, 1.1755713, 6.834654), (-1.6563033, 1.618035, 6.413437), (-1.7781177, 1.902114, 5.882673), (-1.9131503, 2.000001, 5.2943163), (-2.0481827, 1.902114, 4.7059593), (-2.1699972, 1.6180346, 4.175195), (-2.2666698, 1.1755708, 3.7539785), (-2.3287373, 0.6180342, 3.4835405), (-2.3501241, 1.9367494e-16, 3.3903544), (-2.3287373, -0.6180342, 3.4835405), (-2.2666698, -1.1755708, 3.7539787), (-2.1699972, -1.6180342, 4.175195), (-2.0481827, -1.9021133, 4.7059593), (-1.9131503, -2.0000002, 5.2943153), (-1.7781178, -1.9021132, 5.882672), (-1.6563033, -1.6180341, 6.4134355), (-1.5596309, -1.1755707, 6.8346524), (-1.4975635, -0.61803395, 7.1050897), (-1.4761766, 6.3793884e-16, 7.1982775), (-2.2033677, 0.61803436, 7.3095756), (-2.2855358, 1.1755712, 7.0548897), (-2.413516, 1.6180348, 6.658206), (-2.5747802, 1.902114, 6.158355), (-2.7535431, 2.000001, 5.604268), (-2.9323056, 1.9021138, 5.0501795), (-3.0935702, 1.6180346, 4.550329), (-3.2215497, 1.1755708, 4.153646), (-3.303718, 0.6180341, 3.8989592), (-3.3320312, 3.5441375e-16, 3.8112004), (-3.303718, -0.6180341, 3.8989592), (-3.2215497, -1.1755707, 4.153646), (-3.09357, -1.6180341, 4.5503297), (-2.9323056, -1.9021134, 5.0501795), (-2.7535434, -2.0000005, 5.6042676), (-2.574781, -1.9021136, 6.158357), (-2.4135165, -1.6180342, 6.658206), (-2.2855368, -1.1755707, 7.054889), (-2.2033687, -0.618034, 7.309575), (-2.1750553, 7.5356874e-16, 7.397334), (-2.4148242, 0.61803436, 7.723662), (-2.5416574, 1.1755712, 7.504703), (-2.7392051, 1.6180351, 7.1636662), (-2.9881294, 1.902114, 6.7339334), (-3.2640643, 2.0000007, 6.2575717), (-3.54, 1.9021143, 5.7812114), (-3.7889237, 1.6180346, 5.351479), (-3.9864712, 1.1755708, 5.0104413), (-4.1133046, 0.6180342, 4.7914824), (-4.157008, 5.0233003e-16, 4.716034), (-4.1133046, -0.6180342, 4.7914824), (-3.9864714, -1.1755707, 5.010442), (-3.788924, -1.6180342, 5.351479), (-3.5399995, -1.9021132, 5.781211), (-3.2640646, -2.0000002, 6.2575717), (-2.98813, -1.9021132, 6.7339334), (-2.7392058, -1.6180342, 7.1636653), (-2.5416586, -1.1755705, 7.504702), (-2.4148254, -0.618034, 7.7236614), (-2.3711216, 7.9731116e-16, 7.79911), (-2.2839017, 0.6180343, 8.399159), (-2.4493275, 1.1755712, 8.21946), (-2.7069838, 1.618035, 7.939572), (-3.0316498, 1.902114, 7.586893), (-3.391545, 2.000001, 7.1959453), (-3.7514398, 1.902114, 6.8049984), (-4.076106, 1.6180347, 6.45232), (-4.3337626, 1.1755708, 6.1724324), (-4.4991875, 0.6180341, 5.992733), (-4.556189, 5.9338644e-16, 5.9308133), (-4.4991875, -0.6180341, 5.992733), (-4.333762, -1.1755706, 6.172432), (-4.0761056, -1.6180344, 6.45232), (-3.7514403, -1.9021134, 6.804999), (-3.3915453, -2.0000002, 7.1959453), (-3.0316508, -1.9021133, 7.586893), (-2.7069848, -1.6180341, 7.9395714), (-2.4493284, -1.1755706, 8.219459), (-2.283903, -0.618034, 8.399158), (-2.2269008, 7.95212e-16, 8.461078), (-1.8608444, 0.6180344, 9.291549), (-2.0600457, 1.1755712, 9.151504), (-2.37031, 1.6180352, 8.933381), (-2.7612646, 1.902114, 8.658528), (-3.1946416, 2.000001, 8.353853), (-3.6280189, 1.902114, 8.049177), (-4.018973, 1.6180347, 7.774326), (-4.329237, 1.1755708, 7.5562024), (-4.5284386, 0.6180341, 7.416158), (-4.5970783, 6.360437e-16, 7.3679028), (-4.5284386, -0.6180341, 7.416158), (-4.329237, -1.1755707, 7.5562024), (-4.018973, -1.6180344, 7.7743263), (-3.6280186, -1.9021134, 8.049178), (-3.194641, -2.0000002, 8.353852), (-2.7612646, -1.9021132, 8.658528), (-2.3703098, -1.6180342, 8.93338), (-2.0600462, -1.1755707, 9.151504), (-1.8608447, -0.618034, 9.291549), (-1.7922046, 7.543272e-16, 9.339805), (-1.9174244, 0.30901718, 9.184691), (-2.0312355, 0.5877856, 9.128029), (-2.2085, 0.8090175, 9.039774), (-2.4318664, 0.951057, 8.928566), (-2.6794703, 1.0000005, 8.80529), (-2.9270737, 0.951057, 8.682016), (-3.1504402, 0.80901736, 8.5708065), (-3.3277047, 0.5877854, 8.482552), (-3.4415154, 0.30901706, 8.425888), (-3.4807317, 6.1716266e-16, 8.406363), (-3.4415154, -0.30901706, 8.425888), (-3.3277044, -0.58778536, 8.482552), (-3.15044, -0.8090172, 8.570807), (-2.9270735, -0.95105666, 8.682016), (-2.6794698, -1.0000001, 8.80529), (-2.4318664, -0.9510566, 8.928566), (-2.2085004, -0.8090172, 9.039775), (-2.0312357, -0.5877854, 9.12803), (-1.9174244, -0.309017, 9.184692), (-1.8782079, 6.4227507e-16, 9.204218), (3.9549186, -7.6577337e-16, 4.2070246), (-2.272788, 5.780389e-16, 9.161659)], 23: [(4.2977204, 0.30901724, 4.7695994), (4.26002, 0.5877857, 4.6326303), (4.201296, 0.80901766, 4.4192986), (4.127293, 0.9510572, 4.150488), (4.0452533, 1.0000007, 3.852513), (3.9632037, 0.9510572, 3.5545425), (3.8891776, 0.8090175, 3.2857447), (3.830425, 0.58778554, 3.0724282), (3.7927008, 0.30901712, 2.935472), (3.7797015, -8.44785e-16, 2.8882809), (3.7927008, -0.30901712, 2.935472), (3.8304255, -0.58778554, 3.0724287), (3.8891776, -0.8090173, 3.2857447), (3.9632034, -0.95105684, 3.5545423), (4.045253, -1.0000004, 3.8525128), (4.127293, -0.95105684, 4.150487), (4.201296, -0.80901724, 4.4192977), (4.2600193, -0.5877855, 4.63263), (4.29772, -0.30901706, 4.769598), (4.310711, -6.855802e-16, 4.8167944), (4.5449395, 0.6180344, 5.6733556), (4.468979, 1.1755714, 5.39974), (4.3506284, 1.6180352, 4.973606), (4.2014337, 1.9021144, 4.4367056), (4.035964, 2.0000014, 3.841626), (3.8704045, 1.9021143, 3.2466302), (3.7209733, 1.6180351, 2.7099497), (3.6023307, 1.175571, 2.284087), (3.5261328, 0.6180343, 2.0106902), (3.4998722, -9.038477e-16, 1.9164883), (3.5261328, -0.6180343, 2.0106902), (3.6023307, -1.1755708, 2.284087), (3.7209735, -1.6180346, 2.7099497), (3.870405, -1.9021139, 3.2466307), (4.035964, -2.0000007, 3.841626), (4.201433, -1.9021137, 4.436705), (4.3506284, -1.6180344, 4.9736056), (4.4689784, -1.1755707, 5.399739), (4.544941, -0.61803424, 5.673356), (4.5711107, -5.809237e-16, 5.7676396), (3.5811906, 0.6180345, 5.935616), (3.5050662, 1.1755712, 5.662273), (3.386471, 1.6180352, 5.23656), (3.236982, 1.9021144, 4.7001796), (3.0712097, 2.0000017, 4.105664), (2.9053693, 1.9021144, 3.5112133), (2.7557063, 1.618035, 2.9750109), (2.6368947, 1.175571, 2.549517), (2.5605958, 0.61803424, 2.2763512), (2.5343013, -7.0760407e-16, 2.182228), (2.5605958, -0.61803424, 2.2763512), (2.636895, -1.175571, 2.5495174), (2.7557063, -1.6180346, 2.975011), (2.9053695, -1.9021137, 3.5112138), (3.0712092, -2.0000007, 4.105663), (3.2369823, -1.9021136, 4.7001796), (3.3864708, -1.6180342, 5.236559), (3.5050662, -1.1755707, 5.662272), (3.5811906, -0.6180341, 5.935615), (3.6074183, -3.7394646e-16, 6.029806), (2.618912, 0.6180345, 6.1996555), (2.542636, 1.1755713, 5.9265904), (2.4238193, 1.618035, 5.5012956), (2.274079, 1.9021144, 4.965417), (2.108062, 2.0000012, 4.371422), (1.942015, 1.9021143, 3.7774584), (1.7921969, 1.6180348, 3.2416632), (1.6732839, 1.1755708, 2.8164713), (1.5969299, 0.61803424, 2.5434892), (1.5706186, -5.073982e-16, 2.4494274), (1.5969299, -0.61803424, 2.5434892), (1.6732842, -1.1755708, 2.8164716), (1.792197, -1.6180345, 3.2416637), (1.942015, -1.9021136, 3.7774587), (2.1080623, -2.0000005, 4.371422), (2.274079, -1.9021136, 4.965417), (2.423819, -1.6180344, 5.501295), (2.5426354, -1.1755707, 5.9265895), (2.6189115, -0.6180341, 6.1996546), (2.6451929, -1.5223113e-16, 6.2937484), (1.6579198, 0.61803436, 6.46224), (1.5812873, 1.1755714, 6.189586), (1.4619288, 1.6180352, 5.764918), (1.3115277, 1.9021143, 5.229803), (1.1448073, 2.0000014, 4.636628), (0.9780867, 1.9021143, 4.043453), (0.82768595, 1.6180348, 3.508342), (0.70832735, 1.1755708, 3.0836754), (0.63169444, 0.6180342, 2.8110228), (0.60528845, -3.2660156e-16, 2.7170734), (0.63169444, -0.6180342, 2.8110228), (0.70832735, -1.1755707, 3.0836756), (0.827686, -1.6180345, 3.508342), (0.97808665, -1.9021136, 4.0434527), (1.144807, -2.0000005, 4.636627), (1.3115277, -1.9021134, 5.2298026), (1.4619285, -1.6180344, 5.7649164), (1.5812869, -1.1755707, 6.1895847), (1.6579198, -0.6180341, 6.4622407), (1.6843255, 4.3747154e-17, 6.556191), (0.70260966, 0.61803436, 6.715615), (0.6246443, 1.1755714, 6.4442163), (0.50321025, 1.6180351, 6.021502), (0.35019445, 1.9021142, 5.48885), (0.18057519, 2.0000012, 4.8984013), (0.010955921, 1.9021143, 4.3079534), (-0.1420598, 1.6180348, 3.7753022), (-0.26349372, 1.1755711, 3.3525875), (-0.3414591, 0.6180342, 3.0811884), (-0.3683241, -1.467529e-16, 2.9876704), (-0.3414591, -0.6180342, 3.0811884), (-0.2634937, -1.1755708, 3.3525875), (-0.14205971, -1.6180344, 3.7753022), (0.010955984, -1.9021136, 4.3079534), (0.18057518, -2.0000002, 4.8984017), (0.3501944, -1.9021136, 5.48885), (0.50321, -1.6180344, 6.021501), (0.6246439, -1.1755707, 6.4442153), (0.70260936, -0.61803406, 6.715614), (0.7294743, 2.3468215e-16, 6.809132), (-0.23585646, 0.61803436, 6.9673142), (-0.31642824, 1.1755712, 6.69832), (-0.44192183, 1.6180348, 6.279351), (-0.60005295, 1.9021142, 5.7514205), (-0.7753425, 2.000001, 5.166204), (-0.95063215, 1.9021139, 4.580988), (-1.1087631, 1.6180346, 4.053057), (-1.2342566, 1.1755711, 3.6340892), (-1.3148285, 0.6180342, 3.3650951), (-1.3425915, 3.137337e-17, 3.2724059), (-1.3148285, -0.6180342, 3.3650951), (-1.2342565, -1.1755707, 3.6340892), (-1.1087631, -1.6180344, 4.053057), (-0.9506321, -1.9021134, 4.580988), (-0.7753425, -2.0000002, 5.1662035), (-0.60005295, -1.9021133, 5.7514195), (-0.44192207, -1.618034, 6.2793503), (-0.3164286, -1.1755705, 6.6983185), (-0.23585686, -0.61803406, 6.967314), (-0.20809378, 4.2738651e-16, 7.0600023), (-1.1341498, 0.61803436, 7.224432), (-1.2198555, 1.1755713, 6.960076), (-1.353346, 1.618035, 6.54833), (-1.5215533, 1.902114, 6.0295005), (-1.7080127, 2.000001, 5.4543743), (-1.894472, 1.902114, 4.8792477), (-2.0626795, 1.6180346, 4.3604183), (-2.1961696, 1.1755708, 3.948673), (-2.2818754, 0.6180342, 3.6843164), (-2.3114076, 1.9312642e-16, 3.5932255), (-2.2818754, -0.6180342, 3.6843164), (-2.1961694, -1.1755708, 3.9486735), (-2.0626795, -1.6180342, 4.3604183), (-1.8944721, -1.9021133, 4.879247), (-1.7080127, -2.0000002, 5.454374), (-1.5215535, -1.9021132, 6.0295), (-1.3533461, -1.6180341, 6.548329), (-1.2198561, -1.1755707, 6.9600744), (-1.1341503, -0.61803395, 7.2244306), (-1.1046182, 5.8557855e-16, 7.3155227), (-1.8307, 0.61803436, 7.4957476), (-1.9350705, 1.1755712, 7.2481318), (-2.0976312, 1.6180348, 6.8624616), (-2.3024697, 1.902114, 6.376489), (-2.5295348, 2.000001, 5.8377843), (-2.7565997, 1.9021138, 5.299079), (-2.9614384, 1.6180346, 4.8131056), (-3.1239986, 1.1755708, 4.4274354), (-3.2283685, 0.6180341, 4.1798205), (-3.2643325, 3.5111932e-16, 4.0944977), (-3.2283685, -0.6180341, 4.1798205), (-3.1239989, -1.1755707, 4.4274354), (-2.961438, -1.6180341, 4.813106), (-2.7565997, -1.9021134, 5.299079), (-2.5295353, -2.0000005, 5.8377852), (-2.30247, -1.9021136, 6.3764896), (-2.097632, -1.6180342, 6.8624625), (-1.9350713, -1.1755707, 7.248132), (-1.8307008, -0.618034, 7.4957466), (-1.7947375, 7.0132306e-16, 7.581069), (-2.0388644, 0.61803436, 7.939989), (-2.18465, 1.1755712, 7.730172), (-2.4117165, 1.6180351, 7.403374), (-2.6978369, 1.902114, 6.991584), (-3.0150037, 2.0000007, 6.5351114), (-3.3321712, 1.9021143, 6.0786405), (-3.618291, 1.6180346, 5.6668496), (-3.8453572, 1.1755708, 5.3400517), (-3.9911427, 0.6180342, 5.1302347), (-4.041377, 4.931454e-16, 5.057937), (-3.9911427, -0.6180342, 5.1302347), (-3.845357, -1.1755707, 5.3400517), (-3.6182911, -1.6180342, 5.6668506), (-3.3321707, -1.9021132, 6.07864), (-3.0150044, -2.0000002, 6.535111), (-2.6978374, -1.9021132, 6.9915833), (-2.4117172, -1.6180342, 7.403373), (-2.1846511, -1.1755705, 7.7301707), (-2.0388653, -0.618034, 7.939988), (-1.9886315, 7.453876e-16, 8.012287), (-1.9203408, 0.6180343, 8.624199), (-2.1012342, 1.1755712, 8.453951), (-2.3829825, 1.618035, 8.188785), (-2.738006, 1.902114, 7.854656), (-3.1315525, 2.000001, 7.4842715), (-3.5250993, 1.902114, 7.1138873), (-3.8801227, 1.6180347, 6.779759), (-4.1618705, 1.1755708, 6.514593), (-4.342764, 0.6180341, 6.3443456), (-4.4050956, 5.791825e-16, 6.2856827), (-4.342764, -0.6180341, 6.3443456), (-4.16187, -1.1755706, 6.5145936), (-3.8801224, -1.6180344, 6.779759), (-3.525099, -1.9021134, 7.1138883), (-3.131553, -2.0000002, 7.4842715), (-2.7380066, -1.9021133, 7.854656), (-2.3829832, -1.6180341, 8.188785), (-2.1012352, -1.1755706, 8.453951), (-1.920342, -0.618034, 8.624197), (-1.8580103, 7.455035e-16, 8.682859), (-1.5256877, 0.6180344, 9.503845), (-1.7368808, 1.1755712, 9.37259), (-2.0658221, 1.6180352, 9.168156), (-2.480312, 1.902114, 8.910554), (-2.9397776, 2.000001, 8.624999), (-3.3992429, 1.902114, 8.339445), (-3.8137324, 1.6180347, 8.081843), (-4.1426735, 1.1755708, 7.877409), (-4.353867, 0.6180341, 7.7461543), (-4.4266386, 6.1844274e-16, 7.7009263), (-4.353867, -0.6180341, 7.7461543), (-4.1426735, -1.1755707, 7.877409), (-3.8137326, -1.6180344, 8.081843), (-3.3992429, -1.9021134, 8.339445), (-2.9397774, -2.0000002, 8.625), (-2.4803116, -1.9021132, 8.910554), (-2.0658221, -1.6180342, 9.168156), (-1.736881, -1.1755707, 9.37259), (-1.525688, -0.618034, 9.503844), (-1.4529159, 7.087285e-16, 9.549072), (-1.6366516, 0.30901718, 9.379087), (-1.7552637, 0.5877856, 9.327127), (-1.9400065, 0.8090175, 9.246195), (-2.1727962, 0.951057, 9.144216), (-2.4308453, 1.0000005, 9.031171), (-2.6888945, 0.951057, 8.918125), (-2.9216838, 0.80901736, 8.816145), (-3.1064262, 0.5877854, 8.735213), (-3.2250385, 0.30901706, 8.683252), (-3.2659094, 5.9123466e-16, 8.665348), (-3.2250385, -0.30901706, 8.683252), (-3.106426, -0.58778536, 8.735213), (-2.9216838, -0.8090172, 8.816146), (-2.6888945, -0.95105666, 8.918125), (-2.430845, -1.0000001, 9.031171), (-2.172796, -0.9510566, 9.144216), (-1.9400067, -0.8090172, 9.246196), (-1.7552639, -0.5877854, 9.327128), (-1.6366515, -0.309017, 9.379087), (-1.5957804, 6.0475627e-16, 9.396993), (4.0459895, -7.6802505e-16, 3.8533778), (-2.0290885, 5.4621793e-16, 9.351807)], 24: [(4.46251, 0.30901724, 4.2992783), (4.4103622, 0.5877857, 4.167133), (4.3291354, 0.80901766, 3.9613132), (4.2267795, 0.9510572, 3.7019687), (4.113309, 1.0000007, 3.4144878), (3.999829, 0.9510572, 3.1270115), (3.897451, 0.8090175, 2.8676808), (3.8161983, 0.58778554, 2.661878), (3.7640278, 0.30901712, 2.5297463), (3.746051, -1.0121476e-15, 2.4842174), (3.7640278, -0.30901712, 2.5297463), (3.8161988, -0.58778554, 2.6618783), (3.897451, -0.8090173, 2.8676808), (3.9998293, -0.95105684, 3.1270113), (4.1133084, -1.0000004, 3.4144874), (4.2267795, -0.95105684, 3.7019684), (4.3291354, -0.80901724, 3.9613128), (4.410362, -0.5877855, 4.1671324), (4.46251, -0.30901706, 4.299278), (4.480479, -8.8478695e-16, 4.344812), (4.805446, 0.6180344, 5.171587), (4.7006316, 1.1755714, 4.9076443), (4.5373425, 1.6180352, 4.4965773), (4.3315287, 1.9021144, 3.9786649), (4.1033053, 2.0000014, 3.4046364), (3.875002, 1.9021143, 2.830695), (3.6689758, 1.6180351, 2.3130105), (3.505425, 1.175571, 1.9022251), (3.400397, 0.6180343, 1.6385092), (3.364203, -1.0546679e-15, 1.5476432), (3.400397, -0.6180343, 1.6385092), (3.505425, -1.1755708, 1.9022253), (3.668976, -1.6180346, 2.3130107), (3.8750021, -1.9021139, 2.8306952), (4.1033053, -2.0000007, 3.4046364), (4.331528, -1.9021137, 3.9786649), (4.537342, -1.6180344, 4.4965773), (4.7006307, -1.1755707, 4.907643), (4.805447, -0.61803424, 5.1715875), (4.8415604, -7.954162e-16, 5.2625384), (3.8752868, 0.6180345, 5.535618), (3.770334, 1.1755712, 5.2719502), (3.6068408, 1.6180352, 4.861306), (3.4007835, 1.9021144, 4.343918), (3.17231, 2.0000017, 3.770455), (2.9437768, 1.9021144, 3.1970606), (2.7375636, 1.618035, 2.6798549), (2.5738783, 1.175571, 2.2694383), (2.4687703, 0.61803424, 2.005953), (2.4325495, -8.3389314e-16, 1.9151653), (2.4687703, -0.61803424, 2.005953), (2.5738785, -1.175571, 2.2694385), (2.7375638, -1.6180346, 2.679855), (2.943777, -1.9021137, 3.197061), (3.1723094, -2.0000007, 3.7704542), (3.400783, -1.9021136, 4.3439174), (3.6068406, -1.6180342, 4.861306), (3.7703335, -1.1755707, 5.2719493), (3.8752863, -0.6180341, 5.5356174), (3.911448, -5.638154e-16, 5.626475), (2.9466789, 0.6180345, 5.901253), (2.8416018, 1.1755713, 5.637865), (2.6779284, 1.618035, 5.227643), (2.471668, 1.9021144, 4.7107573), (2.2430005, 2.0000012, 4.1378174), (2.0143073, 1.9021143, 3.5649104), (1.8079777, 1.6180348, 3.0481112), (1.6442192, 1.1755708, 2.6379948), (1.5390731, 0.61803424, 2.3746922), (1.5028411, -6.09248e-16, 2.2839663), (1.5390731, -0.61803424, 2.3746922), (1.6442193, -1.1755708, 2.6379952), (1.8079779, -1.6180345, 3.0481112), (2.0143073, -1.9021136, 3.5649107), (2.2430007, -2.0000005, 4.137818), (2.471668, -1.9021136, 4.7107573), (2.6779282, -1.6180344, 5.2276416), (2.8416011, -1.1755707, 5.637864), (2.9466784, -0.6180341, 5.9012523), (2.982884, -3.1756544e-16, 5.9920115), (2.0191188, 0.61803436, 6.265374), (1.9137297, 1.1755714, 6.002411), (1.7495815, 1.6180352, 5.5928354), (1.5427419, 1.9021143, 5.076739), (1.3134593, 2.0000014, 4.5046463), (1.0841767, 1.9021143, 3.9325533), (0.87733775, 1.6180348, 3.4164603), (0.71318954, 1.1755708, 3.0068867), (0.60779995, 0.6180342, 2.7439241), (0.57148516, -4.0396595e-16, 2.6533136), (0.60779995, -0.6180342, 2.7439241), (0.71318954, -1.1755707, 3.006887), (0.8773378, -1.6180345, 3.4164603), (1.0841765, -1.9021136, 3.9325528), (1.313459, -2.0000005, 4.5046453), (1.5427418, -1.9021134, 5.0767393), (1.7495809, -1.6180344, 5.592834), (1.9137293, -1.1755707, 6.00241), (2.0191188, -0.6180341, 6.2653747), (2.0554335, -9.6994563e-17, 6.355987), (1.0958987, 0.61803436, 6.6201196), (0.9893144, 1.1755714, 6.3584695), (0.8233053, 1.6180351, 5.95094), (0.6141218, 1.9021142, 5.437423), (0.3822401, 2.0000012, 4.8681846), (0.15035832, 1.9021143, 4.2989464), (-0.058825165, 1.6180348, 3.7854297), (-0.22483408, 1.1755711, 3.3779), (-0.3314184, 0.6180342, 3.11625), (-0.3681448, -1.9940952e-16, 3.0260916), (-0.3314184, -0.6180342, 3.11625), (-0.22483404, -1.1755708, 3.3779001), (-0.05882506, -1.6180344, 3.7854297), (0.15035841, -1.9021136, 4.2989464), (0.38224006, -2.0000002, 4.8681846), (0.6141217, -1.9021136, 5.4374223), (0.8233052, -1.6180344, 5.950939), (0.98931414, -1.1755707, 6.3584685), (1.0958984, -0.61803406, 6.6201186), (1.1326249, 1.1891771e-16, 6.7102776), (0.18829401, 0.61803436, 6.971862), (0.07936834, 1.1755712, 6.7127438), (-0.090287395, 1.6180348, 6.3091574), (-0.30406606, 1.9021142, 5.8006096), (-0.5410415, 2.000001, 5.23688), (-0.7780169, 1.9021139, 4.67315), (-0.9917955, 1.6180346, 4.164602), (-1.1614511, 1.1755711, 3.7610164), (-1.2703768, 0.6180342, 3.5018985), (-1.3079098, 3.1233668e-18, 3.4126124), (-1.2703768, -0.6180342, 3.5018985), (-1.161451, -1.1755707, 3.7610164), (-0.99179536, -1.6180344, 4.1646023), (-0.7780169, -1.9021134, 4.6731496), (-0.5410415, -2.0000002, 5.236879), (-0.3040662, -1.9021133, 5.800609), (-0.09028769, -1.618034, 6.3091564), (0.07936788, -1.1755705, 6.7127423), (0.1882935, -0.61803406, 6.971861), (0.22582668, 3.365422e-16, 7.0611467), (-0.68088955, 0.61803436, 7.325545), (-0.7944367, 1.1755713, 7.071338), (-0.9712906, 1.618035, 6.675403), (-1.1941394, 1.902114, 6.176494), (-1.4411691, 2.000001, 5.6234508), (-1.6881989, 1.902114, 5.070407), (-1.9110477, 1.6180346, 4.5714993), (-2.0879014, 1.1755708, 4.175564), (-2.2014482, 0.6180342, 3.921357), (-2.240574, 1.8818014e-16, 3.8337638), (-2.2014482, -0.6180342, 3.921357), (-2.0879014, -1.1755708, 4.1755633), (-1.9110475, -1.6180342, 4.5714993), (-1.6881988, -1.9021133, 5.070407), (-1.4411691, -2.0000002, 5.6234508), (-1.1941394, -1.9021132, 6.176494), (-0.9712908, -1.6180341, 6.6754017), (-0.79443717, -1.1755707, 7.0713367), (-0.68089026, -0.61803395, 7.3255434), (-0.6417647, 5.1902166e-16, 7.413138), (-1.3583342, 0.61803436, 7.6765146), (-1.488693, 1.1755712, 7.4400754), (-1.6917318, 1.6180348, 7.0718117), (-1.9475753, 1.902114, 6.607773), (-2.2311802, 2.000001, 6.093382), (-2.514785, 1.9021138, 5.578991), (-2.7706287, 1.6180346, 5.1149526), (-2.9736674, 1.1755708, 4.7466893), (-3.104026, 0.6180341, 4.5102496), (-3.1489449, 3.642715e-16, 4.4287786), (-3.104026, -0.6180341, 4.5102496), (-2.9736671, -1.1755707, 4.746689), (-2.7706285, -1.6180341, 5.114953), (-2.514785, -1.9021134, 5.5789914), (-2.2311807, -2.0000005, 6.093383), (-1.947576, -1.9021136, 6.6077743), (-1.6917326, -1.6180342, 7.0718117), (-1.4886941, -1.1755707, 7.4400754), (-1.3583351, -0.618034, 7.676514), (-1.3134167, 6.564083e-16, 7.7579846), (-1.5589458, 0.61803436, 8.156803), (-1.7265474, 1.1755712, 7.9602785), (-1.9875932, 1.6180351, 7.654186), (-2.31653, 1.902114, 7.268486), (-2.6811595, 2.0000007, 6.8409333), (-3.045789, 1.9021143, 6.413383), (-3.374725, 1.6180346, 6.027682), (-3.6357708, 1.1755708, 5.7215886), (-3.8033726, 0.6180342, 5.5250645), (-3.8611243, 5.07561e-16, 5.4573474), (-3.8033726, -0.6180342, 5.5250645), (-3.635771, -1.1755707, 5.7215886), (-3.3747256, -1.6180342, 6.027682), (-3.0457885, -1.9021132, 6.413382), (-2.6811597, -2.0000002, 6.8409333), (-2.3165307, -1.9021132, 7.268485), (-1.9875939, -1.6180342, 7.654185), (-1.7265482, -1.1755705, 7.9602785), (-1.5589466, -0.618034, 8.156802), (-1.5011953, 7.0977957e-16, 8.22452), (-1.4543704, 0.6180343, 8.853009), (-1.6528332, 1.1755712, 8.696016), (-1.9619461, 1.618035, 8.451495), (-2.3514512, 1.902114, 8.143378), (-2.7832208, 2.000001, 7.80183), (-3.2149904, 1.902114, 7.460282), (-3.6044953, 1.6180347, 7.152168), (-3.9136076, 1.1755708, 6.9076443), (-4.11207, 0.6180341, 6.7506523), (-4.180455, 5.881305e-16, 6.6965566), (-4.11207, -0.6180341, 6.7506523), (-3.9136076, -1.1755706, 6.9076443), (-3.604495, -1.6180344, 7.152167), (-3.2149904, -1.9021134, 7.460283), (-2.7832208, -2.0000002, 7.8018303), (-2.3514516, -1.9021133, 8.143379), (-1.961947, -1.6180341, 8.451493), (-1.652834, -1.1755706, 8.696016), (-1.4543716, -0.618034, 8.853008), (-1.3859861, 7.133324e-16, 8.907104), (-1.0955487, 0.6180344, 9.720626), (-1.3201892, 1.1755712, 9.601414), (-1.6700757, 1.6180352, 9.415734), (-2.1109571, 1.902114, 9.181765), (-2.5996788, 2.000001, 8.922407), (-3.0884001, 1.902114, 8.663052), (-3.5292816, 1.6180347, 8.429081), (-3.8791673, 1.1755708, 8.2434025), (-4.103808, 0.6180341, 8.12419), (-4.181214, 6.185749e-16, 8.083112), (-4.103808, -0.6180341, 8.12419), (-3.8791673, -1.1755707, 8.2434025), (-3.5292814, -1.6180344, 8.429082), (-3.0883996, -1.9021134, 8.663051), (-2.5996785, -2.0000002, 8.922407), (-2.1109571, -1.9021132, 9.181765), (-1.6700755, -1.6180342, 9.415733), (-1.3201897, -1.1755707, 9.601413), (-1.0955493, -0.618034, 9.720626), (-1.0181435, 6.7676794e-16, 9.761704), (-1.2743466, 0.30901718, 9.580687), (-1.3982029, 0.5877856, 9.534977), (-1.5911131, 0.8090175, 9.46378), (-1.8341944, 0.951057, 9.374069), (-2.103652, 1.0000005, 9.274623), (-2.3731098, 0.951057, 9.175177), (-2.6161907, 0.80901736, 9.085466), (-2.8091009, 0.5877854, 9.01427), (-2.932957, 0.30901706, 8.968559), (-2.9756346, 5.6699036e-16, 8.952808), (-2.932957, -0.30901706, 8.968559), (-2.8091009, -0.58778536, 9.01427), (-2.6161904, -0.8090172, 9.085466), (-2.3731096, -0.95105666, 9.175177), (-2.1036515, -1.0000001, 9.274623), (-1.8341943, -0.9510566, 9.37407), (-1.5911132, -0.8090172, 9.463781), (-1.3982028, -0.5877854, 9.534978), (-1.2743466, -0.309017, 9.580687), (-1.2316687, 5.674886e-16, 9.596437), (4.114103, -9.513602e-16, 3.41527), (-1.712083, 5.037457e-16, 9.552666)], 25: [(4.583498, 0.30901724, 3.7706687), (4.516314, 0.5877857, 3.645496), (4.4116693, 0.80901766, 3.450536), (4.2798038, 0.9510572, 3.204876), (4.1336236, 1.0000007, 2.932565), (3.9874346, 0.9510572, 2.660259), (3.8555505, 0.8090175, 2.414614), (3.7508812, 0.58778554, 2.2196727), (3.6836767, 0.30901712, 2.0945144), (3.6605198, -9.430367e-16, 2.0513878), (3.6836767, -0.30901712, 2.0945144), (3.7508814, -0.58778554, 2.219673), (3.8555503, -0.8090173, 2.4146142), (3.9874346, -0.95105684, 2.660259), (4.133623, -1.0000004, 2.9325647), (4.2798038, -0.95105684, 3.204876), (4.4116693, -0.80901724, 3.4505353), (4.5163136, -0.5877855, 3.6454952), (4.5834975, -0.30901706, 3.7706683), (4.606647, -8.3228605e-16, 3.8138), (5.0261087, 0.6180344, 4.59733), (4.891269, 1.1755714, 4.347357), (4.681221, 1.6180352, 3.9580479), (4.416493, 1.9021144, 3.4675534), (4.1229734, 2.0000014, 2.9239206), (3.8293843, 1.9021143, 2.3803768), (3.5644722, 1.6180351, 1.8901167), (3.354195, 1.175571, 1.5010965), (3.21917, 0.6180343, 1.2513553), (3.1726398, -9.677894e-16, 1.165305), (3.21917, -0.6180343, 1.2513553), (3.354195, -1.1755708, 1.5010966), (3.5644722, -1.6180346, 1.8901168), (3.8293843, -1.9021139, 2.380377), (4.1229734, -2.0000007, 2.9239209), (4.4164925, -1.9021137, 3.4675534), (4.6812205, -1.6180344, 3.9580472), (4.8912683, -1.1755707, 4.347356), (5.0261097, -0.61803424, 4.5973306), (5.0725684, -7.456404e-16, 4.6834693), (4.1446486, 0.6180345, 5.0673227), (4.0097, 1.1755712, 4.8176227), (3.7994907, 1.6180352, 4.428736), (3.5345738, 1.9021144, 3.938762), (3.240862, 2.0000017, 3.3956907), (2.9470983, 1.9021144, 2.85269), (2.6820471, 1.618035, 2.3629036), (2.4716725, 1.175571, 1.9742476), (2.33659, 0.61803424, 1.7247342), (2.2900414, -7.59338e-16, 1.6387609), (2.33659, -0.61803424, 1.7247342), (2.4716728, -1.175571, 1.9742479), (2.6820474, -1.6180346, 2.3629038), (2.9470987, -1.9021137, 2.8526902), (3.2408614, -2.0000007, 3.39569), (3.5345733, -1.9021136, 3.9387617), (3.7994905, -1.6180342, 4.428735), (4.0097, -1.1755707, 4.8176227), (4.1446486, -0.6180341, 5.0673223), (4.191146, -5.3082e-16, 5.1533666), (3.2648063, 0.6180345, 5.5387197), (3.1297631, 1.1755713, 5.2892985), (2.9194183, 1.618035, 4.90083), (2.6543517, 1.9021144, 4.411357), (2.3605003, 2.0000012, 3.8688047), (2.066627, 1.9021143, 3.3262854), (1.8015009, 1.6180348, 2.8369), (1.5910833, 1.1755708, 2.4485402), (1.4559813, 0.61803424, 2.1992059), (1.4094274, -5.430563e-16, 2.113293), (1.4559813, -0.61803424, 2.1992059), (1.5910835, -1.1755708, 2.4485404), (1.8015012, -1.6180345, 2.8369002), (2.066627, -1.9021136, 3.3262856), (2.3605003, -2.0000005, 3.8688047), (2.6543515, -1.9021136, 4.411357), (2.919418, -1.6180344, 4.9008293), (3.1297624, -1.1755707, 5.289297), (3.2648058, -0.6180341, 5.538719), (3.3113368, -2.9896745e-16, 5.6246657), (2.3857467, 0.61803436, 6.0085692), (2.250441, 1.1755714, 5.7595806), (2.0396962, 1.6180352, 5.371773), (1.774142, 1.9021143, 4.8831067), (1.4797736, 2.0000014, 4.3414197), (1.1854054, 1.9021143, 3.799731), (0.919852, 1.6180348, 3.3110678), (0.70910764, 1.1755708, 2.9232624), (0.5738015, 0.6180342, 2.6742754), (0.52717817, -3.5592134e-16, 2.5884805), (0.5738015, -0.6180342, 2.6742754), (0.7091077, -1.1755707, 2.9232624), (0.919852, -1.6180345, 3.3110676), (1.1854051, -1.9021136, 3.7997308), (1.4797734, -2.0000005, 4.3414183), (1.7741419, -1.9021134, 4.8831067), (2.0396957, -1.6180344, 5.371772), (2.2504404, -1.1755707, 5.7595797), (2.3857467, -0.6180341, 6.0085692), (2.4323702, -9.930023e-17, 6.094365), (1.5095553, 0.61803436, 6.469024), (1.3732105, 1.1755714, 6.221397), (1.1608486, 1.6180351, 5.835708), (0.8932568, 1.9021142, 5.3497133), (0.59662914, 2.0000012, 4.810983), (0.30000147, 1.9021143, 4.2722526), (0.03240986, 1.6180348, 3.7862573), (-0.17995201, 1.1755711, 3.4005692), (-0.31629676, 0.6180342, 3.1529422), (-0.36327785, -1.693873e-16, 3.0676155), (-0.31629676, -0.6180342, 3.1529422), (-0.17995194, -1.1755708, 3.400569), (0.032409985, -1.6180344, 3.7862575), (0.30000156, -1.9021136, 4.2722526), (0.5966291, -2.0000002, 4.810983), (0.8932566, -1.9021136, 5.3497133), (1.1608483, -1.6180344, 5.8357086), (1.3732101, -1.1755707, 6.221397), (1.5095549, -0.61803406, 6.469023), (1.556536, 9.391491e-17, 6.5543504), (0.6474893, 0.61803436, 6.925191), (0.5091053, 1.1755712, 6.6802006), (0.29356706, 1.6180348, 6.2986197), (0.021973055, 1.9021142, 5.817799), (-0.27909118, 2.000001, 5.2848053), (-0.5801554, 1.9021139, 4.751812), (-0.8517493, 1.6180346, 4.270991), (-1.0672874, 1.1755711, 3.8894105), (-1.2056714, 0.6180342, 3.6444204), (-1.2533551, 1.679398e-17, 3.5600026), (-1.2056714, -0.6180342, 3.6444204), (-1.0672873, -1.1755707, 3.8894105), (-0.8517491, -1.6180344, 4.2709913), (-0.5801553, -1.9021134, 4.7518115), (-0.2790912, -2.0000002, 5.2848053), (0.02197288, -1.9021133, 5.817799), (0.2935667, -1.618034, 6.298619), (0.5091048, -1.1755705, 6.6802), (0.6474887, -0.61803406, 6.9251904), (0.6951726, 2.88481e-16, 7.0096083), (-0.17847253, 0.61803436, 7.3797517), (-0.3208903, 1.1755713, 7.1399074), (-0.54271126, 1.618035, 6.7663407), (-0.8222219, 1.902114, 6.29562), (-1.1320618, 2.000001, 5.773822), (-1.4419017, 1.902114, 5.2520237), (-1.7214121, 1.6180346, 4.781303), (-1.9432328, 1.1755708, 4.407737), (-2.0856507, 0.6180342, 4.1678925), (-2.1347244, 1.7601404e-16, 4.085248), (-2.0856507, -0.6180342, 4.1678925), (-1.9432328, -1.1755708, 4.4077363), (-1.7214121, -1.6180342, 4.781302), (-1.4419017, -1.9021133, 5.252023), (-1.1320617, -2.0000002, 5.773822), (-0.8222221, -1.9021132, 6.295619), (-0.5427117, -1.6180341, 6.7663403), (-0.32089093, -1.1755707, 7.139906), (-0.17847326, -0.61803395, 7.3797507), (-0.12939952, 4.432238e-16, 7.462396), (-0.8255698, 0.61803436, 7.8145294), (-0.98267126, 1.1755712, 7.593336), (-1.2273624, 1.6180348, 7.2488184), (-1.5356914, 1.902114, 6.8147006), (-1.8774766, 2.000001, 6.333478), (-2.2192616, 1.9021138, 5.852255), (-2.5275903, 1.6180346, 5.418138), (-2.7722812, 1.1755708, 5.073621), (-2.9293823, 0.6180341, 4.852427), (-2.9835162, 3.243165e-16, 4.776209), (-2.9293823, -0.6180341, 4.852427), (-2.7722814, -1.1755707, 5.073621), (-2.5275905, -1.6180341, 5.4181385), (-2.2192616, -1.9021134, 5.8522553), (-1.8774768, -2.0000005, 6.3334794), (-1.535692, -1.9021136, 6.814702), (-1.2273632, -1.6180342, 7.2488194), (-0.9826724, -1.1755707, 7.593336), (-0.8255709, -0.618034, 7.8145285), (-0.77143747, 5.561799e-16, 7.890747), (-1.0136298, 0.61803436, 8.332877), (-1.2032048, 1.1755712, 8.153381), (-1.498475, 1.6180351, 7.873809), (-1.870537, 1.902114, 7.521527), (-2.2829707, 2.0000007, 7.13102), (-2.695405, 1.9021143, 6.7405148), (-3.0674665, 1.6180346, 6.388232), (-3.3627365, 1.1755708, 6.1086607), (-3.5523117, 0.6180342, 5.9291644), (-3.6176343, 4.486205e-16, 5.8673143), (-3.5523117, -0.6180342, 5.9291644), (-3.3627362, -1.1755707, 6.1086607), (-3.0674665, -1.6180342, 6.3882327), (-2.6954045, -1.9021132, 6.740514), (-2.2829711, -2.0000002, 7.13102), (-1.8705374, -1.9021132, 7.5215273), (-1.4984757, -1.6180342, 7.8738084), (-1.2032058, -1.1755705, 8.15338), (-1.0136309, -0.618034, 8.332877), (-0.9483079, 5.995788e-16, 8.394727), (-0.92267823, 0.6180343, 9.043753), (-1.1385267, 1.1755712, 8.903229), (-1.4747188, 1.618035, 8.684359), (-1.8983454, 1.902114, 8.4085655), (-2.3679388, 2.000001, 8.102846), (-2.8375325, 1.902114, 7.7971287), (-3.2611592, 1.6180347, 7.521335), (-3.5973506, 1.1755708, 7.3024645), (-3.8131995, 0.6180341, 7.161941), (-3.8875756, 5.2135847e-16, 7.11352), (-3.8131995, -0.6180341, 7.161941), (-3.5973506, -1.1755706, 7.302464), (-3.261159, -1.6180344, 7.521335), (-2.8375325, -1.9021134, 7.797128), (-2.367939, -2.0000002, 8.102847), (-1.8983457, -1.9021133, 8.408565), (-1.4747194, -1.6180341, 8.684359), (-1.1385278, -1.1755706, 8.903229), (-0.9226792, -0.618034, 9.043751), (-0.84830314, 6.0490355e-16, 9.092173), (-0.6040649, 0.6180344, 9.90272), (-0.84178185, 1.1755712, 9.798162), (-1.212035, 1.6180352, 9.635312), (-1.6785805, 1.902114, 9.430107), (-2.1957502, 2.000001, 9.202636), (-2.7129204, 1.902114, 8.975165), (-3.179466, 1.6180347, 8.769961), (-3.5497186, 1.1755708, 8.607111), (-3.7874355, 0.6180341, 8.502552), (-3.869347, 5.5331887e-16, 8.466525), (-3.7874355, -0.6180341, 8.502552), (-3.5497184, -1.1755707, 8.607111), (-3.1794655, -1.6180344, 8.769961), (-2.71292, -1.9021134, 8.975165), (-2.1957502, -2.0000002, 9.202637), (-1.6785806, -1.9021132, 9.430107), (-1.2120351, -1.6180342, 9.635312), (-0.8417824, -1.1755707, 9.798162), (-0.6040655, -0.618034, 9.90272), (-0.5221539, 5.7941654e-16, 9.938747), (-0.8580596, 0.30901718, 9.754615), (-0.9868257, 0.5877856, 9.716301), (-1.1873838, 0.8090175, 9.656628), (-1.4401015, 0.951057, 9.581432), (-1.7202413, 1.0000005, 9.498078), (-2.0003812, 0.951057, 9.414725), (-2.253099, 0.80901736, 9.33953), (-2.453657, 0.5877854, 9.279856), (-2.5824227, 0.30901706, 9.241542), (-2.6267924, 5.092747e-16, 9.228341), (-2.5824227, -0.30901706, 9.241542), (-2.4536567, -0.58778536, 9.279856), (-2.2530985, -0.8090172, 9.339531), (-2.000381, -0.95105666, 9.414725), (-1.7202413, -1.0000001, 9.498079), (-1.4401014, -0.9510566, 9.581432), (-1.1873838, -0.8090172, 9.656628), (-0.98682594, -0.5877854, 9.716302), (-0.85805964, -0.309017, 9.754614), (-0.8136898, 4.9707705e-16, 9.767817), (4.134469, -8.915329e-16, 2.9332519), (-1.344869, 4.532916e-16, 9.731304)], 26: [(4.6420913, 0.30901724, 3.231565), (4.5607867, 0.5877857, 3.115068), (4.4341474, 0.80901766, 2.933622), (4.2745686, 0.9510572, 2.7049906), (4.0976686, 1.0000007, 2.451556), (3.92076, 0.9510572, 2.198127), (3.7611628, 0.8090175, 1.9695112), (3.6345022, 0.58778554, 1.7880844), (3.553179, 0.30901712, 1.6716031), (3.5251563, -8.361239e-16, 1.6314669), (3.553179, -0.30901712, 1.6716031), (3.6345026, -0.58778554, 1.7880846), (3.761163, -0.8090173, 1.9695112), (3.9207597, -0.95105684, 2.198127), (4.0976677, -1.0000004, 2.451556), (4.274568, -0.95105684, 2.7049906), (4.4341474, -0.80901724, 2.9336216), (4.560786, -0.5877855, 3.1150675), (4.642091, -0.30901706, 3.2315645), (4.670107, -7.74904e-16, 3.2717068), (5.1783834, 0.6180344, 4.001281), (5.0153503, 1.1755714, 3.7686777), (4.7613945, 1.6180352, 3.4064252), (4.441348, 1.9021144, 2.9500246), (4.0865164, 2.0000014, 2.4441857), (3.731626, 1.9021143, 1.938437), (3.4114225, 1.6180351, 1.4822731), (3.1572723, 1.175571, 1.1203128), (2.9940817, 0.6180343, 0.88794523), (2.9378474, -8.460238e-16, 0.8078814), (2.9940817, -0.6180343, 0.88794523), (3.1572723, -1.1755708, 1.1203129), (3.4114227, -1.6180346, 1.4822733), (3.7316265, -1.9021139, 1.9384373), (4.0865164, -2.0000007, 2.4441855), (4.4413476, -1.9021137, 2.9500241), (4.761394, -1.6180344, 3.4064245), (5.0153494, -1.1755707, 3.7686768), (5.178384, -0.61803424, 4.001281), (5.234558, -7.1873567e-16, 4.0814333), (4.3576317, 0.6180345, 4.5708413), (4.1945186, 1.1755712, 4.3385077), (3.9404452, 1.6180352, 3.9766698), (3.6202624, 1.9021144, 3.5207806), (3.2652965, 2.0000017, 3.015493), (2.9102867, 1.9021144, 2.5102763), (2.5899918, 1.618035, 2.0545754), (2.33578, 1.175571, 1.6929705), (2.1725545, 0.61803424, 1.4608251), (2.1163087, -6.6406234e-16, 1.3808365), (2.1725545, -0.61803424, 1.4608251), (2.3357801, -1.175571, 1.6929708), (2.5899918, -1.6180346, 2.0545757), (2.910287, -1.9021137, 2.510276), (3.265296, -2.0000007, 3.0154924), (3.6202621, -1.9021136, 3.52078), (3.9404452, -1.6180342, 3.9766693), (4.1945186, -1.1755707, 4.3385067), (4.3576317, -0.6180341, 4.5708404), (4.413834, -5.258804e-16, 4.6509013), (3.5385423, 0.6180345, 5.1416), (3.3753636, 1.1755713, 4.90954), (3.1211987, 1.618035, 4.548114), (2.8009186, 1.9021144, 4.0927167), (2.4458666, 2.0000012, 3.5879364), (2.0907965, 1.9021143, 3.0831904), (1.7704673, 1.6180348, 2.627881), (1.5162424, 1.1755708, 2.2665634), (1.3530153, 0.61803424, 2.034592), (1.2967702, -4.7816884e-16, 1.9546618), (1.3530153, -0.61803424, 2.034592), (1.5162424, -1.1755708, 2.266564), (1.7704675, -1.6180345, 2.6278808), (2.0907965, -1.9021136, 3.0831907), (2.4458668, -2.0000005, 3.5879369), (2.8009186, -1.9021136, 4.092716), (3.1211984, -1.6180344, 4.5481133), (3.3753633, -1.1755707, 4.909539), (3.5385416, -0.6180341, 5.1415987), (3.5947673, -3.1832867e-16, 5.2215633), (2.719968, 0.61803436, 5.710808), (2.5565765, 1.1755714, 5.479186), (2.3020883, 1.6180352, 5.1184254), (1.9814137, 1.9021143, 4.6638393), (1.625944, 2.0000014, 4.1599317), (1.2704746, 1.9021143, 3.656023), (0.9498012, 1.6180348, 3.2014406), (0.6953133, 1.1755708, 2.840682), (0.53192204, 0.6180342, 2.6090608), (0.47562134, -3.1168274e-16, 2.5292494), (0.53192204, -0.6180342, 2.6090608), (0.6953134, -1.1755707, 2.8406823), (0.94980127, -1.6180345, 3.2014406), (1.2704747, -1.9021136, 3.6560228), (1.6259439, -2.0000005, 4.159931), (1.9814134, -1.9021134, 4.6638393), (2.3020875, -1.6180344, 5.118424), (2.556576, -1.1755707, 5.479184), (2.7199678, -0.6180341, 5.7108083), (2.776269, -1.3639897e-16, 5.7906203), (1.9027975, 0.61803436, 6.270776), (1.7385283, 1.1755714, 6.040543), (1.4826727, 1.6180351, 5.6819463), (1.1602758, 1.9021142, 5.2300878), (0.8028964, 2.0000012, 4.7291994), (0.4455169, 1.9021143, 4.2283106), (0.12312034, 1.6180348, 3.7764528), (-0.13273501, 1.1755711, 3.4178557), (-0.29700428, 0.6180342, 3.1876228), (-0.35360757, -1.461399e-16, 3.10829), (-0.29700428, -0.6180342, 3.1876228), (-0.13273494, -1.1755708, 3.417856), (0.12312048, -1.6180344, 3.7764525), (0.44551706, -1.9021136, 4.2283106), (0.80289644, -2.0000002, 4.7291994), (1.1602757, -1.9021136, 5.2300878), (1.4826723, -1.6180344, 5.681946), (1.7385277, -1.1755707, 6.040542), (1.9027967, -0.61803406, 6.270775), (1.9594002, 4.113808e-17, 6.3501086), (1.0981234, 0.61803436, 6.825353), (0.93212694, 1.1755712, 6.597826), (0.6735815, 1.6180348, 6.243444), (0.3477953, 1.9021142, 5.796896), (-0.013341555, 2.000001, 5.3018947), (-0.37447837, 1.9021139, 4.806893), (-0.7002645, 1.6180346, 4.3603444), (-0.95881, 1.1755711, 4.005963), (-1.1248063, 0.6180342, 3.7784355), (-1.1820046, 1.7426239e-17, 3.700035), (-1.1248063, -0.6180342, 3.7784355), (-0.95880973, -1.1755707, 4.005963), (-0.7002644, -1.6180344, 4.3603454), (-0.37447822, -1.9021134, 4.806892), (-0.013341579, -2.0000002, 5.301894), (0.34779504, -1.9021133, 5.796895), (0.6735811, -1.618034, 6.243443), (0.9321264, -1.1755705, 6.597825), (1.0981228, -0.61803406, 6.825353), (1.1553211, 2.2102499e-16, 6.903753), (0.32683876, 0.61803436, 7.37507), (0.15741967, 1.1755713, 7.152853), (-0.106456846, 1.618035, 6.806741), (-0.43896058, 1.902114, 6.370615), (-0.80754375, 2.000001, 5.8871655), (-1.176127, 1.902114, 5.403716), (-1.5086304, 1.6180346, 4.96759), (-1.7725067, 1.1755708, 4.6214786), (-1.9419258, 0.6180342, 4.3992615), (-2.0003037, 1.6380807e-16, 4.322691), (-1.9419258, -0.6180342, 4.3992615), (-1.7725066, -1.1755708, 4.6214786), (-1.5086303, -1.6180342, 4.96759), (-1.1761268, -1.9021133, 5.4037156), (-0.8075438, -2.0000002, 5.8871646), (-0.43896082, -1.9021132, 6.370614), (-0.10645734, -1.6180341, 6.8067408), (0.15741894, -1.1755707, 7.1528516), (0.32683796, -0.61803395, 7.3750696), (0.38521576, 3.6720914e-16, 7.451641), (-0.2803562, 0.61803436, 7.889551), (-0.46224236, 1.1755712, 7.686614), (-0.7455368, 1.6180348, 7.370532), (-1.1025087, 1.902114, 6.9722457), (-1.4982147, 2.000001, 6.530742), (-1.8939208, 1.9021138, 6.089238), (-2.2508924, 1.6180346, 5.6909523), (-2.5341866, 1.1755708, 5.3748703), (-2.7160728, 0.6180341, 5.171933), (-2.7787464, 3.0231366e-16, 5.102006), (-2.7160728, -0.6180341, 5.171933), (-2.5341864, -1.1755707, 5.3748703), (-2.2508922, -1.6180341, 5.690952), (-1.8939208, -1.9021134, 6.0892386), (-1.498215, -2.0000005, 6.530743), (-1.102509, -1.9021136, 6.972246), (-0.7455376, -1.6180342, 7.3705335), (-0.4622434, -1.1755707, 7.686615), (-0.28035727, -0.618034, 7.88955), (-0.21768361, 4.7561154e-16, 7.959478), (-0.45151705, 0.61803436, 8.444237), (-0.66093254, 1.1755712, 8.284212), (-0.987105, 1.6180351, 8.034967), (-1.3981062, 1.902114, 7.7208996), (-1.8537043, 2.0000007, 7.372753), (-2.3093026, 1.9021143, 7.024609), (-2.7203033, 1.6180346, 6.7105412), (-3.0464756, 1.1755708, 6.4612966), (-3.2558913, 0.6180342, 6.3012714), (-3.3280509, 4.1467223e-16, 6.24613), (-3.2558913, -0.6180342, 6.3012714), (-3.0464756, -1.1755707, 6.461297), (-2.7203033, -1.6180342, 6.7105412), (-2.3093026, -1.9021132, 7.024608), (-1.8537047, -2.0000002, 7.372753), (-1.3981067, -1.9021132, 7.7208996), (-0.9871059, -1.6180342, 8.034966), (-0.6609336, -1.1755705, 8.284211), (-0.45151824, -0.618034, 8.444236), (-0.3793587, 5.1740933e-16, 8.499377), (-0.37238762, 0.6180343, 9.171269), (-0.6035854, 1.1755712, 9.049129), (-0.9636845, 1.618035, 8.858888), (-1.4174358, 1.902114, 8.619171), (-1.9204227, 2.000001, 8.353444), (-2.4234097, 1.902114, 8.087717), (-2.8771613, 1.6180347, 7.848002), (-3.2372596, 1.1755708, 7.657761), (-3.4684575, 0.6180341, 7.5356193), (-3.5481224, 4.7980626e-16, 7.493532), (-3.4684575, -0.6180341, 7.5356193), (-3.2372596, -1.1755706, 7.657761), (-2.8771608, -1.6180344, 7.8480015), (-2.4234097, -1.9021134, 8.087717), (-1.920423, -2.0000002, 8.353444), (-1.4174361, -1.9021133, 8.619172), (-0.9636852, -1.6180341, 8.858887), (-0.6035864, -1.1755706, 9.049128), (-0.37238875, -0.618034, 9.171269), (-0.2927236, 5.2507366e-16, 9.213356), (-0.094716765, 0.6180344, 10.026328), (-0.34371397, 1.1755712, 9.937852), (-0.7315364, 1.6180352, 9.800046), (-1.2202209, 1.902114, 9.626398), (-1.7619318, 2.000001, 9.433908), (-2.3036427, 1.902114, 9.241421), (-2.792327, 1.6180347, 9.067775), (-3.1801488, 1.1755708, 8.929968), (-3.429146, 0.6180341, 8.841491), (-3.5149446, 5.0865906e-16, 8.811004), (-3.429146, -0.6180341, 8.841491), (-3.1801486, -1.1755707, 8.929968), (-2.7923267, -1.6180344, 9.067775), (-2.3036425, -1.9021134, 9.241421), (-1.7619317, -2.0000002, 9.433909), (-1.2202209, -1.9021132, 9.626398), (-0.73153657, -1.6180342, 9.800045), (-0.34371454, -1.1755707, 9.937851), (-0.09471746, -0.618034, 10.026328), (-0.008918974, 5.058055e-16, 10.056815), (-0.4243475, 0.30901718, 9.878871), (-0.5571287, 0.5877856, 9.848475), (-0.7639404, 0.8090175, 9.801134), (-1.0245383, 0.951057, 9.741481), (-1.3134131, 1.0000005, 9.675355), (-1.6022879, 0.951057, 9.609229), (-1.8628858, 0.80901736, 9.549575), (-2.0696971, 0.5877854, 9.502235), (-2.2024782, 0.30901706, 9.47184), (-2.2482316, 4.583981e-16, 9.461366), (-2.2024782, -0.30901706, 9.47184), (-2.0696971, -0.58778536, 9.502235), (-1.8628856, -0.8090172, 9.549576), (-1.6022878, -0.95105666, 9.609228), (-1.3134129, -1.0000001, 9.675355), (-1.0245382, -0.9510566, 9.74148), (-0.76394045, -0.8090172, 9.801135), (-0.55712897, -0.5877854, 9.848477), (-0.4243476, -0.309017, 9.87887), (-0.37859437, 4.352014e-16, 9.889343), (4.098553, -8.0838347e-16, 2.4521418), (-0.9593475, 3.9909363e-16, 9.865954)], 27: [(4.640226, 0.30901724, 2.7332146), (4.546915, 0.5877857, 2.6260915), (4.401579, 0.80901766, 2.4592462), (4.218439, 0.9510572, 2.2490122), (4.015423, 1.0000007, 2.0159721), (3.8123991, 0.9510572, 1.7829379), (3.629244, 0.8090175, 1.5727205), (3.4838877, 0.58778554, 1.405895), (3.3905609, 0.30901712, 1.2987882), (3.3584032, -8.1991185e-16, 1.2618821), (3.3905609, -0.30901712, 1.2987882), (3.483888, -0.58778554, 1.4058952), (3.6292443, -0.8090173, 1.5727205), (3.812399, -0.95105684, 1.7829378), (4.0154223, -1.0000004, 2.015972), (4.218439, -0.95105684, 2.2490122), (4.4015784, -0.80901724, 2.459246), (4.5469146, -0.5877855, 2.626091), (4.640225, -0.30901706, 2.7332141), (4.6723776, -7.868904e-16, 2.770126), (5.2562203, 0.6180344, 3.4413018), (5.069225, 1.1755714, 3.2274587), (4.77795, 1.6180352, 2.8944252), (4.4108853, 1.9021144, 2.4748425), (4.0039444, 2.0000014, 2.009817), (3.596953, 1.9021143, 1.544881), (3.2297583, 1.6180351, 1.125535), (2.9383206, 1.175571, 0.79279315), (2.751193, 0.6180343, 0.57918495), (2.6867106, -8.157016e-16, 0.50558525), (2.751193, -0.6180343, 0.57918495), (2.9383206, -1.1755708, 0.7927932), (3.2297583, -1.6180346, 1.1255351), (3.5969536, -1.9021139, 1.5448813), (4.003945, -2.0000007, 2.009817), (4.4108853, -1.9021137, 2.4748425), (4.7779493, -1.6180344, 2.8944247), (5.069224, -1.1755707, 3.227458), (5.2562203, -0.61803424, 3.4413018), (5.3206525, -7.4469263e-16, 3.5149908), (4.5011387, 0.6180345, 4.095556), (4.3140883, 1.1755712, 3.8819754), (4.0227346, 1.6180352, 3.5493457), (3.6555822, 1.9021144, 3.1302607), (3.2485569, 2.0000017, 2.6657705), (2.841496, 1.9021144, 2.201351), (2.4742513, 1.618035, 1.7824534), (2.1827846, 1.175571, 1.4500558), (1.9956418, 0.61803424, 1.2366623), (1.9311551, -6.4158685e-16, 1.163135), (1.9956418, -0.61803424, 1.2366623), (2.1827848, -1.175571, 1.4500561), (2.474251, -1.6180346, 1.7824537), (2.8414962, -1.9021137, 2.2013512), (3.2485564, -2.0000007, 2.66577), (3.655582, -1.9021136, 3.1302607), (4.0227346, -1.6180342, 3.5493453), (4.314088, -1.1755707, 3.8819747), (4.501138, -0.6180341, 4.0955553), (4.565589, -5.596337e-16, 4.169154), (3.747737, 0.6180345, 4.7508154), (3.5606475, 1.1755713, 4.5375023), (3.269242, 1.618035, 4.2052727), (2.9020393, 1.9021144, 3.7866654), (2.494976, 2.0000012, 3.3226674), (2.0878985, 1.9021143, 2.8587039), (1.7206559, 1.6180348, 2.4401836), (1.4292018, 1.1755708, 2.1080627), (1.2420732, 0.61803424, 1.8948365), (1.1775925, -4.6354344e-16, 1.8213654), (1.2420732, -0.61803424, 1.8948365), (1.429202, -1.1755708, 2.1080632), (1.720656, -1.6180345, 2.4401839), (2.087899, -1.9021136, 2.8587036), (2.4949763, -2.0000005, 3.3226678), (2.9020388, -1.9021136, 3.7866652), (3.269242, -1.6180344, 4.205272), (3.5606468, -1.1755707, 4.5375013), (3.7477362, -0.6180341, 4.7508144), (3.8122015, -3.5988564e-16, 4.8243194), (2.9946065, 0.61803436, 5.404549), (2.8073502, 1.1755714, 5.19167), (2.5156913, 1.6180352, 4.860104), (2.1481795, 1.9021143, 4.442305), (1.7407906, 2.0000014, 3.9791749), (1.3334018, 1.9021143, 3.5160446), (0.9658911, 1.6180348, 3.0982485), (0.6742331, 1.1755708, 2.7666836), (0.48697722, 0.6180342, 2.5538058), (0.42245325, -3.0491018e-16, 2.4804533), (0.48697722, -0.6180342, 2.5538058), (0.6742332, -1.1755707, 2.7666836), (0.9658913, -1.6180345, 3.0982485), (1.3334018, -1.9021136, 3.5160444), (1.7407904, -2.0000005, 3.9791746), (2.1481793, -1.9021134, 4.442305), (2.5156906, -1.6180344, 4.860103), (2.8073494, -1.1755707, 5.1916695), (2.9946065, -0.6180341, 5.4045496), (3.0591307, -1.8572167e-16, 5.4779034), (2.2415586, 0.61803436, 6.049334), (2.053574, 1.1755714, 5.8378544), (1.7607813, 1.6180351, 5.5084662), (1.3918408, 1.9021142, 5.093413), (0.9828674, 2.0000012, 4.6333237), (0.57389396, 1.9021143, 4.173234), (0.20495373, 1.6180348, 3.758181), (-0.08783882, 1.1755711, 3.428793), (-0.2758232, 0.6180342, 3.2173133), (-0.34059817, -1.4723473e-16, 3.1444418), (-0.2758232, -0.6180342, 3.2173133), (-0.08783874, -1.1755708, 3.4287932), (0.20495386, -1.6180344, 3.7581809), (0.573894, -1.9021136, 4.1732335), (0.98286736, -2.0000002, 4.6333237), (1.3918406, -1.9021136, 5.093413), (1.7607808, -1.6180344, 5.508466), (2.0535731, -1.1755707, 5.837854), (2.2415576, -0.61803406, 6.049334), (2.3063326, -1.5741889e-17, 6.122204), (1.4994057, 0.61803436, 6.6878886), (1.3099865, 1.1755712, 6.4791455), (1.0149587, 1.6180348, 6.1540203), (0.64320236, 1.9021142, 5.7443385), (0.2311073, 2.000001, 5.2902026), (-0.18098779, 1.9021139, 4.836067), (-0.5527441, 1.6180346, 4.4263854), (-0.84777147, 1.1755711, 4.1012607), (-1.0371908, 0.6180342, 3.8925176), (-1.10246, 8.398158e-18, 3.8205895), (-1.0371908, -0.6180342, 3.8925176), (-0.84777135, -1.1755707, 4.1012607), (-0.5527439, -1.6180344, 4.4263854), (-0.18098766, -1.9021134, 4.836067), (0.23110726, -2.0000002, 5.290202), (0.6432022, -1.9021133, 5.7443376), (1.0149583, -1.618034, 6.1540194), (1.3099855, -1.1755705, 6.4791446), (1.4994049, -0.61803406, 6.6878877), (1.5646744, 1.5681342e-16, 6.7598157), (0.787829, 0.61803436, 7.3188896), (0.5955618, 1.1755713, 7.115544), (0.29609856, 1.618035, 6.7988243), (-0.08124708, 1.902114, 6.3997355), (-0.49953786, 2.000001, 5.9573417), (-0.9178286, 1.902114, 5.514948), (-1.295174, 1.6180346, 5.115859), (-1.5946369, 1.1755708, 4.79914), (-1.7869041, 0.6180342, 4.595794), (-1.8531548, 1.4664313e-16, 4.5257263), (-1.7869041, -0.6180342, 4.595794), (-1.594637, -1.1755708, 4.7991395), (-1.295174, -1.6180342, 5.115859), (-0.91782844, -1.9021133, 5.5149474), (-0.4995379, -2.0000002, 5.9573417), (-0.081247345, -1.9021132, 6.3997345), (0.296098, -1.6180341, 6.7988234), (0.5955609, -1.1755707, 7.1155424), (0.7878281, -0.61803395, 7.318889), (0.8540788, 2.9603584e-16, 7.388958), (0.22526151, 0.61803436, 7.90206), (0.02261623, 1.1755712, 7.718342), (-0.29301134, 1.6180348, 7.4321933), (-0.69072527, 1.902114, 7.071626), (-1.1315944, 2.000001, 6.671934), (-1.5724635, 1.9021138, 6.272242), (-1.9701772, 1.6180346, 5.9116745), (-2.2858045, 1.1755708, 5.6255264), (-2.4884498, 0.6180341, 5.441808), (-2.5582767, 2.7595235e-16, 5.378503), (-2.4884498, -0.6180341, 5.441808), (-2.2858045, -1.1755707, 5.6255264), (-1.9701769, -1.6180341, 5.9116745), (-1.5724635, -1.9021134, 6.272242), (-1.1315947, -2.0000005, 6.6719346), (-0.69072574, -1.9021136, 7.071627), (-0.29301202, -1.6180342, 7.4321947), (0.02261526, -1.1755707, 7.7183423), (0.22526044, -0.618034, 7.90206), (0.2950872, 3.9950187e-16, 7.965365), (0.073266156, 0.61803436, 8.488195), (-0.1522684, 1.1755712, 8.34799), (-0.50354683, 1.6180351, 8.129615), (-0.9461836, 1.902114, 7.8544474), (-1.43685, 2.0000007, 7.5494204), (-1.9275165, 1.9021143, 7.244395), (-2.3701525, 1.6180346, 6.9692264), (-2.7214308, 1.1755708, 6.7508516), (-2.9469652, 0.6180342, 6.6106462), (-3.0246792, 3.7690605e-16, 6.5623355), (-2.9469652, -0.6180342, 6.6106462), (-2.7214308, -1.1755707, 6.7508516), (-2.3701527, -1.6180342, 6.9692264), (-1.9275163, -1.9021132, 7.244395), (-1.4368501, -2.0000002, 7.5494204), (-0.9461839, -1.9021132, 7.854447), (-0.50354767, -1.6180342, 8.129615), (-0.15226948, -1.1755705, 8.347989), (0.07326497, -0.618034, 8.488194), (0.15097876, 4.3941316e-16, 8.536506), (0.14325872, 0.6180343, 9.231197), (-0.10006846, 1.1755712, 9.127419), (-0.4790595, 1.618035, 8.965782), (-0.95661587, 1.902114, 8.762106), (-1.4859912, 2.000001, 8.536331), (-2.0153668, 1.902114, 8.310555), (-2.4929233, 1.6180347, 8.106882), (-2.8719134, 1.1755708, 7.945244), (-3.1152408, 0.6180341, 7.8414655), (-3.1990852, 4.3515624e-16, 7.8057065), (-3.1152408, -0.6180341, 7.8414655), (-2.8719134, -1.1755706, 7.945243), (-2.4929228, -1.6180344, 8.106882), (-2.0153666, -1.9021134, 8.310556), (-1.4859915, -2.0000002, 8.536332), (-0.9566163, -1.9021133, 8.762106), (-0.47906017, -1.6180341, 8.965781), (-0.100069456, -1.1755706, 9.127419), (0.14325759, -0.618034, 9.231195), (0.22710225, 4.49023e-16, 9.266956), (0.38313794, 0.6180344, 10.086893), (0.12549083, 1.1755712, 10.014259), (-0.2758041, 1.6180352, 9.90113), (-0.781465, 1.902114, 9.758576), (-1.3419943, 2.000001, 9.600556), (-1.9025238, 1.902114, 9.442536), (-2.4081845, 1.6180347, 9.299984), (-2.809479, 1.1755708, 9.186854), (-3.067126, 0.6180341, 9.114221), (-3.1559052, 4.617325e-16, 9.089192), (-3.067126, -0.6180341, 9.114221), (-2.8094788, -1.1755707, 9.186854), (-2.4081843, -1.6180344, 9.299984), (-1.9025235, -1.9021134, 9.442536), (-1.3419942, -2.0000002, 9.600556), (-0.78146505, -1.9021132, 9.758576), (-0.27580434, -1.6180342, 9.90113), (0.12549031, -1.1755707, 10.014259), (0.3831373, -0.618034, 10.086893), (0.47191623, 4.3558751e-16, 10.111921), (-0.015500266, 0.30901718, 9.947796), (-0.15113483, 0.5877856, 9.925045), (-0.36239073, 0.8090175, 9.88961), (-0.62858856, 0.951057, 9.844959), (-0.92367107, 1.0000005, 9.795463), (-1.2187536, 0.951057, 9.745966), (-1.4849514, 0.80901736, 9.701314), (-1.6962069, 0.5877854, 9.665879), (-1.8318416, 0.30901706, 9.643128), (-1.878578, 4.0747168e-16, 9.635288), (-1.8318416, -0.30901706, 9.643128), (-1.6962069, -0.58778536, 9.665879), (-1.4849511, -0.8090172, 9.701316), (-1.2187533, -0.95105666, 9.745966), (-0.9236709, -1.0000001, 9.795462), (-0.6285884, -0.9510566, 9.844959), (-0.36239073, -0.8090172, 9.889611), (-0.15113495, -0.5877854, 9.925047), (-0.015500435, -0.309017, 9.947796), (0.031236047, 3.7580123e-16, 9.955636), (4.016334, -8.0627626e-16, 2.0164611), (-0.593442, 3.4662153e-16, 9.949323)], 28: [(4.598611, 0.30901724, 2.3248568), (4.4962144, 0.5877857, 2.2263837), (4.3367248, 0.80901766, 2.07301), (4.1357536, 0.9510572, 1.8797529), (3.9129689, 1.0000007, 1.6655309), (3.6901784, 0.9510572, 1.451315), (3.4891922, 0.8090175, 1.258074), (3.3296852, 0.58778554, 1.1047211), (3.2272737, 0.30901712, 1.0062643), (3.1919847, -7.9576564e-16, 0.9723389), (3.2272737, -0.30901712, 1.0062643), (3.3296854, -0.58778554, 1.1047213), (3.4891922, -0.8090173, 1.258074), (3.6901782, -0.95105684, 1.451315), (3.9129686, -1.0000004, 1.6655308), (4.135753, -0.95105684, 1.8797528), (4.3367248, -0.80901724, 2.0730097), (4.4962144, -0.5877855, 2.2263832), (4.5986104, -0.30901706, 2.3248565), (4.633895, -7.814466e-16, 2.358788), (5.2749834, 0.6180344, 2.9760158), (5.0698547, 1.1755714, 2.7794774), (4.750338, 1.6180352, 2.473397), (4.347694, 1.9021144, 2.087777), (3.9013205, 2.0000014, 1.6603975), (3.454904, 1.9021143, 1.2331076), (3.0521502, 1.6180351, 0.84772146), (2.732498, 1.175571, 0.54193), (2.5272574, 0.6180343, 0.34562463), (2.4565341, -7.822344e-16, 0.27798694), (2.5272574, -0.6180343, 0.34562463), (2.732498, -1.1755708, 0.54193), (3.0521507, -1.6180346, 0.8477217), (3.4549046, -1.9021139, 1.2331079), (3.9013205, -2.0000007, 1.6603976), (4.3476944, -1.9021137, 2.0877767), (4.7503376, -1.6180344, 2.4733965), (5.0698533, -1.1755707, 2.7794766), (5.2749844, -0.61803424, 2.9760156), (5.3456645, -7.4853064e-16, 3.0437417), (4.5805454, 0.6180345, 3.6944125), (4.3753815, 1.1755712, 3.4981294), (4.055818, 1.6180352, 3.192441), (3.6531236, 1.9021144, 2.8073032), (3.206706, 2.0000017, 2.3804429), (2.7602587, 1.9021144, 1.9536521), (2.3574889, 1.618035, 1.5686995), (2.037832, 1.175571, 1.2632396), (1.8325928, 0.61803424, 1.0671413), (1.7618703, -6.169716e-16, 0.9995736), (1.8325928, -0.61803424, 1.0671413), (2.0378327, -1.175571, 1.2632399), (2.3574889, -1.6180346, 1.5686995), (2.7602592, -1.9021137, 1.953652), (3.2067056, -2.0000007, 2.3804426), (3.6531234, -1.9021136, 2.807303), (4.0558176, -1.6180342, 3.1924403), (4.375381, -1.1755707, 3.498129), (4.580544, -0.6180341, 3.694412), (4.6512375, -5.722865e-16, 3.7620502), (3.8877857, 0.6180345, 4.4136553), (3.6826043, 1.1755713, 4.2176313), (3.3630204, 1.618035, 3.9123306), (2.9603126, 1.9021144, 3.5276556), (2.5138958, 2.0000012, 3.1012714), (2.0674667, 1.9021143, 2.6749203), (1.664727, 1.6180348, 2.2903311), (1.3451043, 1.1755708, 1.9851376), (1.1398909, 0.61803424, 1.7891996), (1.0691786, -4.477772e-16, 1.7216855), (1.1398909, -0.61803424, 1.7891996), (1.3451045, -1.1755708, 1.9851377), (1.6647271, -1.6180345, 2.2903311), (2.067467, -1.9021136, 2.6749203), (2.5138958, -2.0000005, 3.1012714), (2.9603126, -1.9021136, 3.5276556), (3.36302, -1.6180344, 3.9123304), (3.6826031, -1.1755707, 4.2176304), (3.8877847, -0.6180341, 4.4136543), (3.958485, -3.8135292e-16, 4.481202), (3.1950994, 0.61803436, 5.131413), (2.9897885, 1.1755714, 4.935818), (2.6700084, 1.6180352, 4.6311717), (2.2670622, 1.9021143, 4.2472954), (1.8203936, 2.0000014, 3.8217676), (1.3737254, 1.9021143, 3.3962398), (0.97078043, 1.6180348, 3.0123656), (0.65100133, 1.1755708, 2.707721), (0.4456907, 0.6180342, 2.512127), (0.37494543, -2.9799808e-16, 2.4447305), (0.4456907, -0.6180342, 2.512127), (0.65100145, -1.1755707, 2.7077208), (0.97078043, -1.6180345, 3.0123653), (1.3737255, -1.9021136, 3.3962395), (1.8203933, -2.0000005, 3.821767), (2.2670615, -1.9021134, 4.2472954), (2.6700075, -1.6180344, 4.6311707), (2.9897876, -1.1755707, 4.9358172), (3.1950994, -0.6180341, 5.131413), (3.265845, -2.1597385e-16, 5.1988106), (2.5014362, 0.61803436, 5.840566), (2.2955203, 1.1755714, 5.6463656), (1.9747987, 1.6180351, 5.343892), (1.570666, 1.9021142, 4.962753), (1.1226815, 2.0000012, 4.5402565), (0.67469704, 1.9021143, 4.1177607), (0.2705645, 1.6180348, 3.7366214), (-0.050156817, 1.1755711, 3.4341474), (-0.2560726, 0.6180342, 3.239947), (-0.32702628, -1.4920192e-16, 3.1730304), (-0.2560726, -0.6180342, 3.239947), (-0.050156724, -1.1755708, 3.4341471), (0.2705647, -1.6180344, 3.7366211), (0.6746972, -1.9021136, 4.11776), (1.1226813, -2.0000002, 4.5402565), (1.5706658, -1.9021136, 4.9627523), (1.9747983, -1.6180344, 5.3438916), (2.2955194, -1.1755707, 5.6463656), (2.501435, -0.61803406, 5.8405657), (2.5723891, -5.4619967e-17, 5.907482), (1.8172879, 0.61803436, 6.542929), (1.6101791, 1.1755712, 6.3514676), (1.2875997, 1.6180348, 6.0532594), (0.88112605, 1.9021142, 5.677496), (0.4305464, 2.000001, 5.2609572), (-0.02003311, 1.9021139, 4.844419), (-0.4265067, 1.6180346, 4.4686546), (-0.74908596, 1.1755711, 4.1704464), (-0.9561946, 0.6180342, 3.9789853), (-1.0275593, -2.4848458e-18, 3.9130123), (-0.9561946, -0.6180342, 3.9789853), (-0.74908584, -1.1755707, 4.1704464), (-0.42650652, -1.6180344, 4.4686546), (-0.02003296, -1.9021134, 4.844419), (0.4305464, -2.0000002, 5.260957), (0.8811256, -1.9021133, 5.677494), (1.2875991, -1.618034, 6.053259), (1.6101784, -1.1755705, 6.3514667), (1.817287, -0.61803406, 6.542929), (1.8886517, 1.09516384e-16, 6.6089015), (1.161193, 0.61803436, 7.2357583), (0.9517146, 1.1755713, 7.049719), (0.62544435, 1.618035, 6.759956), (0.21431997, 1.902114, 6.394833), (-0.24141482, 2.000001, 5.9900923), (-0.69714963, 1.902114, 5.585351), (-1.1082739, 1.6180346, 5.220228), (-1.4345436, 1.1755708, 4.9304657), (-1.6440219, 0.6180342, 4.744427), (-1.7162032, 1.2673839e-16, 4.6803217), (-1.6440219, -0.6180342, 4.744427), (-1.4345437, -1.1755708, 4.9304657), (-1.1082737, -1.6180342, 5.2202287), (-0.69714946, -1.9021133, 5.58535), (-0.24141484, -2.0000002, 5.9900923), (0.2143197, -1.9021132, 6.394833), (0.6254439, -1.6180341, 6.7599554), (0.95171374, -1.1755707, 7.0497174), (1.1611919, -0.61803395, 7.2357574), (1.2333734, 2.4069868e-16, 7.299863), (0.6407325, 0.61803436, 7.871645), (0.4226164, 1.1755712, 7.7053504), (0.08289236, 1.6180348, 7.44634), (-0.34518477, 1.902114, 7.1199694), (-0.8197119, 2.000001, 6.758184), (-1.2942388, 1.9021138, 6.3963976), (-1.7223158, 1.6180346, 6.070026), (-2.0620396, 1.1755708, 5.8110166), (-2.2801554, 0.6180341, 5.6447215), (-2.3553133, 2.4644516e-16, 5.58742), (-2.2801554, -0.6180341, 5.6447215), (-2.0620394, -1.1755707, 5.811016), (-1.7223157, -1.6180341, 6.070027), (-1.2942388, -1.9021134, 6.3963976), (-0.8197119, -2.0000005, 6.7581844), (-0.34518522, -1.9021136, 7.1199694), (0.08289166, -1.6180342, 7.446341), (0.42261538, -1.1755707, 7.705351), (0.6407314, -0.618034, 7.8716445), (0.715889, 3.381343e-16, 7.9289455), (0.5069771, 0.61803436, 8.482018), (0.2698236, 1.1755712, 8.359357), (-0.099551834, 1.6180351, 8.168305), (-0.5649919, 1.902114, 7.9275684), (-1.080936, 2.0000007, 7.6607084), (-1.5968804, 1.9021143, 7.39385), (-2.06232, 1.6180346, 7.153111), (-2.4316952, 1.1755708, 6.962061), (-2.6688485, 0.6180342, 6.8393993), (-2.750566, 3.3703573e-16, 6.797133), (-2.6688485, -0.6180342, 6.8393993), (-2.4316952, -1.1755707, 6.962062), (-2.0623198, -1.6180342, 7.153112), (-1.59688, -1.9021132, 7.393849), (-1.0809362, -2.0000002, 7.660708), (-0.56499225, -1.9021132, 7.927568), (-0.099552564, -1.6180342, 8.168305), (0.2698225, -1.1755705, 8.359356), (0.5069759, -0.618034, 8.482017), (0.5886933, 3.755896e-16, 8.524284), (0.5707644, 0.6180343, 9.238846), (0.3189717, 1.1755712, 9.151096), (-0.073204845, 1.618035, 9.014424), (-0.5673761, 1.902114, 8.842208), (-1.1151689, 2.000001, 8.651304), (-1.6629618, 1.902114, 8.460402), (-2.1571329, 1.6180347, 8.288185), (-2.5493088, 1.1755708, 8.151513), (-2.8011014, 0.6180341, 8.063765), (-2.8878634, 3.8987267e-16, 8.033527), (-2.8011014, -0.6180341, 8.063765), (-2.5493088, -1.1755706, 8.151513), (-2.1571326, -1.6180344, 8.288185), (-1.6629616, -1.9021134, 8.460402), (-1.115169, -2.0000002, 8.651305), (-0.5673764, -1.9021133, 8.842207), (-0.07320557, -1.6180341, 9.014424), (0.31897068, -1.1755706, 9.151095), (0.57076335, -0.618034, 9.238845), (0.657525, 3.8626839e-16, 9.269082), (0.77971643, 0.6180344, 10.098103), (0.5162531, 1.1755712, 10.039152), (0.10589928, 1.6180352, 9.947334), (-0.41117653, 1.902114, 9.8316345), (-0.9843593, 2.000001, 9.703383), (-1.5575422, 1.902114, 9.575131), (-2.0746179, 1.6180347, 9.459434), (-2.484971, 1.1755708, 9.367615), (-2.7484343, 0.6180341, 9.308663), (-2.8392177, 4.156403e-16, 9.28835), (-2.7484343, -0.6180341, 9.308663), (-2.484971, -1.1755707, 9.367615), (-2.0746174, -1.6180344, 9.459433), (-1.557542, -1.9021134, 9.575131), (-0.98435915, -2.0000002, 9.703383), (-0.41117656, -1.9021132, 9.8316345), (0.105898984, -1.6180342, 9.947333), (0.51625234, -1.1755707, 10.039151), (0.77971566, -0.618034, 10.098104), (0.8704987, 3.7747698e-16, 10.118416), (0.3251838, 0.30901718, 9.971412), (0.18782513, 0.5877856, 9.955154), (-0.026116103, 0.8090175, 9.929835), (-0.2956977, 0.951057, 9.897932), (-0.59453124, 1.0000005, 9.862567), (-0.89336467, 0.951057, 9.827202), (-1.1629461, 0.80901736, 9.7953), (-1.3768871, 0.5877854, 9.769981), (-1.5142457, 0.30901706, 9.753725), (-1.5615761, 3.6129875e-16, 9.748123), (-1.5142457, -0.30901706, 9.753725), (-1.3768871, -0.58778536, 9.769981), (-1.162946, -0.8090172, 9.7953), (-0.8933645, -0.95105666, 9.827203), (-0.594531, -1.0000001, 9.862568), (-0.29569763, -0.9510566, 9.897933), (-0.026116094, -0.8090172, 9.929837), (0.18782502, -0.5877854, 9.955155), (0.32518357, -0.309017, 9.97141), (0.37251416, 3.2605167e-16, 9.977011), (3.9138944, -7.914828e-16, 1.6659389), (-0.2867965, 3.019285e-16, 9.98823)], 29: [(4.5499153, 0.30901724, 2.050562), (4.4418035, 0.5877857, 1.9583999), (4.2734127, 0.80901766, 1.8148564), (4.061224, 0.9510572, 1.6339855), (3.826007, 1.0000007, 1.4334941), (3.590784, 0.9510572, 1.2330087), (3.3785822, 0.8090175, 1.0521543), (3.2101748, 0.58778554, 0.90863144), (3.1020496, 0.30901712, 0.816486), (3.0647917, -1.1569226e-15, 0.7847352), (3.1020496, -0.30901712, 0.816486), (3.2101755, -0.58778554, 0.90863156), (3.378582, -0.8090173, 1.0521544), (3.5907838, -0.95105684, 1.2330087), (3.8260064, -1.0000004, 1.433494), (4.061224, -0.95105684, 1.6339854), (4.2734118, -0.80901724, 1.8148562), (4.4418035, -0.5877855, 1.9583995), (4.549915, -0.30901706, 2.0505614), (4.587168, -1.1230267e-15, 2.0823185), (5.2642913, 0.6180344, 2.6601546), (5.047758, 1.1755714, 2.4762406), (4.7104826, 1.6180352, 2.1898224), (4.285465, 1.9021144, 1.8289777), (3.8142946, 2.0000014, 1.4290612), (3.3430872, 1.9021143, 1.029233), (2.9179735, 1.6180351, 0.66861945), (2.5805798, 1.175571, 0.38248706), (2.3639498, 0.6180343, 0.19880329), (2.2893023, -1.1313169e-15, 0.13551468), (2.3639498, -0.6180343, 0.19880329), (2.5805795, -1.1755708, 0.38248715), (2.917974, -1.6180346, 0.6686196), (3.3430877, -1.9021139, 1.0292332), (3.8142946, -2.0000007, 1.429061), (4.285465, -1.9021137, 1.8289775), (4.710482, -1.6180344, 2.189822), (5.0477567, -1.1755707, 2.4762394), (5.264291, -0.61803424, 2.6601543), (5.338901, -1.0672073e-15, 2.7235305), (4.614122, 0.6180345, 3.4189162), (4.3975673, 1.1755712, 3.235251), (4.060266, 1.6180352, 2.9492152), (3.6352227, 1.9021144, 2.5888405), (3.164035, 2.0000017, 2.1894298), (2.6928225, 1.9021144, 1.7900872), (2.2677143, 1.618035, 1.4298953), (1.9303328, 1.175571, 1.1440852), (1.7137141, 0.61803424, 0.9606024), (1.639071, -9.010237e-16, 0.89738184), (1.7137141, -0.61803424, 0.9606024), (1.9303331, -1.175571, 1.1440853), (2.2677145, -1.6180346, 1.4298952), (2.6928227, -1.9021137, 1.7900875), (3.1640346, -2.0000007, 2.189429), (3.6352222, -1.9021136, 2.5888402), (4.0602655, -1.6180342, 2.9492145), (4.3975673, -1.1755707, 3.2352505), (4.614121, -0.6180341, 3.4189155), (4.6887393, -8.354338e-16, 3.4822056), (3.9656239, 0.6180345, 4.178416), (3.7490659, 1.1755713, 3.9950035), (3.4117641, 1.618035, 3.7093456), (2.986732, 1.9021144, 3.3494217), (2.5155702, 2.0000012, 2.9504735), (2.0443983, 1.9021143, 2.5515583), (1.6193391, 1.6180348, 2.1917186), (1.2820048, 1.1755708, 1.9061666), (1.0654204, 0.61803424, 1.7228391), (0.99079, -6.585463e-16, 1.6596701), (1.0654204, -0.61803424, 1.7228391), (1.282005, -1.1755708, 1.9061667), (1.6193393, -1.6180345, 2.1917188), (2.0443985, -1.9021136, 2.5515583), (2.5155702, -2.0000005, 2.9504738), (2.986732, -1.9021136, 3.3494215), (3.4117641, -1.6180344, 3.7093453), (3.749065, -1.1755707, 3.9950025), (3.965623, -0.6180341, 4.178415), (4.0402427, -5.840689e-16, 4.2416162), (3.3170664, 0.61803436, 4.936467), (3.1004045, 1.1755714, 4.753478), (2.7629445, 1.6180352, 4.4684668), (2.3377202, 1.9021143, 4.109331), (1.8663573, 2.0000014, 3.7112284), (1.3949943, 1.9021143, 3.3131254), (0.9697717, 1.6180348, 2.9539917), (0.6323131, 1.1755708, 2.6689816), (0.41565147, 0.6180342, 2.4859939), (0.34099498, -4.563048e-16, 2.4229405), (0.41565147, -0.6180342, 2.4859939), (0.63231313, -1.1755707, 2.6689816), (0.96977174, -1.6180345, 2.9539917), (1.3949941, -1.9021136, 3.3131254), (1.8663571, -2.0000005, 3.711228), (2.3377202, -1.9021134, 4.109331), (2.7629437, -1.6180344, 4.4684653), (3.1004033, -1.1755707, 4.753477), (3.3170662, -0.6180341, 4.936468), (3.3917234, -3.721838e-16, 4.9995217), (2.6668322, 0.61803436, 5.686201), (2.4496486, 1.1755714, 5.504598), (2.1113772, 1.6180351, 5.2217436), (1.6851304, 1.9021142, 4.8653274), (1.2126323, 2.0000012, 4.4702373), (0.7401343, 1.9021143, 4.0751467), (0.3138877, 1.6180348, 3.7187304), (-0.024383476, 1.1755711, 3.4358764), (-0.24156693, 0.6180342, 3.2542734), (-0.3164032, -2.541233e-16, 3.1916974), (-0.24156693, -0.6180342, 3.2542734), (-0.024383381, -1.1755708, 3.4358764), (0.31388786, -1.6180344, 3.7187304), (0.7401344, -1.9021136, 4.0751467), (1.2126322, -2.0000002, 4.4702373), (1.6851302, -1.9021136, 4.8653274), (2.1113768, -1.6180344, 5.2217436), (2.449648, -1.1755707, 5.504597), (2.6668313, -0.61803406, 5.6862006), (2.7416675, -1.6794042e-16, 5.748777), (2.0251508, 0.61803436, 6.428835), (1.8069385, 1.1755712, 6.24996), (1.4670643, 1.6180348, 5.9713554), (1.0387982, 1.9021142, 5.6202927), (0.56406164, 2.000001, 5.231136), (0.08932508, 1.9021139, 4.84198), (-0.3389409, 1.6180346, 4.4909167), (-0.67881465, 1.1755711, 4.212312), (-0.897027, 0.6180342, 4.033437), (-0.97221786, -5.096944e-17, 3.9718006), (-0.897027, -0.6180342, 4.033437), (-0.67881453, -1.1755707, 4.2123117), (-0.33894074, -1.6180344, 4.4909167), (0.089325234, -1.9021134, 4.84198), (0.56406164, -2.0000002, 5.2311354), (1.0387981, -1.9021133, 5.620292), (1.4670639, -1.618034, 5.971354), (1.8069376, -1.1755705, 6.249959), (2.0251498, -0.61803406, 6.428835), (2.100341, 3.7342374e-17, 6.490471), (1.4097158, 0.61803436, 7.160722), (1.1894586, 1.1755713, 6.9872613), (0.8464, 1.618035, 6.717091), (0.41412094, 1.902114, 6.3766565), (-0.06506394, 2.000001, 5.999281), (-0.5442489, 1.902114, 5.6219068), (-0.9765277, 1.6180346, 5.281472), (-1.319586, 1.1755708, 5.0113015), (-1.5398431, 0.6180342, 4.8378415), (-1.6157385, 1.1226021e-16, 4.7780714), (-1.5398431, -0.6180342, 4.8378415), (-1.3195859, -1.1755708, 5.011302), (-0.97652745, -1.6180342, 5.281472), (-0.5442487, -1.9021133, 5.6219063), (-0.06506398, -2.0000002, 5.999281), (0.4141207, -1.9021132, 6.376655), (0.8463995, -1.6180341, 6.71709), (1.1894578, -1.1755707, 6.98726), (1.4097147, -0.61803395, 7.160721), (1.4856104, 1.9668364e-16, 7.2204924), (0.92040485, 0.61803436, 7.830171), (0.69269365, 1.1755712, 7.6764474), (0.33802497, 1.6180348, 7.437017), (-0.10888363, 1.902114, 7.1353164), (-0.6042854, 2.000001, 6.800879), (-1.0996875, 1.9021138, 6.4664416), (-1.5465958, 1.6180346, 6.164741), (-1.9012641, 1.1755708, 5.9253106), (-2.1289752, 0.6180341, 5.7715864), (-2.2074392, 2.5223437e-16, 5.7186165), (-2.1289752, -0.6180341, 5.7715864), (-1.9012638, -1.1755707, 5.925311), (-1.5465955, -1.6180341, 6.1647415), (-1.0996872, -1.9021134, 6.466442), (-0.6042856, -2.0000005, 6.8008804), (-0.108884014, -1.9021136, 7.135317), (0.33802426, -1.6180342, 7.437017), (0.69269276, -1.1755707, 7.6764483), (0.9204037, -0.618034, 7.8301706), (0.99886763, 3.1516894e-16, 7.8831406), (0.8002133, 0.61803436, 8.456033), (0.5560778, 1.1755712, 8.345828), (0.1758277, 1.6180351, 8.174182), (-0.30331528, 1.902114, 7.957895), (-0.8344493, 2.0000007, 7.718137), (-1.3655834, 1.9021143, 7.4783816), (-1.844726, 1.6180346, 7.2620935), (-2.224976, 1.1755708, 7.0904465), (-2.4691114, 0.6180342, 6.980243), (-2.5532346, 3.4677553e-16, 6.942269), (-2.4691114, -0.6180342, 6.980243), (-2.2249758, -1.1755707, 7.0904465), (-1.844726, -1.6180342, 7.2620935), (-1.3655832, -1.9021132, 7.478381), (-0.8344494, -2.0000002, 7.7181373), (-0.30331573, -1.9021132, 7.957894), (0.17582697, -1.6180342, 8.174182), (0.5560767, -1.1755705, 8.345828), (0.8002121, -0.618034, 8.456033), (0.88433534, 3.6136382e-16, 8.494006), (0.86049587, 0.6180343, 9.222529), (0.6037792, 1.1755712, 9.146055), (0.20393357, 1.618035, 9.026943), (-0.2999013, 1.902114, 8.876853), (-0.85840636, 2.000001, 8.710478), (-1.4169117, 1.902114, 8.544103), (-1.9207464, 1.6180347, 8.394014), (-2.3205914, 1.1755708, 8.274902), (-2.5773082, 0.6180341, 8.198427), (-2.6657662, 3.9684735e-16, 8.172076), (-2.5773082, -0.6180341, 8.198427), (-2.3205914, -1.1755706, 8.274901), (-1.920746, -1.6180344, 8.394013), (-1.4169114, -1.9021134, 8.544103), (-0.85840654, -2.0000002, 8.710478), (-0.29990166, -1.9021133, 8.876855), (0.20393287, -1.6180341, 9.026943), (0.60377824, -1.1755706, 9.146053), (0.8604948, -0.618034, 9.222528), (0.9489532, 3.741781e-16, 9.248879), (1.0486944, 0.6180344, 10.0857525), (0.78198254, 1.1755712, 10.036354), (0.36656895, 1.6180352, 9.959416), (-0.15688261, 1.902114, 9.862467), (-0.73713315, 2.000001, 9.754999), (-1.3173835, 1.902114, 9.64753), (-1.8408347, 1.6180347, 9.550581), (-2.2562482, 1.1755708, 9.473642), (-2.52296, 0.6180341, 9.424246), (-2.6148627, 4.1623906e-16, 9.407224), (-2.52296, -0.6180341, 9.424246), (-2.256248, -1.1755707, 9.473642), (-1.8408345, -1.6180344, 9.550582), (-1.3173832, -1.9021134, 9.64753), (-0.73713297, -2.0000002, 9.754999), (-0.15688275, -1.9021132, 9.862466), (0.36656857, -1.6180342, 9.959415), (0.7819819, -1.1755707, 10.036354), (1.0486935, -0.618034, 10.085752), (1.1405963, 3.6380348e-16, 10.102773), (0.5569548, 0.30901718, 9.970265), (0.41875574, 0.5877856, 9.958491), (0.20350562, 0.8090175, 9.940156), (-0.06772529, 0.951057, 9.91705), (-0.3683871, 1.0000005, 9.8914385), (-0.66904885, 0.951057, 9.865828), (-0.94027966, 0.80901736, 9.842722), (-1.1555296, 0.5877854, 9.824385), (-1.2937286, 0.30901706, 9.8126135), (-1.3413485, 3.4380628e-16, 9.808556), (-1.2937286, -0.30901706, 9.8126135), (-1.1555295, -0.58778536, 9.824385), (-0.9402794, -0.8090172, 9.842722), (-0.6690486, -0.95105666, 9.865828), (-0.3683869, -1.0000001, 9.891439), (-0.06772521, -0.9510566, 9.91705), (0.20350562, -0.8090172, 9.940157), (0.41875562, -0.5877854, 9.958493), (0.55695456, -0.309017, 9.970265), (0.60457474, 3.0324153e-16, 9.974321), (3.8269377, -1.1450583e-15, 1.4338464), (-0.07729482, 2.7103021e-16, 9.999146)], 30: [(4.5278435, 0.30901724, 1.9503134), (4.417723, 0.5877857, 1.8605615), (4.2462034, 0.80901766, 1.7207716), (4.030072, 0.9510572, 1.54463), (3.7904851, 1.0000007, 1.3493816), (3.5508926, 0.9510572, 1.1541392), (3.3347492, 0.8090175, 0.9780144), (3.1632137, 0.58778554, 0.83824503), (3.0530796, 0.30901712, 0.7485095), (3.01513, -1.3193369e-15, 0.7175892), (3.0530796, -0.30901712, 0.7485095), (3.1632142, -0.58778554, 0.83824515), (3.3347492, -0.8090173, 0.97801447), (3.550892, -0.95105684, 1.1541392), (3.790485, -1.0000004, 1.3493814), (4.030072, -0.95105684, 1.5446299), (4.246203, -0.80901724, 1.7207712), (4.417722, -0.5877855, 1.8605609), (4.527843, -0.30901706, 1.950313), (4.5657883, -1.2606965e-15, 1.9812397), (5.255582, 0.6180344, 2.5440288), (5.0350413, 1.1755714, 2.364935), (4.691525, 1.6180352, 2.0860243), (4.258645, 1.9021144, 1.7346387), (3.77876, 2.0000014, 1.3452076), (3.2988405, 1.9021143, 0.95586413), (2.865869, 1.6180351, 0.6047088), (2.5222402, 1.175571, 0.3260821), (2.3016083, 0.6180343, 0.14721721), (2.2255816, -1.2887889e-15, 0.085589044), (2.3016083, -0.6180343, 0.14721721), (2.5222402, -1.1755708, 0.3260822), (2.8658693, -1.6180346, 0.6047089), (3.298841, -1.9021139, 0.95586437), (3.77876, -2.0000007, 1.3452075), (4.2586446, -1.9021137, 1.7346386), (4.6915245, -1.6180344, 2.0860236), (5.03504, -1.1755707, 2.3649342), (5.2555823, -0.61803424, 2.5440288), (5.3315725, -1.1822659e-15, 2.6057441), (4.6223207, 0.6180345, 3.3169823), (4.4017644, 1.1755712, 3.1381347), (4.0582285, 1.6180352, 2.859602), (3.6253314, 1.9021144, 2.508682), (3.1454396, 2.0000017, 2.1197512), (2.665524, 1.9021144, 1.7308884), (2.232566, 1.618035, 1.3801497), (1.8889556, 1.175571, 1.1018417), (1.6683383, 0.61803424, 0.92317533), (1.5923172, -1.0263198e-15, 0.8616143), (1.6683383, -0.61803424, 0.92317533), (1.888956, -1.175571, 1.1018419), (2.2325659, -1.6180346, 1.3801498), (2.665524, -1.9021137, 1.7308886), (3.1454391, -2.0000007, 2.1197507), (3.6253314, -1.9021136, 2.508682), (4.0582285, -1.6180342, 2.859602), (4.401763, -1.1755707, 3.1381342), (4.62232, -0.6180341, 3.3169818), (4.698317, -9.260882e-16, 3.3786118), (3.9907265, 0.6180345, 4.0906343), (3.7701705, 1.1755713, 3.912037), (3.426643, 1.618035, 3.6338782), (2.9937656, 1.9021144, 3.2834039), (2.5139081, 2.0000012, 2.894931), (2.0340414, 1.9021143, 2.50649), (1.6011391, 1.6180348, 2.1560996), (1.2575809, 1.1755708, 1.8780462), (1.0370005, 0.61803424, 1.6995331), (0.96099347, -7.4489126e-16, 1.638023), (1.0370005, -0.61803424, 1.6995331), (1.2575811, -1.1755708, 1.8780464), (1.6011393, -1.6180345, 2.1560998), (2.0340414, -1.9021136, 2.5064902), (2.5139081, -2.0000005, 2.8949308), (2.9937656, -1.9021136, 3.2834036), (3.4266422, -1.6180344, 3.6338778), (3.7701695, -1.1755707, 3.9120357), (3.9907253, -0.6180341, 4.0906334), (4.066723, -6.46272e-16, 4.152176), (3.3590245, 0.61803436, 4.862853), (3.1383736, 1.1755714, 4.684676), (2.7947016, 1.6180352, 4.4071608), (2.3616495, 1.9021143, 4.0574703), (1.8816091, 2.0000014, 3.6698377), (1.4015688, 1.9021143, 3.2822046), (0.96851826, 1.6180348, 2.932516), (0.6248476, 1.1755708, 2.6550016), (0.40419742, 0.6180342, 2.4768264), (0.32816657, -5.2065824e-16, 2.4154313), (0.40419742, -0.6180342, 2.4768264), (0.62484765, -1.1755707, 2.6550016), (0.9685184, -1.6180345, 2.932516), (1.4015687, -1.9021136, 3.2822046), (1.8816088, -2.0000005, 3.6698372), (2.3616493, -1.9021134, 4.05747), (2.7947004, -1.6180344, 4.4071603), (3.138373, -1.1755707, 4.684676), (3.359024, -0.6180341, 4.862854), (3.4350555, -4.17284e-16, 4.924249), (2.7253919, 0.61803436, 5.6268716), (2.5042505, 1.1755714, 5.4500766), (2.1598141, 1.6180351, 5.1747108), (1.7257994, 1.9021142, 4.82773), (1.2446907, 2.0000012, 4.4431), (0.76358175, 1.9021143, 4.0584693), (0.32956716, 1.6180348, 3.711489), (-0.014868665, 1.1755711, 3.4361236), (-0.23601007, 0.6180342, 3.2593286), (-0.31221014, -2.959075e-16, 3.1984088), (-0.23601007, -0.6180342, 3.2593286), (-0.014868568, -1.1755708, 3.4361236), (0.3295673, -1.6180344, 3.7114887), (0.76358175, -1.9021136, 4.0584693), (1.2446907, -2.0000002, 4.4430995), (1.7257993, -1.9021136, 4.8277307), (2.1598136, -1.6180344, 5.1747108), (2.5042496, -1.1755707, 5.4500756), (2.7253907, -0.61803406, 5.6268706), (2.8015912, -1.9908677e-16, 5.68779), (2.0999534, 0.61803436, 6.38369), (1.8778434, 1.1755712, 6.2096157), (1.5318984, 1.6180348, 5.9384894), (1.0959824, 1.9021142, 5.59685), (0.6127659, 2.000001, 5.21814), (0.1295494, 1.9021139, 4.839429), (-0.30636638, 1.6180346, 4.49779), (-0.65231115, 1.1755711, 4.2266636), (-0.87442136, 0.6180342, 4.05259), (-0.95095515, -6.750684e-17, 3.9926078), (-0.87442136, -0.6180342, 4.05259), (-0.652311, -1.1755707, 4.226663), (-0.3063662, -1.6180344, 4.4977894), (0.12954955, -1.9021134, 4.839429), (0.61276585, -2.0000002, 5.218139), (1.0959822, -1.9021133, 5.5968494), (1.5318978, -1.618034, 5.938489), (1.8778424, -1.1755705, 6.209615), (2.0999527, -0.61803406, 6.38369), (2.1764865, 1.8853218e-17, 6.4436707), (1.5000781, 0.61803436, 7.1293416), (1.2760427, 1.1755713, 6.9606752), (0.92709917, 1.618035, 6.6979713), (0.4874048, 1.902114, 6.3669453), (4.8728822e-8, 2.000001, 6.0000005), (-0.48740473, 1.902114, 5.633055), (-0.9270988, 1.6180346, 5.3020287), (-1.2760419, 1.1755708, 5.0393248), (-1.5000772, 0.6180342, 4.870659), (-1.5772747, 1.03478475e-16, 4.81254), (-1.5000772, -0.6180342, 4.870659), (-1.276042, -1.1755708, 5.0393248), (-0.9270987, -1.6180342, 5.3020287), (-0.48740458, -1.9021133, 5.6330543), (1.7223597e-9, -2.0000002, 5.9999995), (0.48740456, -1.9021132, 6.3669443), (0.9270985, -1.6180341, 6.6979704), (1.2760417, -1.1755707, 6.9606743), (1.500077, -0.61803395, 7.12934), (1.5772743, 1.8088616e-16, 7.1874595), (1.022742, 0.61803436, 7.810677), (0.7916883, 1.1755712, 7.6617255), (0.43181336, 1.6180348, 7.429729), (-0.021655368, 1.902114, 7.137396), (-0.52432925, 2.000001, 6.8133426), (-1.027003, 1.9021138, 6.4892898), (-1.4804717, 1.6180346, 6.196957), (-1.8403462, 1.1755708, 5.96496), (-2.0713997, 0.6180341, 5.8160086), (-2.1510158, 2.434969e-16, 5.7646837), (-2.0713997, -0.6180341, 5.8160086), (-1.8403462, -1.1755707, 5.9649596), (-1.4804715, -1.6180341, 6.1969566), (-1.027003, -1.9021134, 6.4892893), (-0.52432936, -2.0000005, 6.813343), (-0.02165576, -1.9021136, 7.137397), (0.43181273, -1.6180342, 7.4297304), (0.7916873, -1.1755707, 7.6617265), (1.022741, -0.618034, 7.8106766), (1.1023566, 2.989283e-16, 7.8620014), (0.90777814, 0.61803436, 8.442036), (0.6612605, 1.1755712, 8.336522), (0.2772999, 1.6180351, 8.172185), (-0.20651855, 1.902114, 7.965105), (-0.74283534, 2.0000007, 7.7355556), (-1.2791522, 1.9021143, 7.506008), (-1.7629702, 1.6180346, 7.2989283), (-2.1469307, 1.1755708, 7.134589), (-2.393448, 0.6180342, 7.029078), (-2.4783924, 3.3639577e-16, 6.99272), (-2.393448, -0.6180342, 7.029078), (-2.1469305, -1.1755707, 7.1345897), (-1.7629703, -1.6180342, 7.2989283), (-1.279152, -1.9021132, 7.5060077), (-0.7428354, -2.0000002, 7.7355566), (-0.206519, -1.9021132, 7.9651046), (0.27729917, -1.6180342, 8.172184), (0.6612593, -1.1755705, 8.336523), (0.907777, -0.618034, 8.442035), (0.99272114, 3.4484302e-16, 8.478392), (0.96691656, 0.6180343, 9.212144), (0.7085574, 1.1755712, 9.139895), (0.30615366, 1.618035, 9.027364), (-0.20090461, 1.902114, 8.885566), (-0.76298296, 2.000001, 8.728383), (-1.3250613, 1.902114, 8.571201), (-1.8321196, 1.6180347, 8.429404), (-2.2345226, 1.1755708, 8.316873), (-2.4928818, 0.6180341, 8.244623), (-2.581906, 3.8543112e-16, 8.219728), (-2.4928818, -0.6180341, 8.244623), (-2.2345226, -1.1755706, 8.316873), (-1.8321191, -1.6180344, 8.429404), (-1.3250612, -1.9021134, 8.571201), (-0.7629831, -2.0000002, 8.728383), (-0.20090494, -1.9021133, 8.885568), (0.30615297, -1.6180341, 9.027365), (0.7085565, -1.1755706, 9.139895), (0.9669154, -0.618034, 9.212144), (1.0559397, 3.5801886e-16, 9.237039), (1.1475345, 0.6180344, 10.077142), (0.87977093, 1.1755712, 10.03131), (0.46271935, 1.6180352, 9.959927), (-0.06279625, 1.902114, 9.869976), (-0.6453347, 2.000001, 9.770267), (-1.2278731, 1.902114, 9.670556), (-1.7533884, 1.6180347, 9.580606), (-2.1704397, 1.1755708, 9.509222), (-2.4382029, 0.6180341, 9.46339), (-2.5304682, 4.0465998e-16, 9.4475975), (-2.4382029, -0.6180341, 9.46339), (-2.1704395, -1.1755707, 9.509222), (-1.7533879, -1.6180344, 9.580606), (-1.2278727, -1.9021134, 9.670556), (-0.64533454, -2.0000002, 9.770267), (-0.062796414, -1.9021132, 9.869975), (0.46271893, -1.6180342, 9.959926), (0.8797703, -1.1755707, 10.03131), (1.1475337, -0.618034, 10.077142), (1.2397985, 3.4886262e-16, 10.092934), (0.64226604, 0.30901718, 9.966341), (0.5038254, 0.5877856, 9.956233), (0.28819883, 0.8090175, 9.940487), (0.016493635, 0.951057, 9.920646), (-0.28469384, 1.0000005, 9.898651), (-0.58588135, 0.951057, 9.876657), (-0.85758644, 0.80901736, 9.856816), (-1.0732127, 0.5877854, 9.84107), (-1.2116534, 0.30901706, 9.830961), (-1.2593567, 3.3209594e-16, 9.827477), (-1.2116534, -0.30901706, 9.830961), (-1.0732125, -0.58778536, 9.84107), (-0.85758626, -0.8090172, 9.856817), (-0.5858811, -0.95105666, 9.8766575), (-0.2846937, -1.0000001, 9.898651), (0.01649367, -0.9510566, 9.920646), (0.2881988, -0.8090172, 9.940488), (0.50382525, -0.5877854, 9.956234), (0.6422658, -0.309017, 9.966341), (0.6899692, 2.9042865e-16, 9.969825), (3.7914171, -1.2968589e-15, 1.3497133), (2.9290177e-8, 2.5955668e-16, 10)], } } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithSubgraph_v1_1.usda
#usda 1.0 ( ) def GlobalComputeGraph "pullGraph" { def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "pull" custom int2 fileFormatVersion = (1, 1) custom token flatCacheBacking = "StageWithHistory" custom token pipelineStage = "pipelineStagePreRender" } def ComputeGraph "innerExecutionGraph" { def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "execution" custom int2 fileFormatVersion = (1, 1) custom token flatCacheBacking = "StageWithoutHistory" custom token pipelineStage = "pipelineStagePostRender" } def ComputeNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestConversionOnLoad.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (500.0000000000001, 500.0000000000001, 499.9999999999998) double3 target = (0, 0, 0) } dictionary Right = { double3 position = (-50000, 0, -1.1102230246251565e-11) double radius = 500 } dictionary Top = { double3 position = (-4.329780281177466e-12, 50000, 1.1102230246251565e-11) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary omni_layer = { dictionary muteness = { } } } defaultPrim = "World" endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def Xform "World" { def ComputeGraph "PushGraph" { def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 3) custom token flatCacheBacking = "Shared" custom token pipelineStage = "pipelineStageSimulation" } def ComputeNode "easing_function" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom token inputs:alpha prepend token inputs:alpha.connect = </World/PushGraph/add.outputs:sum> custom int inputs:blendExponent = 2 custom token inputs:easeFunc = "EaseInOut" ( allowedTokens = ["EaseIn", "EaseOut", "EaseInOut", "Linear", "SinIn", "SinOut", "SinInOut"] ) custom token inputs:end prepend token inputs:end.connect = </World/PushGraph/constant_color3f_01.inputs:value> custom token inputs:start prepend token inputs:start.connect = </World/PushGraph/constant_color3f.inputs:value> custom token node:type = "omni.graph.nodes.Ease" custom int node:typeVersion = 2 custom token outputs:result uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (486, 186) } def ComputeNode "constant_double" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom double inputs:value = 0 custom token node:type = "omni.graph.nodes.ConstantDouble" custom int node:typeVersion = 1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (-134.76978, 40.61511) } def ComputeNode "constant_color3f" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom color3f inputs:value = (0, 0, 0) custom token node:type = "omni.graph.nodes.ConstantColor3f" custom int node:typeVersion = 1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (82.21351, 407.50552) } def ComputeNode "constant_color3f_01" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom color3f inputs:value = (0, 0, 0) custom token node:type = "omni.graph.nodes.ConstantColor3f" custom int node:typeVersion = 1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (91.451004, 293.45108) } def ComputeNode "add" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom token inputs:a prepend token inputs:a.connect = </World/PushGraph/constant_double.inputs:value> custom token inputs:b prepend token inputs:b.connect = </World/PushGraph/constant_double_01.inputs:value> custom token node:type = "omni.graph.nodes.Add" custom int node:typeVersion = 1 custom token outputs:sum uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (167.09483, 106.18735) } def ComputeNode "constant_double_01" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom double inputs:value = 0 custom token node:type = "omni.graph.nodes.ConstantDouble" custom int node:typeVersion = 1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (-158.71024, 143.22481) } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/variant_sets.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (500, 500, 500) } dictionary Right = { double3 position = (-50000, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 50000, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } } endTimeCode = 100 startTimeCode = 0 subLayers = [ @./variant_sets_layer.usda@ ] timeCodesPerSecond = 24 upAxis = "Y" ) def Xform "InputPrim" { } def Xform "RelPrim" { }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestBundleInspectorNode_v2.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (568.2714595693047, 432.37310592456754, 482.72890133672286) double3 target = (26.166631985317963, -30.825415675638055, -8.768286343450995) } dictionary Right = { double3 position = (-50000, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 50000, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary omni_layer = { dictionary muteness = { } } dictionary renderSettings = { float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) float3 "rtx:dynamicDiffuseGI:probeCounts" = (6, 6, 6) float3 "rtx:dynamicDiffuseGI:probeGridOrigin" = (-210, -250, -10) float3 "rtx:dynamicDiffuseGI:volumeSize" = (600, 440, 300) float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) bool "rtx:indirectDiffuse:enabled" = 1 float3 "rtx:lightspeed:material:overrideAlbedo" = (0.5, 0.5, 0.5) float3 "rtx:lightspeed:material:overrideEmissiveColor" = (0.5, 0.5, 0.5) float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) float3 "rtx:post:colorcorr:gain" = (1, 1, 1) float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) float3 "rtx:post:colorcorr:offset" = (0, 0, 0) float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) float3 "rtx:post:colorgrad:gain" = (1, 1, 1) float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) float3 "rtx:post:colorgrad:lift" = (0, 0, 0) float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) float3 "rtx:post:colorgrad:offset" = (0, 0, 0) float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) double "rtx:post:lensFlares:flareScale" = 0.075 float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) float3 "rtx:sceneDb:ambientLightColor" = (0, 0, 0) } } endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def OmniGraph "TestGraph" { token evaluationMode = "Automatic" token evaluator:type = "push" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 5) token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Inspector" { custom rel inputs:bundle prepend rel inputs:bundle = </TestGraph/TestPrimExtract/outputs_primBundle> custom bool inputs:print = 0 token node:type = "omni.graph.nodes.BundleInspector" int node:typeVersion = 2 custom int[] outputs:arrayDepths = [] custom uint64 outputs:attributeCount custom uint64 outputs:childCount custom uint64 outputs:count custom token[] outputs:names = [] custom token[] outputs:roles = [] custom int[] outputs:tupleCounts = [] custom token[] outputs:types = [] custom token[] outputs:values = [] def Output "outputs_bundle" { } } def OmniGraphNode "TestPrimExtract" { custom bool inputs:computeBoundingBox = 0 custom bool inputs:forceUSDRead = 0 custom rel inputs:prim prepend rel inputs:prim = </TestPrim> custom token inputs:primPath custom timecode inputs:usdTimecode = -1 custom bool inputs:usePath = 0 token node:type = "omni.graph.nodes.ReadPrimBundle" int node:typeVersion = 1 custom uint64 state:target = 0 custom timecode state:usdTimecode = -1 def Output "outputs_primBundle" { } } } def OmniGraphPrim "TestPrim" { custom bool[] BoolArrayAttr = [0, 1] custom bool BoolAttr = 0 custom color3d[] Color3dArrayAttr = [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] custom color3d Color3dAttr = (0.01625, 0.14125, 0.26625) custom color3f[] Color3fArrayAttr = [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] custom color3f Color3fAttr = (0.125, 0.25, 0.375) custom color3h[] Color3hArrayAttr = [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] custom color3h Color3hAttr = (0.5, 0.625, 0.75) custom color4d[] Color4dArrayAttr = [(0.01625, 0.14125, 0.26625, 0.39125), (0.39125, 0.26625, 0.14125, 0.01625)] custom color4d Color4dAttr = (0.01625, 0.14125, 0.26625, 0.39125) custom color4f[] Color4fArrayAttr = [(0.125, 0.25, 0.375, 0.5), (0.5, 0.375, 0.25, 0.125)] custom color4f Color4fAttr = (0.125, 0.25, 0.375, 0.5) custom color4h[] Color4hArrayAttr = [(0.5, 0.625, 0.75, 0.875), (0.875, 0.75, 0.625, 0.5)] custom color4h Color4hAttr = (0.5, 0.625, 0.75, 0.875) custom double2[] Double2ArrayAttr = [(4.125, 4.25), (2.125, 2.25)] custom double2 Double2Attr = (4.125, 4.25) custom double3[] Double3ArrayAttr = [(4.125, 4.25, 4.375), (2.125, 2.25, 2.375)] custom double3 Double3Attr = (4.125, 4.25, 4.375) custom double4[] Double4ArrayAttr = [(4.125, 4.25, 4.375, 4.5), (2.125, 2.25, 2.375, 2.5)] custom double4 Double4Attr = (4.125, 4.25, 4.375, 4.5) custom double[] DoubleArrayAttr = [4.125, 2.125] custom double DoubleAttr = 4.125 custom float2[] Float2ArrayAttr = [(4.5, 4.625), (2.5, 2.625)] custom float2 Float2Attr = (4.5, 4.625) custom float3[] Float3ArrayAttr = [(4.5, 4.625, 4.75), (2.5, 2.625, 2.75)] custom float3 Float3Attr = (4.5, 4.625, 4.75) custom float4[] Float4ArrayAttr = [(4.5, 4.625, 4.75, 4.875), (2.5, 2.625, 2.75, 2.875)] custom float4 Float4Attr = (4.5, 4.625, 4.75, 4.875) custom float[] FloatArrayAttr = [4.5, 2.5] custom float FloatAttr = 4.5 custom frame4d[] Frame4dArrayAttr = [( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ), ( (2, 3, 3, 3), (3, 2, 3, 3), (3, 3, 2, 3), (3, 3, 3, 2) )] custom frame4d Frame4dAttr = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) custom half2[] Half2ArrayAttr = [(2.5, 2.625), (4.5, 4.625)] custom half2 Half2Attr = (2.5, 2.625) custom half3[] Half3ArrayAttr = [(2.5, 2.625, 2.75), (4.5, 4.625, 4.75)] custom half3 Half3Attr = (2.5, 2.625, 2.75) custom half4[] Half4ArrayAttr = [(2.5, 2.625, 2.75, 2.875), (4.5, 4.625, 4.75, 4.875)] custom half4 Half4Attr = (2.5, 2.625, 2.75, 2.875) custom half[] HalfArrayAttr = [2.5, 4.5] custom half HalfAttr = 2.5 custom int2[] Int2ArrayAttr = [(-32, -31), (-23, -22)] custom int2 Int2Attr = (-32, -31) custom int3[] Int3ArrayAttr = [(-32, -31, -30), (-23, -22, -21)] custom int3 Int3Attr = (-32, -31, -30) custom int4[] Int4ArrayAttr = [(-32, -31, -30, -29), (-23, -22, -21, -20)] custom int4 Int4Attr = (-32, -31, -30, -29) custom int64[] Int64ArrayAttr = [-46, -64] custom int64 Int64Attr = -46 custom int[] IntArrayAttr = [-32, -23] custom int IntAttr = -32 custom matrix2d[] Matrix2dArrayAttr = [( (1, 0), (0, 1) ), ( (2, 3), (3, 2) )] custom matrix2d Matrix2dAttr = ( (1, 0), (0, 1) ) custom matrix3d[] Matrix3dArrayAttr = [( (1, 0, 0), (0, 1, 0), (0, 0, 1) ), ( (2, 3, 3), (3, 2, 3), (3, 3, 2) )] custom matrix3d Matrix3dAttr = ( (1, 0, 0), (0, 1, 0), (0, 0, 1) ) custom matrix4d[] Matrix4dArrayAttr = [( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ), ( (2, 3, 3, 3), (3, 2, 3, 3), (3, 3, 2, 3), (3, 3, 3, 2) )] custom matrix4d Matrix4dAttr = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) custom normal3d[] Normal3dArrayAttr = [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] custom normal3d Normal3dAttr = (0.01625, 0.14125, 0.26625) custom normal3f[] Normal3fArrayAttr = [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] custom normal3f Normal3fAttr = (0.125, 0.25, 0.375) custom normal3h[] Normal3hArrayAttr = [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] custom normal3h Normal3hAttr = (0.5, 0.625, 0.75) custom point3d[] Point3dArrayAttr = [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] custom point3d Point3dAttr = (0.01625, 0.14125, 0.26625) custom point3f[] Point3fArrayAttr = [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] custom point3f Point3fAttr = (0.125, 0.25, 0.375) custom point3h[] Point3hArrayAttr = [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] custom point3h Point3hAttr = (0.5, 0.625, 0.75) custom quatd[] QuatdArrayAttr = [(0.78, 0.01625, 0.14125, 0.26625), (0.51625, 0.14125, 0.26625, 0.39125)] custom quatd QuatdAttr = (0.78, 0.01625, 0.14125, 0.26625) custom quatf[] QuatfArrayAttr = [(0.5, 0.125, 0.25, 0.375), (0.625, 0.25, 0.375, 0.5)] custom quatf QuatfAttr = (0.5, 0.125, 0.25, 0.375) custom quath[] QuathArrayAttr = [(0.75, 0, 0.25, 0.5), (0.875, 0.125, 0.375, 0.625)] custom quath QuathAttr = (0.75, 0, 0.25, 0.5) custom string StringAttr = "Anakin" custom texCoord2d[] TexCoord2dArrayAttr = [(0.01625, 0.14125), (0.14125, 0.01625)] custom texCoord2d TexCoord2dAttr = (0.01625, 0.14125) custom texCoord2f[] TexCoord2fArrayAttr = [(0.125, 0.25), (0.25, 0.125)] custom texCoord2f TexCoord2fAttr = (0.125, 0.25) custom texCoord2h[] TexCoord2hArrayAttr = [(0.5, 0.625), (0.625, 0.5)] custom texCoord2h TexCoord2hAttr = (0.5, 0.625) custom texCoord3d[] TexCoord3dArrayAttr = [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] custom texCoord3d TexCoord3dAttr = (0.01625, 0.14125, 0.26625) custom texCoord3f[] TexCoord3fArrayAttr = [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] custom texCoord3f TexCoord3fAttr = (0.125, 0.25, 0.375) custom texCoord3h[] TexCoord3hArrayAttr = [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] custom texCoord3h TexCoord3hAttr = (0.5, 0.625, 0.75) custom timecode[] TimeCodeArrayAttr = [5, 6] custom timecode TimeCodeAttr = 5 custom token[] TokenArrayAttr = ["Ahsoka", "Tano"] custom token TokenAttr = "Ahsoka" custom uchar[] UCharArrayAttr = [12, 8] custom uchar UCharAttr = 12 custom uint64[] UInt64ArrayAttr = [46, 64] custom uint64 UInt64Attr = 46 custom uint[] UIntArrayAttr = [32, 23] custom uint UIntAttr = 32 custom vector3d[] Vector3dArrayAttr = [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] custom vector3d Vector3dAttr = (0.01625, 0.14125, 0.26625) custom vector3f[] Vector3fArrayAttr = [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] custom vector3f Vector3fAttr = (0.125, 0.25, 0.375) custom vector3h[] Vector3hArrayAttr = [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] custom vector3h Vector3hAttr = (0.5, 0.625, 0.75) }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithoutGraph_v1_0.usda
#usda 1.0 ( ) def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 0) } def ComputeNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/variant_sets_layer.usda
#usda 1.0 ( upAxis = "Y" ) over "InputPrim" ( variants = { string color = "default_color" string size = "default_size" } prepend variantSets = ["color", "size"] ) { variantSet "color" = { "blue" { } "green" { } "red" { } } variantSet "size" = { "large" { } "medium" { } "small" { } } } over "RelPrim" ( variants = { string color = "green" string size = "small" } prepend variantSets = ["color", "size"] ) { variantSet "color" = { "blue" { } "green" { } "red" { } } variantSet "size" = { "large" { } "medium" { } "small" { } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestReadPrimsNode_v1.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (237.24881686990182, 237.24881120719246, 237.24881686990176) double3 target = (5.684341886080802e-14, 1.4210854715202004e-13, 1.1368683772161603e-13) } dictionary Right = { double3 position = (-50000, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 50000, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary omni_layer = { dictionary muteness = { } } dictionary renderSettings = { } } defaultPrim = "World" endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def Xform "World" { def DistantLight "defaultLight" ( prepend apiSchemas = ["ShapingAPI"] ) { float angle = 1 float intensity = 3000 float shaping:cone:angle = 180 float shaping:cone:softness float shaping:focus color3f shaping:focusTint asset shaping:ies:file double3 xformOp:rotateXYZ = (315, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } def Cube "Cube" { float3[] extent = [(-50, -50, -50), (50, 50, 50)] double size = 100 double3 xformOp:rotateXYZ = (0, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } def OmniGraph "TestGraph" { token evaluationMode = "Automatic" token evaluator:type = "push" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 6) token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "read_prims" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom string inputs:attrNamesToImport = "*" custom bool inputs:computeBoundingBox = 0 custom string inputs:pathPattern = "" custom rel inputs:prims prepend rel inputs:prims = </World/Cube> custom string inputs:typePattern = "*" custom timecode inputs:usdTimecode = -1 token node:type = "omni.graph.nodes.ReadPrims" int node:typeVersion = 1 custom string state:attrNamesToImport custom bool state:computeBoundingBox = 0 custom string state:pathPattern custom uint64[] state:primPaths = [] custom string state:typePattern custom timecode state:usdTimecode = -1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (242, 149) def Output "outputs_primsBundle" { } } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestConstantPrims.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (500, 500, 500) double3 target = (-0.00000397803842133726, 0.000007956076785831101, -0.00000397803842133726) } dictionary Right = { double3 position = (-50000, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 50000, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary omni_layer = { string authoring_layer = "./ConstantPrims.usda" dictionary muteness = { } } dictionary renderSettings = { } } defaultPrim = "World" endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 timeCodesPerSecond = 30 upAxis = "Y" ) def Xform "World" { def OmniGraph "PushGraph" { token evaluationMode = "Automatic" token evaluator:type = "push" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 6) token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "constant_prims" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom rel inputs:value = [ </Environment>, </Environment/defaultLight>, ] ( customData = { dictionary omni = { dictionary graph = { string relType = "target" } } } ) token node:type = "omni.graph.nodes.ConstantPrims" int node:typeVersion = 1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (91, 56) } def OmniGraphNode "get_prim_paths" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom rel inputs:prims = </World/PushGraph/constant_prims.inputs:value> ( customData = { dictionary omni = { dictionary graph = { string relType = "target" } } } ) token node:type = "omni.graph.nodes.GetPrimPaths" int node:typeVersion = 1 custom token[] outputs:primPaths = [] uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (345, 107) } } } def Xform "Environment" { double3 xformOp:rotateXYZ = (0, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] def DistantLight "defaultLight" ( prepend apiSchemas = ["ShapingAPI"] ) { float inputs:angle = 1 float inputs:intensity = 3000 float inputs:shaping:cone:angle = 180 float inputs:shaping:cone:softness float inputs:shaping:focus color3f inputs:shaping:focusTint asset inputs:shaping:ies:file double3 xformOp:rotateXYZ = (315, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestReadPrimNode_v1.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 50000) double radius = 500 } dictionary Perspective = { double3 position = (237.24881686990182, 237.24881120719246, 237.24881686990176) double3 target = (5.684341886080802e-14, 2.842170943040401e-14, 8.526512829121202e-14) } dictionary Right = { double3 position = (-50000, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 50000, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary omni_layer = { dictionary muteness = { } } } defaultPrim = "World" endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def Xform "World" { def DistantLight "defaultLight" ( prepend apiSchemas = ["ShapingAPI"] ) { float angle = 1 float intensity = 3000 float shaping:cone:angle = 180 float shaping:cone:softness float shaping:focus color3f shaping:focusTint asset shaping:ies:file double3 xformOp:rotateXYZ = (315, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } def Cube "Cube" { float3[] extent = [(-50, -50, -50), (50, 50, 50)] double size = 100 double3 xformOp:rotateXYZ = (0, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } def OmniGraph "TestGraph" { token evaluationMode = "Automatic" token evaluator:type = "push" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 4) token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "read_prim" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom rel inputs:prim prepend rel inputs:prim = </World/Cube> token node:type = "omni.graph.nodes.ReadPrim" int node:typeVersion = 1 custom float3[] outputs:extent custom double outputs:size custom token outputs:sourcePrimPath custom matrix4d outputs:worldMatrix custom double3 outputs:xformOp:rotateXYZ custom double3 outputs:xformOp:scale custom double3 outputs:xformOp:translate custom token[] outputs:xformOpOrder uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (264, 52) def Output "outputs_primBundle" { } } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/TestReadPrimNodeVariants.usda
#usda 1.0 ( defaultPrim = "World" endTimeCode = 100 metersPerUnit = 0.01 startTimeCode = 0 upAxis = "Y" ) def Xform "World" { def OmniGraph "ActionGraph" { token evaluationMode = "Automatic" token evaluator:type = "execution" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 6) token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "ReadPrimAttribute" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom token inputs:name = "xformOp:translate" custom rel inputs:prim prepend rel inputs:prim = </World/Cube> custom token inputs:primPath custom timecode inputs:usdTimecode = -1 custom bool inputs:usePath = 0 token node:type = "omni.graph.nodes.ReadPrimAttribute" int node:typeVersion = 1 custom token outputs:value uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (42, 37) } def OmniGraphNode "ReadPrim" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom token inputs:attrNamesToImport = "*" custom bool inputs:computeBoundingBox = 0 custom rel inputs:prim prepend rel inputs:prim = </World/Cube> custom timecode inputs:usdTimecode = -1 token node:type = "omni.graph.nodes.ReadPrim" int node:typeVersion = 7 custom uint64 state:attrNamesToImport custom bool state:computeBoundingBox = 0 custom uint64 state:primPath custom uint64 state:primTypes custom timecode state:usdTimecode = -1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (42, 234) def Output "outputs_primBundle" { } } def OmniGraphNode "ReadPrims" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom bool inputs:applySkelBinding = 0 custom string inputs:attrNamesToImport = "*" custom bool inputs:computeBoundingBox = 0 custom string inputs:pathPattern = "" custom rel inputs:prims custom string inputs:typePattern = "*" custom timecode inputs:usdTimecode = -1 token node:type = "omni.graph.nodes.ReadPrims" int node:typeVersion = 2 custom bool state:applySkelBinding = 0 custom string state:attrNamesToImport custom bool state:computeBoundingBox = 0 custom string state:pathPattern custom uint64[] state:primPaths = [] custom string state:typePattern custom timecode state:usdTimecode = -1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (41, 420) def Output "outputs_primsBundle" { } } def OmniGraphNode "ReadPrimAttributes" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom string inputs:attrNamesToImport = "*" custom rel inputs:prim custom string inputs:primPath = "" custom timecode inputs:usdTimecode = -1 custom bool inputs:usePath = 0 token node:type = "omni.graph.nodes.ReadPrimAttributes" int node:typeVersion = 1 custom string state:attrNamesToImport custom uint64 state:primPath custom timecode state:usdTimecode = -1 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (41, 655) def Output "outputs_primBundle" { } } def OmniGraphNode "ReadPrimsBundle" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom string inputs:attrNamesToImport = "*" custom token inputs:primPaths custom rel inputs:prims custom timecode inputs:usdTimecode = -1 custom bool inputs:usePaths = 1 token node:type = "omni.graph.nodes.ReadPrimsBundle" int node:typeVersion = 1 custom string state:attrNamesToImport custom uint64[] state:primPaths = [] custom timecode state:usdTimecode = -1 custom bool state:usePaths = 0 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (449.56555, 305.81485) def Output "outputs_primsBundle" { } } def OmniGraphNode "ReadPrimBundle" ( prepend apiSchemas = ["NodeGraphNodeAPI"] ) { custom token inputs:attrNamesToImport = "*" custom bool inputs:computeBoundingBox = 0 custom rel inputs:prim custom token inputs:primPath custom timecode inputs:usdTimecode = -1 custom bool inputs:usePath = 0 custom token node:type = "omni.graph.nodes.ReadPrimBundle" custom int node:typeVersion = 5 custom uint64 state:attrNamesToImport custom bool state:computeBoundingBox = 0 custom uint64 state:primPath custom timecode state:usdTimecode = -1 custom bool state:usePath = 0 uniform token ui:nodegraph:node:expansionState = "open" uniform float2 ui:nodegraph:node:pos = (424.36, 527.5859) def Output "outputs_primBundle" { } } } def Mesh "Cube" { float3[] extent = [(-50, -50, -50), (50, 50, 50)] int[] faceVertexCounts = [4, 4, 4, 4, 4, 4] int[] faceVertexIndices = [0, 1, 3, 2, 4, 6, 7, 5, 4, 5, 1, 0, 6, 2, 3, 7, 4, 0, 2, 6, 5, 7, 3, 1] normal3f[] normals = [(0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, -1), (0, 0, -1), (0, 0, -1), (0, 0, -1), (0, -1, 0), (0, -1, 0), (0, -1, 0), (0, -1, 0), (0, 1, 0), (0, 1, 0), (0, 1, 0), (0, 1, 0), (-1, 0, 0), (-1, 0, 0), (-1, 0, 0), (-1, 0, 0), (1, 0, 0), (1, 0, 0), (1, 0, 0), (1, 0, 0)] ( interpolation = "faceVarying" ) point3f[] points = [(-50, -50, 50), (50, -50, 50), (-50, 50, 50), (50, 50, 50), (-50, -50, -50), (50, -50, -50), (-50, 50, -50), (50, 50, -50)] float2[] primvars:st = [(0, 0), (1, 0), (1, 1), (0, 1), (1, 0), (0, 0), (0, 1), (1, 1), (0, 0), (0, 1), (1, 1), (1, 0), (0, 0), (0, 1), (1, 1), (1, 0), (0, 0), (1, 0), (1, 1), (0, 1), (1, 0), (0, 0), (0, 1), (1, 1)] ( interpolation = "faceVarying" ) uniform token subdivisionScheme = "none" double3 xformOp:rotateXYZ = (0, 0, 0) double3 xformOp:scale = (1, 1, 1) double3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithSubgraph_postSchema.usda
#usda 1.0 ( ) def OmniGraph "pullGraph" { custom token evaluator:type = "pull" custom int2 fileFormatVersion = (1, 4) custom token fabricCacheBacking = "StageWithHistory" custom token pipelineStage = "pipelineStagePreRender" def OmniGraph "innerExecutionGraph" { custom token evaluator:type = "execution" custom int2 fileFormatVersion = (1, 4) custom token fabricCacheBacking = "StageWithoutHistory" custom token pipelineStage = "pipelineStagePostRender" def OmniGraphNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/skel_model_without_normals.usda
#usda 1.0 ( defaultPrim = "Model" endTimeCode = 10 startTimeCode = 1 metersPerUnit = .01 upAxis = 'Y' ) def SkelRoot "Model" ( kind = "component" prepend apiSchemas = ["SkelBindingAPI"] ) { def Skeleton "Skel" { uniform token[] joints = ["Shoulder", "Shoulder/Elbow", "Shoulder/Elbow/Hand"] uniform matrix4d[] bindTransforms = [ ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1)), ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,2,1)), ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,4,1)) ] uniform matrix4d[] restTransforms = [ ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1)), ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,2,1)), ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,2,1)) ] def SkelAnimation "Anim" { uniform token[] joints = ["Shoulder/Elbow"] float3[] translations = [(0,0,2)] quatf[] rotations.timeSamples = { 1: [(1,0,0,0)], 10: [(0.7071, 0.7071, 0, 0)] } half3[] scales = [(1,1,1)] } rel skel:animationSource = <Anim> } # Both the binding of the Skeleton, and the specificatin of the # weighting primvars necessitates the application of the # SkelBindingAPI schema def Mesh "Arm" ( prepend apiSchemas = ["SkelBindingAPI"] ) { int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4] int[] faceVertexIndices = [ 2, 3, 1, 0, 6, 7, 5, 4, 8, 9, 7, 6, 3, 2, 9, 8, 10, 11, 4, 5, 0, 1, 11, 10, 7, 9, 10, 5, 9, 2, 0, 10, 3, 8, 11, 1, 8, 6, 4, 11 ] point3f[] points = [ (0.5, -0.5, 4), (-0.5, -0.5, 4), (0.5, 0.5, 4), (-0.5, 0.5, 4), (-0.5, -0.5, 0), (0.5, -0.5, 0), (-0.5, 0.5, 0), (0.5, 0.5, 0), (-0.5, 0.5, 2), (0.5, 0.5, 2), (0.5, -0.5, 2), (-0.5, -0.5, 2) ] rel skel:skeleton = </Model/Skel> int[] primvars:skel:jointIndices = [ 2,2,2,2, 0,0,0,0, 1,1,1,1 ] ( interpolation = "vertex" elementSize = 1 ) float[] primvars:skel:jointWeights = [ 1,1,1,1, 1,1,1,1, 1,1,1,1 ] ( interpolation = "vertex" elementSize = 1 ) matrix4d primvars:skel:geomBindTransform = ((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1)) } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithBadBackingName.usda
#usda 1.0 ( ) def ComputeGraph "pushGraph" { def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 1) custom token flatCacheBacking = "StagedWithHistory" custom token pipelineStage = "pipelineStagePreRender" } def ComputeNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/skelcylinder_inherited_skeleton.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 30 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" ( prepend apiSchemas = ["SkelBindingAPI"] ) { matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) uniform token[] xformOpOrder = ["xformOp:transform"] rel skel:skeleton = </Root/group1/joint1> rel skel:animationSource = </Root/group1/joint1/Animation> def Mesh "pCylinder1_Skinned" ( prepend apiSchemas = ["SkelBindingAPI", "ShadowAPI"] ) { uniform bool doubleSided = 1 float3[] extent = [(-2.0000005, -2.0000002, 0), (2, 2.000001, 10)] int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] int[] faceVertexIndices = [0, 1, 21, 20, 1, 2, 22, 21, 2, 3, 23, 22, 3, 4, 24, 23, 4, 5, 25, 24, 5, 6, 26, 25, 6, 7, 27, 26, 7, 8, 28, 27, 8, 9, 29, 28, 9, 10, 30, 29, 10, 11, 31, 30, 11, 12, 32, 31, 12, 13, 33, 32, 13, 14, 34, 33, 14, 15, 35, 34, 15, 16, 36, 35, 16, 17, 37, 36, 17, 18, 38, 37, 18, 19, 39, 38, 19, 0, 20, 39, 20, 21, 41, 40, 21, 22, 42, 41, 22, 23, 43, 42, 23, 24, 44, 43, 24, 25, 45, 44, 25, 26, 46, 45, 26, 27, 47, 46, 27, 28, 48, 47, 28, 29, 49, 48, 29, 30, 50, 49, 30, 31, 51, 50, 31, 32, 52, 51, 32, 33, 53, 52, 33, 34, 54, 53, 34, 35, 55, 54, 35, 36, 56, 55, 36, 37, 57, 56, 37, 38, 58, 57, 38, 39, 59, 58, 39, 20, 40, 59, 40, 41, 61, 60, 41, 42, 62, 61, 42, 43, 63, 62, 43, 44, 64, 63, 44, 45, 65, 64, 45, 46, 66, 65, 46, 47, 67, 66, 47, 48, 68, 67, 48, 49, 69, 68, 49, 50, 70, 69, 50, 51, 71, 70, 51, 52, 72, 71, 52, 53, 73, 72, 53, 54, 74, 73, 54, 55, 75, 74, 55, 56, 76, 75, 56, 57, 77, 76, 57, 58, 78, 77, 58, 59, 79, 78, 59, 40, 60, 79, 60, 61, 81, 80, 61, 62, 82, 81, 62, 63, 83, 82, 63, 64, 84, 83, 64, 65, 85, 84, 65, 66, 86, 85, 66, 67, 87, 86, 67, 68, 88, 87, 68, 69, 89, 88, 69, 70, 90, 89, 70, 71, 91, 90, 71, 72, 92, 91, 72, 73, 93, 92, 73, 74, 94, 93, 74, 75, 95, 94, 75, 76, 96, 95, 76, 77, 97, 96, 77, 78, 98, 97, 78, 79, 99, 98, 79, 60, 80, 99, 80, 81, 101, 100, 81, 82, 102, 101, 82, 83, 103, 102, 83, 84, 104, 103, 84, 85, 105, 104, 85, 86, 106, 105, 86, 87, 107, 106, 87, 88, 108, 107, 88, 89, 109, 108, 89, 90, 110, 109, 90, 91, 111, 110, 91, 92, 112, 111, 92, 93, 113, 112, 93, 94, 114, 113, 94, 95, 115, 114, 95, 96, 116, 115, 96, 97, 117, 116, 97, 98, 118, 117, 98, 99, 119, 118, 99, 80, 100, 119, 100, 101, 121, 120, 101, 102, 122, 121, 102, 103, 123, 122, 103, 104, 124, 123, 104, 105, 125, 124, 105, 106, 126, 125, 106, 107, 127, 126, 107, 108, 128, 127, 108, 109, 129, 128, 109, 110, 130, 129, 110, 111, 131, 130, 111, 112, 132, 131, 112, 113, 133, 132, 113, 114, 134, 133, 114, 115, 135, 134, 115, 116, 136, 135, 116, 117, 137, 136, 117, 118, 138, 137, 118, 119, 139, 138, 119, 100, 120, 139, 120, 121, 141, 140, 121, 122, 142, 141, 122, 123, 143, 142, 123, 124, 144, 143, 124, 125, 145, 144, 125, 126, 146, 145, 126, 127, 147, 146, 127, 128, 148, 147, 128, 129, 149, 148, 129, 130, 150, 149, 130, 131, 151, 150, 131, 132, 152, 151, 132, 133, 153, 152, 133, 134, 154, 153, 134, 135, 155, 154, 135, 136, 156, 155, 136, 137, 157, 156, 137, 138, 158, 157, 138, 139, 159, 158, 139, 120, 140, 159, 140, 141, 161, 160, 141, 142, 162, 161, 142, 143, 163, 162, 143, 144, 164, 163, 144, 145, 165, 164, 145, 146, 166, 165, 146, 147, 167, 166, 147, 148, 168, 167, 148, 149, 169, 168, 149, 150, 170, 169, 150, 151, 171, 170, 151, 152, 172, 171, 152, 153, 173, 172, 153, 154, 174, 173, 154, 155, 175, 174, 155, 156, 176, 175, 156, 157, 177, 176, 157, 158, 178, 177, 158, 159, 179, 178, 159, 140, 160, 179, 160, 161, 181, 180, 161, 162, 182, 181, 162, 163, 183, 182, 163, 164, 184, 183, 164, 165, 185, 184, 165, 166, 186, 185, 166, 167, 187, 186, 167, 168, 188, 187, 168, 169, 189, 188, 169, 170, 190, 189, 170, 171, 191, 190, 171, 172, 192, 191, 172, 173, 193, 192, 173, 174, 194, 193, 174, 175, 195, 194, 175, 176, 196, 195, 176, 177, 197, 196, 177, 178, 198, 197, 178, 179, 199, 198, 179, 160, 180, 199, 180, 181, 201, 200, 181, 182, 202, 201, 182, 183, 203, 202, 183, 184, 204, 203, 184, 185, 205, 204, 185, 186, 206, 205, 186, 187, 207, 206, 187, 188, 208, 207, 188, 189, 209, 208, 189, 190, 210, 209, 190, 191, 211, 210, 191, 192, 212, 211, 192, 193, 213, 212, 193, 194, 214, 213, 194, 195, 215, 214, 195, 196, 216, 215, 196, 197, 217, 216, 197, 198, 218, 217, 198, 199, 219, 218, 199, 180, 200, 219, 200, 201, 221, 220, 201, 202, 222, 221, 202, 203, 223, 222, 203, 204, 224, 223, 204, 205, 225, 224, 205, 206, 226, 225, 206, 207, 227, 226, 207, 208, 228, 227, 208, 209, 229, 228, 209, 210, 230, 229, 210, 211, 231, 230, 211, 212, 232, 231, 212, 213, 233, 232, 213, 214, 234, 233, 214, 215, 235, 234, 215, 216, 236, 235, 216, 217, 237, 236, 217, 218, 238, 237, 218, 219, 239, 238, 219, 200, 220, 239, 220, 221, 241, 240, 221, 222, 242, 241, 222, 223, 243, 242, 223, 224, 244, 243, 224, 225, 245, 244, 225, 226, 246, 245, 226, 227, 247, 246, 227, 228, 248, 247, 228, 229, 249, 248, 229, 230, 250, 249, 230, 231, 251, 250, 231, 232, 252, 251, 232, 233, 253, 252, 233, 234, 254, 253, 234, 235, 255, 254, 235, 236, 256, 255, 236, 237, 257, 256, 237, 238, 258, 257, 238, 239, 259, 258, 239, 220, 240, 259, 1, 0, 260, 2, 1, 260, 3, 2, 260, 4, 3, 260, 5, 4, 260, 6, 5, 260, 7, 6, 260, 8, 7, 260, 9, 8, 260, 10, 9, 260, 11, 10, 260, 12, 11, 260, 13, 12, 260, 14, 13, 260, 15, 14, 260, 16, 15, 260, 17, 16, 260, 18, 17, 260, 19, 18, 260, 0, 19, 260, 240, 241, 261, 241, 242, 261, 242, 243, 261, 243, 244, 261, 244, 245, 261, 245, 246, 261, 246, 247, 261, 247, 248, 261, 248, 249, 261, 249, 250, 261, 250, 251, 261, 251, 252, 261, 252, 253, 261, 253, 254, 261, 254, 255, 261, 255, 256, 261, 256, 257, 261, 257, 258, 261, 258, 259, 261, 259, 240, 261] normal3f[] normals = [(0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (0.30901688, 0.95105666, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-9.209561e-8, 1, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.9510565, 0), (-0.30901712, 0.9510565, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.9510565, 0), (-0.5877854, 0.8090168, 0), (-0.5877854, 0.8090168, 0), (-0.30901712, 0.9510565, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.8090172, 0.5877851, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877854, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877854, 0), (-0.5877852, -0.809017, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.809017, 0), (-0.30901694, -0.9510566, 0), (-0.30901694, -0.9510566, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (9.209565e-8, -1, 0), (9.209565e-8, -1, 0), (-0.30901694, -0.9510566, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.809017, -0.5877853, 0), (0.80901706, -0.5877853, 0), (0.5877853, -0.809017, 0), (0.809017, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (0.30901688, 0.95105666, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-9.209561e-8, 1, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.9510565, 0), (-0.30901712, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.9510565, 0), (-0.5877854, 0.8090168, 0), (-0.5877854, 0.8090169, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.8090172, 0.5877851, 0), (-0.5877854, 0.8090169, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (-0.30901694, -0.9510566, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (9.209565e-8, -1, 0), (9.2095654e-8, -1, 0), (-0.30901694, -0.9510566, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (9.2095654e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.80901706, -0.5877853, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (0.30901688, 0.95105666, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-9.209561e-8, 1, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901715, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.8090169, 0), (-0.5877854, 0.8090168, 0), (-0.30901715, 0.95105654, 0), (-0.5877854, 0.8090169, 0), (-0.8090172, 0.5877851, 0), (-0.8090172, 0.5877851, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (-0.30901694, -0.9510566, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (9.2095654e-8, -1, 0), (9.209565e-8, -1, 0), (-0.30901694, -0.9510566, 0), (9.2095654e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.80901706, -0.5877853, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.5877851, 0.809017, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.30901688, 0.95105666, 0), (0.3090168, 0.95105654, 0), (0.5877851, 0.809017, 0), (0.30901688, 0.95105666, 0), (-9.209561e-8, 1, 0), (-9.209559e-8, 1, 0), (0.3090168, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901715, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901715, 0.95105654, 0), (-0.5877854, 0.8090168, 0), (-0.5877855, 0.8090168, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.8090172, 0.58778507, 0), (-0.5877855, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.58778507, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (-0.3090169, -0.95105654, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510566, 0), (9.209565e-8, -1, 0), (9.209565e-8, -1, 0), (-0.3090169, -0.95105654, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.80901706, -0.58778524, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.5877851, 0.809017, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.5877853, 0), (0.5877851, 0.809017, 0), (0.3090168, 0.95105654, 0), (0.3090168, 0.95105654, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.95105654, 0), (-9.209559e-8, 1, 0), (-9.209561e-8, 1, 0), (0.3090168, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877855, 0.8090168, 0), (-0.5877854, 0.8090168, 0), (-0.30901712, 0.95105654, 0), (-0.5877855, 0.8090168, 0), (-0.8090172, 0.58778507, 0), (-0.8090172, 0.5877851, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.58778507, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.3090169, -0.95105654, 0), (-0.30901694, -0.95105654, 0), (-0.5877852, -0.80901706, 0), (-0.3090169, -0.95105654, 0), (9.209565e-8, -1, 0), (9.209565e-8, -1, 0), (-0.30901694, -0.95105654, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.58778524, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.80901706, -0.5877853, 0), (0.58778524, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.95105654, 0), (0.3090168, 0.95105654, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.95105654, 0), (-9.209561e-8, 1, 0), (-9.209561e-8, 1, 0), (0.3090168, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.8090168, 0), (-0.5877854, 0.80901694, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.80901706, 0.5877851, 0), (-0.5877854, 0.80901694, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.80901706, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.95105654, 0), (-0.3090169, -0.95105654, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.95105654, 0), (9.209565e-8, -1, 0), (8.8258304e-8, -1, 0), (-0.3090169, -0.95105654, 0), (9.209565e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.309017, -0.9510565, 0), (8.8258304e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.58778524, -0.809017, 0), (0.5877851, -0.809017, 0), (0.309017, -0.9510565, 0), (0.58778524, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.80901694, -0.5877853, 0), (0.5877851, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901694, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.5877851, 0.809017, 0), (0.80901694, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.95105654, 0), (0.3090168, 0.95105654, 0), (0.5877851, 0.809017, 0), (0.3090168, 0.95105654, 0), (-9.209561e-8, 1, 0), (-9.209559e-8, 1, 0), (0.3090168, 0.95105654, 0), (-9.209561e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.80901694, 0), (-0.5877855, 0.8090169, 0), (-0.30901712, 0.95105654, 0), (-0.5877854, 0.80901694, 0), (-0.80901706, 0.5877851, 0), (-0.8090172, 0.5877851, 0), (-0.5877855, 0.8090169, 0), (-0.80901706, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.80901694, -0.5877853, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.3090169, -0.95105654, 0), (-0.30901694, -0.95105654, 0), (-0.5877852, -0.80901706, 0), (-0.3090169, -0.95105654, 0), (8.8258304e-8, -1, 0), (8.825832e-8, -1, 0), (-0.30901694, -0.95105654, 0), (8.8258304e-8, -1, 0), (0.309017, -0.9510565, 0), (0.30901703, -0.95105654, 0), (8.825832e-8, -1, 0), (0.309017, -0.9510565, 0), (0.5877851, -0.809017, 0), (0.5877853, -0.80901706, 0), (0.30901703, -0.95105654, 0), (0.5877851, -0.809017, 0), (0.80901694, -0.5877853, 0), (0.80901706, -0.5877853, 0), (0.5877853, -0.80901706, 0), (0.80901694, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.5877853, 0), (0.80901694, 0.58778524, 0), (0.9510569, 0.309016, 0), (0.80901694, 0.5877853, 0), (0.5877851, 0.809017, 0), (0.58778507, 0.80901706, 0), (0.80901694, 0.58778524, 0), (0.5877851, 0.809017, 0), (0.3090168, 0.95105654, 0), (0.3090168, 0.9510566, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.95105654, 0), (-9.209559e-8, 1, 0), (-9.209559e-8, 1, 0), (0.3090168, 0.9510566, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877855, 0.8090169, 0), (-0.5877856, 0.8090168, 0), (-0.30901712, 0.95105654, 0), (-0.5877855, 0.8090169, 0), (-0.8090172, 0.5877851, 0), (-0.8090172, 0.587785, 0), (-0.5877856, 0.8090168, 0), (-0.8090172, 0.5877851, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.587785, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.9510565, -0.30901694, 0), (-1, -0, 0), (-0.9510565, -0.309017, 0), (-0.80901694, -0.5877853, 0), (-0.8090169, -0.5877854, 0), (-0.9510565, -0.30901694, 0), (-0.80901694, -0.5877853, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.8090169, -0.5877854, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.95105654, 0), (-0.30901694, -0.9510565, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.95105654, 0), (8.825832e-8, -1, 0), (9.209566e-8, -1, 0), (-0.30901694, -0.9510565, 0), (8.825832e-8, -1, 0), (0.30901703, -0.95105654, 0), (0.30901703, -0.9510565, 0), (9.209566e-8, -1, 0), (0.30901703, -0.95105654, 0), (0.5877853, -0.80901706, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.80901706, 0), (0.80901706, -0.5877853, 0), (0.80901706, -0.58778524, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.5877853, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.309016, 0), (1, -9.593294e-7, 0), (0.9510569, 0.309016, 0), (0.80901694, 0.58778524, 0), (0.8090169, 0.5877853, 0), (0.9510569, 0.30901602, 0), (0.80901694, 0.58778524, 0), (0.58778507, 0.80901706, 0), (0.5877851, 0.80901706, 0), (0.8090169, 0.5877853, 0), (0.58778507, 0.80901706, 0), (0.3090168, 0.9510566, 0), (0.30901685, 0.9510566, 0), (0.5877851, 0.80901706, 0), (0.3090168, 0.9510566, 0), (-9.209559e-8, 1, 0), (-9.209559e-8, 1, 0), (0.30901685, 0.9510566, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877856, 0.8090168, 0), (-0.5877856, 0.8090168, 0), (-0.30901712, 0.95105654, 0), (-0.5877856, 0.8090168, 0), (-0.8090172, 0.587785, 0), (-0.8090172, 0.587785, 0), (-0.5877856, 0.8090168, 0), (-0.8090172, 0.587785, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.587785, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.9510565, -0.30901694, 0), (-0.95105654, -0.309017, 0), (-1, -0, 0), (-0.9510565, -0.30901694, 0), (-0.8090169, -0.5877854, 0), (-0.8090169, -0.5877854, 0), (-0.95105654, -0.309017, 0), (-0.8090169, -0.5877854, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.80901706, 0), (-0.8090169, -0.5877854, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510565, 0), (-0.3090169, -0.95105654, 0), (-0.5877852, -0.80901706, 0), (-0.30901694, -0.9510565, 0), (9.209566e-8, -1, 0), (8.8258325e-8, -1, 0), (-0.3090169, -0.95105654, 0), (9.209566e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (8.8258325e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.80901706, -0.58778524, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.309016, 0), (0.9510569, 0.30901602, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.8090169, 0.5877853, 0), (0.8090169, 0.58778536, 0), (0.9510569, 0.3090161, 0), (0.8090169, 0.5877853, 0), (0.5877851, 0.80901706, 0), (0.58778524, 0.80901706, 0), (0.8090169, 0.58778536, 0), (0.5877851, 0.80901706, 0), (0.30901685, 0.9510566, 0), (0.3090169, 0.9510566, 0), (0.58778524, 0.80901706, 0), (0.30901685, 0.9510566, 0), (-9.209559e-8, 1, 0), (-9.209559e-8, 1, 0), (0.3090169, 0.9510566, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.30901712, 0.95105654, 0), (-9.209559e-8, 1, 0), (-0.30901712, 0.95105654, 0), (-0.5877856, 0.8090168, 0), (-0.5877856, 0.8090168, 0), (-0.30901712, 0.95105654, 0), (-0.5877856, 0.8090168, 0), (-0.8090172, 0.587785, 0), (-0.8090172, 0.587785, 0), (-0.5877856, 0.8090168, 0), (-0.8090172, 0.587785, 0), (-0.95105654, 0.30901688, 0), (-0.95105654, 0.30901688, 0), (-0.8090172, 0.587785, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-1, -0, 0), (-0.95105654, 0.30901688, 0), (-1, -0, 0), (-0.95105654, -0.309017, 0), (-0.95105654, -0.3090171, 0), (-1, -0, 0), (-0.95105654, -0.309017, 0), (-0.8090169, -0.5877854, 0), (-0.8090169, -0.58778554, 0), (-0.95105654, -0.3090171, 0), (-0.8090169, -0.5877854, 0), (-0.5877852, -0.80901706, 0), (-0.5877852, -0.809017, 0), (-0.8090169, -0.58778554, 0), (-0.5877852, -0.80901706, 0), (-0.3090169, -0.95105654, 0), (-0.3090169, -0.9510566, 0), (-0.5877852, -0.809017, 0), (-0.3090169, -0.95105654, 0), (8.8258325e-8, -1, 0), (8.4420996e-8, -1, 0), (-0.3090169, -0.9510566, 0), (8.8258325e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.30901703, -0.9510565, 0), (8.4420996e-8, -1, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.5877853, -0.809017, 0), (0.30901703, -0.9510565, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.809017, -0.58778524, 0), (0.5877853, -0.809017, 0), (0.80901706, -0.58778524, 0), (0.9510565, -0.30901694, 0), (0.9510565, -0.30901694, 0), (0.809017, -0.58778524, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (1, -9.593294e-7, 0), (0.9510565, -0.30901694, 0), (1, -9.593294e-7, 0), (0.9510569, 0.30901602, 0), (0.9510569, 0.3090161, 0), (1, -9.593294e-7, 0), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, 5.1435853e-7, 1), (0, 7.347982e-7, 1), (0, -0, 1), (0, 5.1435853e-7, 1), (0, -5.143587e-7, 1), (0, -7.347983e-7, 1), (0, 7.347982e-7, 1), (0, -5.143587e-7, 1), (0, -0.0000020574357, 1), (0, -0.0000022778752, 1), (0, -7.347983e-7, 1), (0, -0.0000020574357, 1), (0, -0, 1), (0, -0, 1), (0, -0.0000022778752, 1), (0, -0, 1), (0, 0.000001028718, 1), (0, 8.082783e-7, 1), (0, -0, 1), (0, 0.000001028718, 1), (0, -0, 1), (0, -0, 1), (0, 8.082783e-7, 1), (0, -0, 1), (0, 5.1435893e-7, 1), (0, 4.0413923e-7, 1), (0, -0, 1), (0, 5.1435893e-7, 1), (0, 7.715385e-7, 0.99999994), (0, 6.062089e-7, 1), (0, 4.0413923e-7, 1), (0, 7.715385e-7, 0.99999994), (0, 1.9288467e-7, 1), (0, 1.1021976e-7, 1), (0, 6.062089e-7, 1), (0, 1.9288467e-7, 1), (0, -6.429489e-8, 1), (0, -9.1849834e-8, 1), (0, 1.1021976e-7, 1), (0, -6.429489e-8, 1), (0, -0, 1), (0, -0, 1), (0, -9.1849834e-8, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, -0, 1), (0, 0.0000010287182, 1), (0, 8.082787e-7, 1), (0, -0, 1), (0, 0.0000010287182, 1), (0, 0.0000010287172, 1), (0, 8.0827857e-7, 1), (0, 8.082787e-7, 1), (0, 0.0000010287172, 1), (0, -0, 1), (0, -0, 1), (0, 8.0827857e-7, 1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, -1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, 7.347982e-7, 1), (0, -1.7359638e-7, 1), (0, 7.347982e-7, 1), (0, -7.347983e-7, 1), (0, -1.7359638e-7, 1), (0, -7.347983e-7, 1), (0, -0.0000022778752, 1), (0, -1.7359638e-7, 1), (0, -0.0000022778752, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, 8.082783e-7, 1), (0, -1.7359638e-7, 1), (0, 8.082783e-7, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, 4.0413923e-7, 1), (0, -1.7359638e-7, 1), (0, 4.0413923e-7, 1), (0, 6.062089e-7, 1), (0, -1.7359638e-7, 1), (0, 6.062089e-7, 1), (0, 1.1021976e-7, 1), (0, -1.7359638e-7, 1), (0, 1.1021976e-7, 1), (0, -9.1849834e-8, 1), (0, -1.7359638e-7, 1), (0, -9.1849834e-8, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, -0, 1), (0, -1.7359638e-7, 1), (0, -0, 1), (0, 8.082787e-7, 1), (0, -1.7359638e-7, 1), (0, 8.082787e-7, 1), (0, 8.0827857e-7, 1), (0, -1.7359638e-7, 1), (0, 8.0827857e-7, 1), (0, -0, 1), (0, -1.7359638e-7, 1)] ( interpolation = "faceVarying" ) point3f[] points = [(0.95105714, 0.30901718, 0), (0.80901754, 0.5877856, 0), (0.5877856, 0.8090175, 0), (0.30901715, 0.951057, 0), (0, 1.0000005, 0), (-0.30901715, 0.95105696, 0), (-0.5877855, 0.8090173, 0), (-0.80901724, 0.5877854, 0), (-0.9510568, 0.30901706, 0), (-1.0000002, -0, 0), (-0.9510568, -0.30901706, 0), (-0.8090172, -0.58778536, 0), (-0.58778536, -0.8090171, 0), (-0.30901706, -0.95105666, 0), (-2.9802322e-8, -1.0000001, 0), (0.30901697, -0.9510566, 0), (0.58778524, -0.80901706, 0), (0.809017, -0.5877853, 0), (0.95105654, -0.309017, 0), (1, -0, 0), (1.9021143, 0.61803436, 0), (1.6180351, 1.1755712, 0), (1.1755712, 1.618035, 0), (0.6180343, 1.902114, 0), (0, 2.000001, 0), (-0.6180343, 1.9021139, 0), (-1.175571, 1.6180346, 0), (-1.6180345, 1.1755708, 0), (-1.9021136, 0.6180341, 0), (-2.0000005, -0, 0), (-1.9021136, -0.6180341, 0), (-1.6180344, -1.1755707, 0), (-1.1755707, -1.6180342, 0), (-0.6180341, -1.9021133, 0), (-5.9604645e-8, -2.0000002, 0), (0.61803395, -1.9021132, 0), (1.1755705, -1.6180341, 0), (1.618034, -1.1755706, 0), (1.9021131, -0.618034, 0), (2, -0, 0), (1.9021143, 0.61803436, 1), (1.6180351, 1.1755712, 1), (1.1755712, 1.618035, 1), (0.6180343, 1.902114, 1), (0, 2.000001, 1), (-0.6180343, 1.9021139, 1), (-1.175571, 1.6180346, 1), (-1.6180345, 1.1755708, 1), (-1.9021136, 0.6180341, 1), (-2.0000005, -0, 1), (-1.9021136, -0.6180341, 1), (-1.6180344, -1.1755707, 1), (-1.1755707, -1.6180342, 1), (-0.6180341, -1.9021133, 1), (-5.9604645e-8, -2.0000002, 1), (0.61803395, -1.9021132, 1), (1.1755705, -1.6180341, 1), (1.618034, -1.1755706, 1), (1.9021131, -0.618034, 1), (2, -0, 1), (1.9021143, 0.61803436, 2), (1.6180351, 1.1755712, 2), (1.1755712, 1.618035, 2), (0.6180343, 1.902114, 2), (0, 2.000001, 2), (-0.6180343, 1.9021139, 2), (-1.175571, 1.6180346, 2), (-1.6180345, 1.1755708, 2), (-1.9021136, 0.6180341, 2), (-2.0000005, -0, 2), (-1.9021136, -0.6180341, 2), (-1.6180344, -1.1755707, 2), (-1.1755707, -1.6180342, 2), (-0.6180341, -1.9021133, 2), (-5.9604645e-8, -2.0000002, 2), (0.61803395, -1.9021132, 2), (1.1755705, -1.6180341, 2), (1.618034, -1.1755706, 2), (1.9021131, -0.618034, 2), (2, -0, 2), (1.9021143, 0.61803436, 3), (1.6180351, 1.1755712, 3), (1.1755712, 1.618035, 3), (0.6180343, 1.902114, 3), (0, 2.000001, 3), (-0.6180343, 1.9021139, 3), (-1.175571, 1.6180346, 3), (-1.6180345, 1.1755708, 3), (-1.9021136, 0.6180341, 3), (-2.0000005, -0, 3), (-1.9021136, -0.6180341, 3), (-1.6180344, -1.1755707, 3), (-1.1755707, -1.6180342, 3), (-0.6180341, -1.9021133, 3), (-5.9604645e-8, -2.0000002, 3), (0.61803395, -1.9021132, 3), (1.1755705, -1.6180341, 3), (1.618034, -1.1755706, 3), (1.9021131, -0.618034, 3), (2, -0, 3), (1.9021143, 0.61803436, 4), (1.6180351, 1.1755712, 4), (1.1755712, 1.618035, 4), (0.6180343, 1.902114, 4), (0, 2.000001, 4), (-0.6180343, 1.9021139, 4), (-1.175571, 1.6180346, 4), (-1.6180345, 1.1755708, 4), (-1.9021136, 0.6180341, 4), (-2.0000005, -0, 4), (-1.9021136, -0.6180341, 4), (-1.6180344, -1.1755707, 4), (-1.1755707, -1.6180342, 4), (-0.6180341, -1.9021133, 4), (-5.9604645e-8, -2.0000002, 4), (0.61803395, -1.9021132, 4), (1.1755705, -1.6180341, 4), (1.618034, -1.1755706, 4), (1.9021131, -0.618034, 4), (2, -0, 4), (1.9021143, 0.61803436, 5), (1.6180351, 1.1755712, 5), (1.1755712, 1.618035, 5), (0.6180343, 1.902114, 5), (0, 2.000001, 5), (-0.6180343, 1.9021139, 5), (-1.175571, 1.6180346, 5), (-1.6180345, 1.1755708, 5), (-1.9021136, 0.6180341, 5), (-2.0000005, -0, 5), (-1.9021136, -0.6180341, 5), (-1.6180344, -1.1755707, 5), (-1.1755707, -1.6180342, 5), (-0.6180341, -1.9021133, 5), (-5.9604645e-8, -2.0000002, 5), (0.61803395, -1.9021132, 5), (1.1755705, -1.6180341, 5), (1.618034, -1.1755706, 5), (1.9021131, -0.618034, 5), (2, -0, 5), (1.9021143, 0.61803436, 6), (1.6180351, 1.1755712, 6), (1.1755712, 1.618035, 6), (0.6180343, 1.902114, 6), (0, 2.000001, 6), (-0.6180343, 1.9021139, 6), (-1.175571, 1.6180346, 6), (-1.6180345, 1.1755708, 6), (-1.9021136, 0.6180341, 6), (-2.0000005, -0, 6), (-1.9021136, -0.6180341, 6), (-1.6180344, -1.1755707, 6), (-1.1755707, -1.6180342, 6), (-0.6180341, -1.9021133, 6), (-5.9604645e-8, -2.0000002, 6), (0.61803395, -1.9021132, 6), (1.1755705, -1.6180341, 6), (1.618034, -1.1755706, 6), (1.9021131, -0.618034, 6), (2, -0, 6), (1.9021143, 0.61803436, 7), (1.6180351, 1.1755712, 7), (1.1755712, 1.618035, 7), (0.6180343, 1.902114, 7), (0, 2.000001, 7), (-0.6180343, 1.9021139, 7), (-1.175571, 1.6180346, 7), (-1.6180345, 1.1755708, 7), (-1.9021136, 0.6180341, 7), (-2.0000005, -0, 7), (-1.9021136, -0.6180341, 7), (-1.6180344, -1.1755707, 7), (-1.1755707, -1.6180342, 7), (-0.6180341, -1.9021133, 7), (-5.9604645e-8, -2.0000002, 7), (0.61803395, -1.9021132, 7), (1.1755705, -1.6180341, 7), (1.618034, -1.1755706, 7), (1.9021131, -0.618034, 7), (2, -0, 7), (1.9021143, 0.61803436, 8), (1.6180351, 1.1755712, 8), (1.1755712, 1.618035, 8), (0.6180343, 1.902114, 8), (0, 2.000001, 8), (-0.6180343, 1.9021139, 8), (-1.175571, 1.6180346, 8), (-1.6180345, 1.1755708, 8), (-1.9021136, 0.6180341, 8), (-2.0000005, -0, 8), (-1.9021136, -0.6180341, 8), (-1.6180344, -1.1755707, 8), (-1.1755707, -1.6180342, 8), (-0.6180341, -1.9021133, 8), (-5.9604645e-8, -2.0000002, 8), (0.61803395, -1.9021132, 8), (1.1755705, -1.6180341, 8), (1.618034, -1.1755706, 8), (1.9021131, -0.618034, 8), (2, -0, 8), (1.9021143, 0.61803436, 9), (1.6180351, 1.1755712, 9), (1.1755712, 1.618035, 9), (0.6180343, 1.902114, 9), (0, 2.000001, 9), (-0.6180343, 1.9021139, 9), (-1.175571, 1.6180346, 9), (-1.6180345, 1.1755708, 9), (-1.9021136, 0.6180341, 9), (-2.0000005, -0, 9), (-1.9021136, -0.6180341, 9), (-1.6180344, -1.1755707, 9), (-1.1755707, -1.6180342, 9), (-0.6180341, -1.9021133, 9), (-5.9604645e-8, -2.0000002, 9), (0.61803395, -1.9021132, 9), (1.1755705, -1.6180341, 9), (1.618034, -1.1755706, 9), (1.9021131, -0.618034, 9), (2, -0, 9), (1.9021143, 0.61803436, 10), (1.6180351, 1.1755712, 10), (1.1755712, 1.618035, 10), (0.6180343, 1.902114, 10), (0, 2.000001, 10), (-0.6180343, 1.9021139, 10), (-1.175571, 1.6180346, 10), (-1.6180345, 1.1755708, 10), (-1.9021136, 0.6180341, 10), (-2.0000005, -0, 10), (-1.9021136, -0.6180341, 10), (-1.6180344, -1.1755707, 10), (-1.1755707, -1.6180342, 10), (-0.6180341, -1.9021133, 10), (-5.9604645e-8, -2.0000002, 10), (0.61803395, -1.9021132, 10), (1.1755705, -1.6180341, 10), (1.618034, -1.1755706, 10), (1.9021131, -0.618034, 10), (2, -0, 10), (0.95105714, 0.30901718, 10), (0.80901754, 0.5877856, 10), (0.5877856, 0.8090175, 10), (0.30901715, 0.951057, 10), (0, 1.0000005, 10), (-0.30901715, 0.95105696, 10), (-0.5877855, 0.8090173, 10), (-0.80901724, 0.5877854, 10), (-0.9510568, 0.30901706, 10), (-1.0000002, -0, 10), (-0.9510568, -0.30901706, 10), (-0.8090172, -0.58778536, 10), (-0.58778536, -0.8090171, 10), (-0.30901706, -0.95105666, 10), (-2.9802322e-8, -1.0000001, 10), (0.30901697, -0.9510566, 10), (0.58778524, -0.80901706, 10), (0.809017, -0.5877853, 10), (0.95105654, -0.309017, 10), (1, -0, 10), (0, -0, 0), (0, -0, 10)] color3f[] primvars:displayColor = [(0.4, 0.4, 0.4)] ( customData = { dictionary Maya = { bool generated = 1 } } ) matrix4d primvars:skel:geomBindTransform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) int[] primvars:skel:jointIndices = [0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 1, 2, 0, 3, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 1, 3, 4, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 2, 3, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 3, 2, 4, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 4, 3, 2, 1, 0, 0, 1, 2, 0, 0, 4, 3, 0, 0, 0] ( elementSize = 5 interpolation = "vertex" ) float[] primvars:skel:jointWeights = [0.9914398, 0.007798158, 0.00056962454, 0.00011597502, 0.00007644505, 0.9911016, 0.008106242, 0.00059212884, 0.00012055687, 0.000079465186, 0.99056286, 0.008597037, 0.0006279794, 0.00012785601, 0.00008427643, 0.98986334, 0.009234303, 0.0006745291, 0.0001373335, 0.00009052352, 0.9890613, 0.009965006, 0.00072790415, 0.00014820059, 0.000097686585, 0.98823136, 0.010720953, 0.0007831231, 0.00015944311, 0.0001050971, 0.9874593, 0.011424304, 0.0008345, 0.00016990342, 0.00011199202, 0.9868309, 0.011996779, 0.00087631703, 0.00017841732, 0.000117603966, 0.98642015, 0.012370941, 0.0009036481, 0.00018398189, 0.000121271856, 0.98627734, 0.012501058, 0.0009131526, 0.000185917, 0.00012254738, 0.98642015, 0.012370941, 0.0009036481, 0.00018398189, 0.000121271856, 0.986831, 0.011996778, 0.00087631686, 0.00017841728, 0.000117603944, 0.9874593, 0.011424296, 0.00083449937, 0.00016990327, 0.000111991925, 0.9882313, 0.01072094, 0.000783122, 0.0001594429, 0.00010509696, 0.98906124, 0.009964993, 0.0007279031, 0.00014820037, 0.00009768643, 0.98986334, 0.009234288, 0.00067452795, 0.00013733325, 0.000090523354, 0.99056286, 0.008597019, 0.000627978, 0.00012785573, 0.00008427624, 0.9911016, 0.008106223, 0.0005921274, 0.000120556564, 0.00007946499, 0.9914398, 0.00779814, 0.0005696231, 0.00011597471, 0.000076444856, 0.991555, 0.00769326, 0.000561962, 0.000114414936, 0.00007541673, 0.9122156, 0.07669155, 0.00810055, 0.0017938935, 0.0011983063, 0.9107189, 0.077999204, 0.00823867, 0.0018244808, 0.0012187384, 0.90837055, 0.0800508, 0.008455371, 0.0018724698, 0.0012507946, 0.90539, 0.0826547, 0.008730407, 0.0019333775, 0.0012914804, 0.9020614, 0.085562706, 0.0090375645, 0.0020013985, 0.001336918, 0.8987084, 0.08849201, 0.009346972, 0.002069918, 0.0013826884, 0.89566416, 0.09115167, 0.009627898, 0.00213213, 0.0014242454, 0.8932356, 0.09327323, 0.0098519875, 0.0021817551, 0.0014573947, 0.89167106, 0.09464019, 0.009996371, 0.0022137295, 0.0014787534, 0.891131, 0.09511205, 0.010046211, 0.0022247666, 0.0014861261, 0.89167106, 0.09464019, 0.009996371, 0.0022137295, 0.0014787534, 0.8932356, 0.093273215, 0.009851985, 0.0021817544, 0.0014573943, 0.8956642, 0.091151625, 0.009627892, 0.0021321285, 0.0014242444, 0.8987086, 0.088491954, 0.009346964, 0.0020699159, 0.001382687, 0.9020615, 0.08556263, 0.009037553, 0.002001396, 0.0013369162, 0.90539014, 0.0826546, 0.008730393, 0.0019333743, 0.0012914783, 0.9083707, 0.08005069, 0.008455355, 0.0018724661, 0.0012507922, 0.91071904, 0.07799908, 0.008238653, 0.0018244769, 0.0012187357, 0.91221595, 0.07669144, 0.008100534, 0.0017938899, 0.0011983039, 0.9127295, 0.07624267, 0.008053132, 0.0017833925, 0.0011912917, 0.79757524, 0.18422364, 0.01401941, 0.002549811, 0.0016318791, 0.79559076, 0.18602969, 0.01415685, 0.0025748082, 0.0016478773, 0.7925068, 0.18883635, 0.014370436, 0.0026136546, 0.0016727389, 0.78863347, 0.19236143, 0.014638692, 0.0026624443, 0.0017039644, 0.7843574, 0.19625312, 0.014934849, 0.0027163082, 0.0017384373, 0.7801007, 0.20012699, 0.015229651, 0.002769926, 0.0017727527, 0.77627844, 0.20360558, 0.015494369, 0.0028180722, 0.0018035662, 0.77325755, 0.20635484, 0.015703585, 0.002856124, 0.0018279193, 0.7713241, 0.20811455, 0.015837498, 0.0028804794, 0.0018435069, 0.77065885, 0.20871985, 0.015883561, 0.0028888572, 0.0018488687, 0.7713241, 0.20811455, 0.015837498, 0.0028804794, 0.0018435069, 0.7732577, 0.20635484, 0.015703583, 0.0028561235, 0.001827919, 0.7762785, 0.20360552, 0.015494359, 0.0028180701, 0.001803565, 0.7801008, 0.2001269, 0.015229637, 0.0027699233, 0.0017727509, 0.7843574, 0.19625297, 0.014934831, 0.0027163047, 0.001738435, 0.78863364, 0.19236128, 0.014638673, 0.0026624403, 0.0017039618, 0.79250705, 0.18883617, 0.014370412, 0.0026136497, 0.0016727359, 0.795591, 0.18602951, 0.014156824, 0.0025748028, 0.0016478739, 0.7975755, 0.18422346, 0.014019383, 0.0025498057, 0.0016318756, 0.7982601, 0.18360043, 0.01397197, 0.0025411823, 0.0016263566, 0.6015815, 0.37000003, 0.023125038, 0.0032929934, 0.0020004367, 0.60011387, 0.371363, 0.023210224, 0.0033051237, 0.0020078055, 0.59784955, 0.37346572, 0.02334164, 0.0033238372, 0.0020191737, 0.5950339, 0.37608063, 0.02350507, 0.0033471093, 0.002033311, 0.5919611, 0.37893423, 0.023683418, 0.003372506, 0.002048739, 0.58893895, 0.38174084, 0.02385883, 0.0033974845, 0.0020639133, 0.5862557, 0.38423267, 0.024014562, 0.0034196607, 0.0020773849, 0.58415526, 0.3861833, 0.024136472, 0.0034370206, 0.0020879305, 0.5828201, 0.38742322, 0.024213966, 0.0034480554, 0.002094634, 0.58236253, 0.3878482, 0.024240525, 0.0034518375, 0.0020969317, 0.5828201, 0.38742322, 0.024213966, 0.0034480554, 0.002094634, 0.5841553, 0.3861833, 0.024136467, 0.0034370197, 0.00208793, 0.5862558, 0.38423264, 0.02401455, 0.0034196584, 0.0020773832, 0.588939, 0.3817408, 0.02385881, 0.003397481, 0.002063911, 0.5919612, 0.37893417, 0.023683393, 0.003372502, 0.0020487367, 0.595034, 0.37608057, 0.02350504, 0.0033471042, 0.002033308, 0.5978497, 0.37346566, 0.023341607, 0.0033238316, 0.0020191702, 0.600114, 0.3713629, 0.023210185, 0.0033051171, 0.0020078013, 0.60158163, 0.36999995, 0.023124997, 0.0032929864, 0.0020004322, 0.6020899, 0.36952794, 0.023095496, 0.0032887855, 0.0019978804, 0.47403845, 0.4736809, 0.044845615, 0.0047368202, 0.0026980822, 0.4739865, 0.47372782, 0.04485005, 0.004737289, 0.0026983493, 0.47392228, 0.47378576, 0.044855528, 0.0047378675, 0.0026986788, 0.47387025, 0.47383252, 0.04485995, 0.004738334, 0.0026989444, 0.47385046, 0.47385046, 0.04486164, 0.0047385124, 0.0026990462, 0.47385046, 0.47385046, 0.044861637, 0.0047385124, 0.002699046, 0.47385046, 0.47385046, 0.04486163, 0.004738511, 0.0026990452, 0.47385043, 0.47385043, 0.044861615, 0.004738509, 0.002699044, 0.47385043, 0.47385043, 0.04486161, 0.0047385087, 0.0026990438, 0.47385043, 0.47385043, 0.044861607, 0.0047385083, 0.0026990436, 0.47385043, 0.47385043, 0.04486161, 0.0047385087, 0.0026990438, 0.47385043, 0.47385043, 0.044861604, 0.004738508, 0.0026990434, 0.47385043, 0.47385043, 0.0448616, 0.0047385073, 0.002699043, 0.47385043, 0.47385043, 0.0448616, 0.004738507, 0.002699043, 0.47385043, 0.47385043, 0.044861592, 0.0047385064, 0.0026990424, 0.47387028, 0.47383255, 0.044859894, 0.0047383267, 0.0026989402, 0.47392228, 0.47378573, 0.04485546, 0.004737858, 0.0026986732, 0.47398654, 0.47372785, 0.04484998, 0.0047372794, 0.0026983435, 0.4740386, 0.4736811, 0.044845548, 0.004736811, 0.002698077, 0.47405848, 0.4736632, 0.044843853, 0.0047366316, 0.0026979747, 0.5210978, 0.33350274, 0.13027461, 0.009913892, 0.0052109896, 0.5210978, 0.33350274, 0.13027461, 0.009913892, 0.0052109896, 0.5210978, 0.33350274, 0.1302746, 0.009913891, 0.005210989, 0.5210978, 0.33350274, 0.1302746, 0.009913888, 0.0052109878, 0.52109784, 0.33350274, 0.13027458, 0.009913887, 0.0052109873, 0.52109784, 0.33350274, 0.13027458, 0.009913887, 0.005210987, 0.5210979, 0.33350274, 0.13027458, 0.009913885, 0.005210986, 0.5210979, 0.3335027, 0.13027455, 0.009913881, 0.0052109845, 0.5210979, 0.3335027, 0.13027453, 0.009913881, 0.005210984, 0.5210979, 0.3335027, 0.13027453, 0.00991388, 0.0052109836, 0.5210979, 0.3335027, 0.13027453, 0.009913881, 0.005210984, 0.5210979, 0.3335027, 0.13027453, 0.009913879, 0.005210983, 0.5210979, 0.3335027, 0.13027452, 0.009913878, 0.005210982, 0.5210979, 0.3335027, 0.13027452, 0.009913878, 0.005210982, 0.5210979, 0.3335027, 0.13027452, 0.009913877, 0.0052109817, 0.52109796, 0.3335027, 0.1302745, 0.009913876, 0.005210981, 0.52109796, 0.3335027, 0.1302745, 0.009913875, 0.0052109803, 0.52109796, 0.3335027, 0.1302745, 0.009913874, 0.0052109803, 0.52109796, 0.3335027, 0.13027449, 0.009913874, 0.00521098, 0.52109796, 0.3335027, 0.13027449, 0.009913873, 0.00521098, 0.51307684, 0.32836935, 0.12826937, 0.020523116, 0.009761293, 0.51307684, 0.32836935, 0.12826937, 0.020523116, 0.009761293, 0.51307684, 0.32836935, 0.12826937, 0.020523114, 0.0097612925, 0.5130769, 0.32836935, 0.12826936, 0.02052311, 0.009761291, 0.5130769, 0.32836935, 0.12826934, 0.020523109, 0.009761289, 0.5130769, 0.32836935, 0.12826934, 0.020523107, 0.009761289, 0.51307696, 0.32836935, 0.12826933, 0.020523103, 0.009761286, 0.513077, 0.32836938, 0.12826933, 0.0205231, 0.009761285, 0.513077, 0.32836935, 0.12826933, 0.0205231, 0.009761284, 0.513077, 0.32836935, 0.12826931, 0.020523097, 0.009761283, 0.513077, 0.32836935, 0.12826933, 0.0205231, 0.009761284, 0.513077, 0.32836935, 0.12826931, 0.020523096, 0.009761283, 0.513077, 0.32836932, 0.1282693, 0.020523092, 0.00976128, 0.513077, 0.32836932, 0.1282693, 0.02052309, 0.00976128, 0.513077, 0.32836932, 0.12826928, 0.020523088, 0.009761279, 0.513077, 0.32836932, 0.12826928, 0.020523086, 0.009761278, 0.513077, 0.32836932, 0.12826927, 0.020523084, 0.009761278, 0.513077, 0.32836932, 0.12826927, 0.020523084, 0.009761277, 0.5130771, 0.32836932, 0.12826927, 0.020523084, 0.009761277, 0.5130771, 0.32836932, 0.12826927, 0.020523082, 0.009761276, 0.44856134, 0.44856134, 0.042467423, 0.042467423, 0.01794249, 0.44856134, 0.44856134, 0.042467423, 0.042467423, 0.01794249, 0.44856134, 0.44856134, 0.042467415, 0.042467415, 0.017942488, 0.44856134, 0.44856134, 0.042467408, 0.042467408, 0.017942484, 0.44856137, 0.44856137, 0.042467404, 0.042467404, 0.01794248, 0.44856137, 0.44856137, 0.042467404, 0.042467404, 0.01794248, 0.44856137, 0.44856137, 0.042467393, 0.042467393, 0.017942477, 0.44856137, 0.44856137, 0.042467386, 0.042467386, 0.017942473, 0.44856137, 0.44856137, 0.04246738, 0.04246738, 0.017942471, 0.4485614, 0.4485614, 0.042467378, 0.042467378, 0.01794247, 0.44856137, 0.44856137, 0.04246738, 0.04246738, 0.017942471, 0.4485614, 0.4485614, 0.042467374, 0.042467374, 0.017942468, 0.4485614, 0.4485614, 0.04246737, 0.04246737, 0.017942466, 0.4485614, 0.4485614, 0.04246737, 0.04246737, 0.017942466, 0.4485614, 0.4485614, 0.042467367, 0.042467367, 0.017942462, 0.4485614, 0.4485614, 0.04246736, 0.04246736, 0.01794246, 0.4485614, 0.4485614, 0.04246736, 0.04246736, 0.01794246, 0.4485614, 0.4485614, 0.042467356, 0.042467356, 0.017942458, 0.44856143, 0.44856143, 0.042467356, 0.042467356, 0.017942458, 0.4485615, 0.4485615, 0.042467356, 0.042467356, 0.017942458, 0.49390632, 0.3161002, 0.123476736, 0.046760444, 0.019756293, 0.49390632, 0.3161002, 0.123476736, 0.046760444, 0.019756293, 0.49390632, 0.3161002, 0.12347673, 0.04676044, 0.019756291, 0.49390635, 0.3161002, 0.12347672, 0.046760432, 0.019756287, 0.49390638, 0.3161002, 0.123476714, 0.04676043, 0.019756285, 0.49390638, 0.3161002, 0.12347671, 0.04676043, 0.019756285, 0.4939064, 0.3161002, 0.1234767, 0.04676042, 0.01975628, 0.49390644, 0.31610018, 0.123476684, 0.04676041, 0.019756276, 0.49390644, 0.31610018, 0.12347668, 0.04676041, 0.019756274, 0.49390647, 0.31610018, 0.12347667, 0.046760406, 0.019756272, 0.49390644, 0.31610018, 0.12347668, 0.04676041, 0.019756274, 0.49390647, 0.31610018, 0.12347667, 0.046760403, 0.019756272, 0.49390647, 0.31610018, 0.12347666, 0.0467604, 0.01975627, 0.4939065, 0.31610018, 0.12347666, 0.0467604, 0.019756269, 0.49390656, 0.3161002, 0.12347667, 0.0467604, 0.019756269, 0.4939066, 0.3161002, 0.12347666, 0.04676039, 0.019756267, 0.4939066, 0.3161002, 0.123476654, 0.04676039, 0.019756265, 0.4939066, 0.3161002, 0.123476654, 0.046760388, 0.019756265, 0.49390653, 0.31610018, 0.12347664, 0.046760384, 0.019756263, 0.49390653, 0.31610018, 0.12347663, 0.046760384, 0.019756261, 0.4631718, 0.2964301, 0.1157931, 0.1157931, 0.00881185, 0.4631718, 0.2964301, 0.1157931, 0.1157931, 0.00881185, 0.46317184, 0.2964301, 0.1157931, 0.1157931, 0.008811848, 0.46317187, 0.2964301, 0.11579309, 0.11579309, 0.008811847, 0.46317187, 0.2964301, 0.11579308, 0.11579308, 0.008811845, 0.46317193, 0.29643014, 0.115793094, 0.115793094, 0.008811846, 0.4631719, 0.2964301, 0.115793064, 0.115793064, 0.008811844, 0.46317193, 0.2964301, 0.11579306, 0.11579306, 0.008811842, 0.46317196, 0.2964301, 0.11579305, 0.11579305, 0.008811841, 0.46317196, 0.2964301, 0.11579304, 0.11579304, 0.00881184, 0.46317196, 0.2964301, 0.11579305, 0.11579305, 0.008811841, 0.46317196, 0.2964301, 0.11579304, 0.11579304, 0.00881184, 0.463172, 0.2964301, 0.115793034, 0.115793034, 0.008811838, 0.463172, 0.2964301, 0.115793034, 0.115793034, 0.008811838, 0.463172, 0.2964301, 0.11579303, 0.11579303, 0.008811837, 0.46317202, 0.2964301, 0.11579302, 0.11579302, 0.008811836, 0.46317202, 0.2964301, 0.11579302, 0.11579302, 0.008811835, 0.46317202, 0.2964301, 0.11579301, 0.11579301, 0.008811835, 0.46317202, 0.2964301, 0.11579301, 0.11579301, 0.008811835, 0.46317205, 0.2964301, 0.11579301, 0.11579301, 0.008811834, 0.36434186, 0.36434186, 0.2331789, 0.034493964, 0.003643427, 0.36434186, 0.36434186, 0.2331789, 0.034493964, 0.003643427, 0.36434186, 0.36434186, 0.2331789, 0.03449396, 0.0036434263, 0.36434186, 0.36434186, 0.23317888, 0.034493953, 0.0036434254, 0.36434186, 0.36434186, 0.23317888, 0.03449395, 0.003643425, 0.36434188, 0.36434188, 0.23317888, 0.03449395, 0.003643425, 0.3643419, 0.3643419, 0.2331789, 0.034493946, 0.0036434243, 0.36434188, 0.36434188, 0.23317887, 0.034493934, 0.0036434229, 0.36434188, 0.36434188, 0.23317885, 0.034493934, 0.0036434224, 0.36434188, 0.36434188, 0.23317885, 0.03449393, 0.0036434222, 0.36434188, 0.36434188, 0.23317885, 0.034493934, 0.0036434224, 0.36434188, 0.36434188, 0.23317885, 0.034493927, 0.003643422, 0.3643419, 0.3643419, 0.23317885, 0.034493923, 0.0036434212, 0.3643419, 0.3643419, 0.23317885, 0.034493923, 0.003643421, 0.3643419, 0.3643419, 0.23317884, 0.03449392, 0.0036434208, 0.3643419, 0.3643419, 0.23317884, 0.034493916, 0.00364342, 0.3643419, 0.3643419, 0.23317884, 0.034493916, 0.0036434198, 0.3643419, 0.3643419, 0.23317884, 0.034493912, 0.0036434196, 0.3643419, 0.3643419, 0.23317884, 0.034493912, 0.0036434196, 0.3643419, 0.3643419, 0.23317882, 0.03449391, 0.0036434191, 0.3723429, 0.3723429, 0.23829958, 0.014893747, 0.0021208618, 0.3723429, 0.3723429, 0.23829958, 0.014893747, 0.0021208618, 0.37234294, 0.37234294, 0.23829961, 0.014893747, 0.0021208616, 0.3723429, 0.3723429, 0.23829956, 0.014893741, 0.0021208609, 0.3723429, 0.3723429, 0.23829956, 0.0148937395, 0.0021208606, 0.3723429, 0.3723429, 0.23829956, 0.0148937395, 0.0021208604, 0.3723429, 0.3723429, 0.23829955, 0.014893736, 0.00212086, 0.37234294, 0.37234294, 0.23829953, 0.014893732, 0.0021208592, 0.37234294, 0.37234294, 0.23829953, 0.01489373, 0.002120859, 0.37234294, 0.37234294, 0.23829953, 0.014893729, 0.0021208588, 0.37234294, 0.37234294, 0.23829953, 0.01489373, 0.002120859, 0.37234294, 0.37234294, 0.23829952, 0.014893728, 0.0021208585, 0.37234294, 0.37234294, 0.23829952, 0.0148937255, 0.0021208583, 0.37234294, 0.37234294, 0.23829952, 0.0148937255, 0.0021208583, 0.37234294, 0.37234294, 0.23829952, 0.014893724, 0.0021208578, 0.37234294, 0.37234294, 0.2382995, 0.014893722, 0.0021208576, 0.37234297, 0.37234297, 0.2382995, 0.014893721, 0.0021208574, 0.37234297, 0.37234297, 0.2382995, 0.01489372, 0.0021208574, 0.37234297, 0.37234297, 0.2382995, 0.01489372, 0.0021208571, 0.37234297, 0.37234297, 0.2382995, 0.014893719, 0.0021208571, 0.44368318, 0.44368318, 0.110920936, 0.0015352396, 0.00017747372, 0.44368318, 0.44368318, 0.110920936, 0.0015352396, 0.00017747372, 0.44368318, 0.44368318, 0.11092093, 0.0015352394, 0.00017747369, 0.44368318, 0.44368318, 0.11092091, 0.0015352389, 0.00017747364, 0.44368318, 0.44368318, 0.110920906, 0.0015352387, 0.00017747362, 0.4436832, 0.4436832, 0.1109209, 0.0015352387, 0.0001774736, 0.4436832, 0.4436832, 0.11092088, 0.0015352382, 0.00017747354, 0.4436832, 0.4436832, 0.11092087, 0.0015352378, 0.0001774735, 0.4436832, 0.4436832, 0.11092086, 0.0015352377, 0.00017747347, 0.4436832, 0.4436832, 0.110920854, 0.0015352374, 0.00017747346, 0.4436832, 0.4436832, 0.11092086, 0.0015352377, 0.00017747347, 0.4436832, 0.4436832, 0.110920854, 0.0015352373, 0.00017747344, 0.44368324, 0.44368324, 0.11092085, 0.0015352371, 0.00017747341, 0.44368324, 0.44368324, 0.11092084, 0.001535237, 0.0001774734, 0.44368324, 0.44368324, 0.11092083, 0.0015352367, 0.00017747337, 0.44368324, 0.44368324, 0.110920824, 0.0015352365, 0.00017747334, 0.4436833, 0.4436833, 0.11092083, 0.0015352366, 0.00017747334, 0.4436833, 0.4436833, 0.11092083, 0.0015352366, 0.00017747334, 0.44368324, 0.44368324, 0.11092082, 0.0015352363, 0.00017747331, 0.44368324, 0.44368324, 0.11092081, 0.0015352361, 0.0001774733, 0.9999998, 1.7388004e-7, 1.08675025e-8, 0, 0, 0.5, 0.5, 0, 0, 0] ( elementSize = 5 interpolation = "vertex" ) float2[] primvars:st = [(0.57430136, 0.13210803), (0.5632045, 0.11032924), (0.626409, 0.064408496), (0.64860266, 0.10796607), (0.5459207, 0.0930455), (0.5918415, 0.02984102), (0.52414197, 0.08194867), (0.54828393, 0.0076473355), (0.5, 0.07812497), (0.5, -7.4505806e-8), (0.47585803, 0.08194867), (0.45171607, 0.0076473504), (0.45407927, 0.09304553), (0.4081585, 0.02984105), (0.43679553, 0.11032927), (0.37359107, 0.064408526), (0.4256987, 0.13210803), (0.3513974, 0.1079661), (0.421875, 0.15625), (0.34374997, 0.15625), (0.4256987, 0.18039197), (0.3513974, 0.2045339), (0.43679553, 0.20217073), (0.37359107, 0.24809146), (0.45407927, 0.21945447), (0.40815854, 0.28265893), (0.47585803, 0.2305513), (0.4517161, 0.3048526), (0.5, 0.234375), (0.5, 0.3125), (0.52414197, 0.2305513), (0.5482839, 0.3048526), (0.5459207, 0.21945447), (0.59184146, 0.28265893), (0.56320447, 0.20217073), (0.62640893, 0.24809146), (0.5743013, 0.18039197), (0.6486026, 0.2045339), (0.578125, 0.15625), (0.65625, 0.15625), (0.375, 0.3125), (0.3875, 0.3125), (0.3875, 0.350094), (0.375, 0.350094), (0.39999998, 0.3125), (0.39999998, 0.350094), (0.41249996, 0.3125), (0.41249996, 0.350094), (0.42499995, 0.3125), (0.42499995, 0.350094), (0.43749994, 0.3125), (0.43749994, 0.350094), (0.44999993, 0.3125), (0.44999993, 0.350094), (0.46249992, 0.3125), (0.46249992, 0.350094), (0.4749999, 0.3125), (0.4749999, 0.350094), (0.4874999, 0.3125), (0.4874999, 0.350094), (0.49999988, 0.3125), (0.49999988, 0.350094), (0.51249987, 0.3125), (0.51249987, 0.350094), (0.52499986, 0.3125), (0.52499986, 0.350094), (0.53749985, 0.3125), (0.53749985, 0.350094), (0.54999983, 0.3125), (0.54999983, 0.350094), (0.5624998, 0.3125), (0.5624998, 0.350094), (0.5749998, 0.3125), (0.5749998, 0.350094), (0.5874998, 0.3125), (0.5874998, 0.350094), (0.5999998, 0.3125), (0.5999998, 0.350094), (0.6124998, 0.3125), (0.6124998, 0.350094), (0.62499976, 0.3125), (0.62499976, 0.350094), (0.3875, 0.38768798), (0.375, 0.38768798), (0.39999998, 0.38768798), (0.41249996, 0.38768798), (0.42499995, 0.38768798), (0.43749994, 0.38768798), (0.44999993, 0.38768798), (0.46249992, 0.38768798), (0.4749999, 0.38768798), (0.4874999, 0.38768798), (0.49999988, 0.38768798), (0.51249987, 0.38768798), (0.52499986, 0.38768798), (0.53749985, 0.38768798), (0.54999983, 0.38768798), (0.5624998, 0.38768798), (0.5749998, 0.38768798), (0.5874998, 0.38768798), (0.5999998, 0.38768798), (0.6124998, 0.38768798), (0.62499976, 0.38768798), (0.3875, 0.42528197), (0.375, 0.42528197), (0.39999998, 0.42528197), (0.41249996, 0.42528197), (0.42499995, 0.42528197), (0.43749994, 0.42528197), (0.44999993, 0.42528197), (0.46249992, 0.42528197), (0.4749999, 0.42528197), (0.4874999, 0.42528197), (0.49999988, 0.42528197), (0.51249987, 0.42528197), (0.52499986, 0.42528197), (0.53749985, 0.42528197), (0.54999983, 0.42528197), (0.5624998, 0.42528197), (0.5749998, 0.42528197), (0.5874998, 0.42528197), (0.5999998, 0.42528197), (0.6124998, 0.42528197), (0.62499976, 0.42528197), (0.3875, 0.46287596), (0.375, 0.46287596), (0.39999998, 0.46287596), (0.41249996, 0.46287596), (0.42499995, 0.46287596), (0.43749994, 0.46287596), (0.44999993, 0.46287596), (0.46249992, 0.46287596), (0.4749999, 0.46287596), (0.4874999, 0.46287596), (0.49999988, 0.46287596), (0.51249987, 0.46287596), (0.52499986, 0.46287596), (0.53749985, 0.46287596), (0.54999983, 0.46287596), (0.5624998, 0.46287596), (0.5749998, 0.46287596), (0.5874998, 0.46287596), (0.5999998, 0.46287596), (0.6124998, 0.46287596), (0.62499976, 0.46287596), (0.3875, 0.5004699), (0.375, 0.5004699), (0.39999998, 0.5004699), (0.41249996, 0.5004699), (0.42499995, 0.5004699), (0.43749994, 0.5004699), (0.44999993, 0.5004699), (0.46249992, 0.5004699), (0.4749999, 0.5004699), (0.4874999, 0.5004699), (0.49999988, 0.5004699), (0.51249987, 0.5004699), (0.52499986, 0.5004699), (0.53749985, 0.5004699), (0.54999983, 0.5004699), (0.5624998, 0.5004699), (0.5749998, 0.5004699), (0.5874998, 0.5004699), (0.5999998, 0.5004699), (0.6124998, 0.5004699), (0.62499976, 0.5004699), (0.3875, 0.5380639), (0.375, 0.5380639), (0.39999998, 0.5380639), (0.41249996, 0.5380639), (0.42499995, 0.5380639), (0.43749994, 0.5380639), (0.44999993, 0.5380639), (0.46249992, 0.5380639), (0.4749999, 0.5380639), (0.4874999, 0.5380639), (0.49999988, 0.5380639), (0.51249987, 0.5380639), (0.52499986, 0.5380639), (0.53749985, 0.5380639), (0.54999983, 0.5380639), (0.5624998, 0.5380639), (0.5749998, 0.5380639), (0.5874998, 0.5380639), (0.5999998, 0.5380639), (0.6124998, 0.5380639), (0.62499976, 0.5380639), (0.3875, 0.57565784), (0.375, 0.57565784), (0.39999998, 0.57565784), (0.41249996, 0.57565784), (0.42499995, 0.57565784), (0.43749994, 0.57565784), (0.44999993, 0.57565784), (0.46249992, 0.57565784), (0.4749999, 0.57565784), (0.4874999, 0.57565784), (0.49999988, 0.57565784), (0.51249987, 0.57565784), (0.52499986, 0.57565784), (0.53749985, 0.57565784), (0.54999983, 0.57565784), (0.5624998, 0.57565784), (0.5749998, 0.57565784), (0.5874998, 0.57565784), (0.5999998, 0.57565784), (0.6124998, 0.57565784), (0.62499976, 0.57565784), (0.3875, 0.6132518), (0.375, 0.6132518), (0.39999998, 0.6132518), (0.41249996, 0.6132518), (0.42499995, 0.6132518), (0.43749994, 0.6132518), (0.44999993, 0.6132518), (0.46249992, 0.6132518), (0.4749999, 0.6132518), (0.4874999, 0.6132518), (0.49999988, 0.6132518), (0.51249987, 0.6132518), (0.52499986, 0.6132518), (0.53749985, 0.6132518), (0.54999983, 0.6132518), (0.5624998, 0.6132518), (0.5749998, 0.6132518), (0.5874998, 0.6132518), (0.5999998, 0.6132518), (0.6124998, 0.6132518), (0.62499976, 0.6132518), (0.3875, 0.65084577), (0.375, 0.65084577), (0.39999998, 0.65084577), (0.41249996, 0.65084577), (0.42499995, 0.65084577), (0.43749994, 0.65084577), (0.44999993, 0.65084577), (0.46249992, 0.65084577), (0.4749999, 0.65084577), (0.4874999, 0.65084577), (0.49999988, 0.65084577), (0.51249987, 0.65084577), (0.52499986, 0.65084577), (0.53749985, 0.65084577), (0.54999983, 0.65084577), (0.5624998, 0.65084577), (0.5749998, 0.65084577), (0.5874998, 0.65084577), (0.5999998, 0.65084577), (0.6124998, 0.65084577), (0.62499976, 0.65084577), (0.3875, 0.6884397), (0.375, 0.6884397), (0.39999998, 0.6884397), (0.41249996, 0.6884397), (0.42499995, 0.6884397), (0.43749994, 0.6884397), (0.44999993, 0.6884397), (0.46249992, 0.6884397), (0.4749999, 0.6884397), (0.4874999, 0.6884397), (0.49999988, 0.6884397), (0.51249987, 0.6884397), (0.52499986, 0.6884397), (0.53749985, 0.6884397), (0.54999983, 0.6884397), (0.5624998, 0.6884397), (0.5749998, 0.6884397), (0.5874998, 0.6884397), (0.5999998, 0.6884397), (0.6124998, 0.6884397), (0.62499976, 0.6884397), (0.6486026, 0.89203393), (0.62640893, 0.93559146), (0.56320447, 0.8896707), (0.5743013, 0.86789197), (0.59184146, 0.97015893), (0.5459207, 0.90695447), (0.5482839, 0.9923526), (0.52414197, 0.9180513), (0.5, 1), (0.5, 0.921875), (0.4517161, 0.9923526), (0.47585803, 0.9180513), (0.40815854, 0.97015893), (0.45407927, 0.90695447), (0.37359107, 0.93559146), (0.43679553, 0.8896707), (0.3513974, 0.89203393), (0.4256987, 0.86789197), (0.34374997, 0.84375), (0.421875, 0.84375), (0.3513974, 0.79546607), (0.4256987, 0.81960803), (0.37359107, 0.75190854), (0.43679553, 0.7978293), (0.4081585, 0.71734107), (0.45407927, 0.78054553), (0.45171607, 0.69514734), (0.47585803, 0.76944864), (0.5, 0.68749994), (0.5, 0.765625), (0.54828393, 0.69514734), (0.52414197, 0.76944864), (0.5918415, 0.717341), (0.5459207, 0.7805455), (0.626409, 0.7519085), (0.5632045, 0.7978293), (0.64860266, 0.79546607), (0.57430136, 0.81960803), (0.65625, 0.84375), (0.578125, 0.84375), (0.5, 0.15), (0.5, 0.8375)] ( customData = { dictionary Maya = { int UVSetIndex = 0 } } interpolation = "faceVarying" ) int[] primvars:st:indices = [0, 1, 2, 3, 1, 4, 5, 2, 4, 6, 7, 5, 6, 8, 9, 7, 8, 10, 11, 9, 10, 12, 13, 11, 12, 14, 15, 13, 14, 16, 17, 15, 16, 18, 19, 17, 18, 20, 21, 19, 20, 22, 23, 21, 22, 24, 25, 23, 24, 26, 27, 25, 26, 28, 29, 27, 28, 30, 31, 29, 30, 32, 33, 31, 32, 34, 35, 33, 34, 36, 37, 35, 36, 38, 39, 37, 38, 0, 3, 39, 40, 41, 42, 43, 41, 44, 45, 42, 44, 46, 47, 45, 46, 48, 49, 47, 48, 50, 51, 49, 50, 52, 53, 51, 52, 54, 55, 53, 54, 56, 57, 55, 56, 58, 59, 57, 58, 60, 61, 59, 60, 62, 63, 61, 62, 64, 65, 63, 64, 66, 67, 65, 66, 68, 69, 67, 68, 70, 71, 69, 70, 72, 73, 71, 72, 74, 75, 73, 74, 76, 77, 75, 76, 78, 79, 77, 78, 80, 81, 79, 43, 42, 82, 83, 42, 45, 84, 82, 45, 47, 85, 84, 47, 49, 86, 85, 49, 51, 87, 86, 51, 53, 88, 87, 53, 55, 89, 88, 55, 57, 90, 89, 57, 59, 91, 90, 59, 61, 92, 91, 61, 63, 93, 92, 63, 65, 94, 93, 65, 67, 95, 94, 67, 69, 96, 95, 69, 71, 97, 96, 71, 73, 98, 97, 73, 75, 99, 98, 75, 77, 100, 99, 77, 79, 101, 100, 79, 81, 102, 101, 83, 82, 103, 104, 82, 84, 105, 103, 84, 85, 106, 105, 85, 86, 107, 106, 86, 87, 108, 107, 87, 88, 109, 108, 88, 89, 110, 109, 89, 90, 111, 110, 90, 91, 112, 111, 91, 92, 113, 112, 92, 93, 114, 113, 93, 94, 115, 114, 94, 95, 116, 115, 95, 96, 117, 116, 96, 97, 118, 117, 97, 98, 119, 118, 98, 99, 120, 119, 99, 100, 121, 120, 100, 101, 122, 121, 101, 102, 123, 122, 104, 103, 124, 125, 103, 105, 126, 124, 105, 106, 127, 126, 106, 107, 128, 127, 107, 108, 129, 128, 108, 109, 130, 129, 109, 110, 131, 130, 110, 111, 132, 131, 111, 112, 133, 132, 112, 113, 134, 133, 113, 114, 135, 134, 114, 115, 136, 135, 115, 116, 137, 136, 116, 117, 138, 137, 117, 118, 139, 138, 118, 119, 140, 139, 119, 120, 141, 140, 120, 121, 142, 141, 121, 122, 143, 142, 122, 123, 144, 143, 125, 124, 145, 146, 124, 126, 147, 145, 126, 127, 148, 147, 127, 128, 149, 148, 128, 129, 150, 149, 129, 130, 151, 150, 130, 131, 152, 151, 131, 132, 153, 152, 132, 133, 154, 153, 133, 134, 155, 154, 134, 135, 156, 155, 135, 136, 157, 156, 136, 137, 158, 157, 137, 138, 159, 158, 138, 139, 160, 159, 139, 140, 161, 160, 140, 141, 162, 161, 141, 142, 163, 162, 142, 143, 164, 163, 143, 144, 165, 164, 146, 145, 166, 167, 145, 147, 168, 166, 147, 148, 169, 168, 148, 149, 170, 169, 149, 150, 171, 170, 150, 151, 172, 171, 151, 152, 173, 172, 152, 153, 174, 173, 153, 154, 175, 174, 154, 155, 176, 175, 155, 156, 177, 176, 156, 157, 178, 177, 157, 158, 179, 178, 158, 159, 180, 179, 159, 160, 181, 180, 160, 161, 182, 181, 161, 162, 183, 182, 162, 163, 184, 183, 163, 164, 185, 184, 164, 165, 186, 185, 167, 166, 187, 188, 166, 168, 189, 187, 168, 169, 190, 189, 169, 170, 191, 190, 170, 171, 192, 191, 171, 172, 193, 192, 172, 173, 194, 193, 173, 174, 195, 194, 174, 175, 196, 195, 175, 176, 197, 196, 176, 177, 198, 197, 177, 178, 199, 198, 178, 179, 200, 199, 179, 180, 201, 200, 180, 181, 202, 201, 181, 182, 203, 202, 182, 183, 204, 203, 183, 184, 205, 204, 184, 185, 206, 205, 185, 186, 207, 206, 188, 187, 208, 209, 187, 189, 210, 208, 189, 190, 211, 210, 190, 191, 212, 211, 191, 192, 213, 212, 192, 193, 214, 213, 193, 194, 215, 214, 194, 195, 216, 215, 195, 196, 217, 216, 196, 197, 218, 217, 197, 198, 219, 218, 198, 199, 220, 219, 199, 200, 221, 220, 200, 201, 222, 221, 201, 202, 223, 222, 202, 203, 224, 223, 203, 204, 225, 224, 204, 205, 226, 225, 205, 206, 227, 226, 206, 207, 228, 227, 209, 208, 229, 230, 208, 210, 231, 229, 210, 211, 232, 231, 211, 212, 233, 232, 212, 213, 234, 233, 213, 214, 235, 234, 214, 215, 236, 235, 215, 216, 237, 236, 216, 217, 238, 237, 217, 218, 239, 238, 218, 219, 240, 239, 219, 220, 241, 240, 220, 221, 242, 241, 221, 222, 243, 242, 222, 223, 244, 243, 223, 224, 245, 244, 224, 225, 246, 245, 225, 226, 247, 246, 226, 227, 248, 247, 227, 228, 249, 248, 230, 229, 250, 251, 229, 231, 252, 250, 231, 232, 253, 252, 232, 233, 254, 253, 233, 234, 255, 254, 234, 235, 256, 255, 235, 236, 257, 256, 236, 237, 258, 257, 237, 238, 259, 258, 238, 239, 260, 259, 239, 240, 261, 260, 240, 241, 262, 261, 241, 242, 263, 262, 242, 243, 264, 263, 243, 244, 265, 264, 244, 245, 266, 265, 245, 246, 267, 266, 246, 247, 268, 267, 247, 248, 269, 268, 248, 249, 270, 269, 271, 272, 273, 274, 272, 275, 276, 273, 275, 277, 278, 276, 277, 279, 280, 278, 279, 281, 282, 280, 281, 283, 284, 282, 283, 285, 286, 284, 285, 287, 288, 286, 287, 289, 290, 288, 289, 291, 292, 290, 291, 293, 294, 292, 293, 295, 296, 294, 295, 297, 298, 296, 297, 299, 300, 298, 299, 301, 302, 300, 301, 303, 304, 302, 303, 305, 306, 304, 305, 307, 308, 306, 307, 309, 310, 308, 309, 271, 274, 310, 1, 0, 311, 4, 1, 311, 6, 4, 311, 8, 6, 311, 10, 8, 311, 12, 10, 311, 14, 12, 311, 16, 14, 311, 18, 16, 311, 20, 18, 311, 22, 20, 311, 24, 22, 311, 26, 24, 311, 28, 26, 311, 30, 28, 311, 32, 30, 311, 34, 32, 311, 36, 34, 311, 38, 36, 311, 0, 38, 311, 274, 273, 312, 273, 276, 312, 276, 278, 312, 278, 280, 312, 280, 282, 312, 282, 284, 312, 284, 286, 312, 286, 288, 312, 288, 290, 312, 290, 292, 312, 292, 294, 312, 294, 296, 312, 296, 298, 312, 298, 300, 312, 300, 302, 312, 302, 304, 312, 304, 306, 312, 306, 308, 312, 308, 310, 312, 310, 274, 312] bool shadow:enable = 1 uniform token[] skel:joints = ["joint1", "joint1/joint2", "joint1/joint2/joint3", "joint1/joint2/joint3/joint4", "joint1/joint2/joint3/joint4/joint5"] uniform token skel:skinningMethod = "DualQuaternion" uniform token subdivisionScheme = "none" matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) uniform token[] xformOpOrder = ["xformOp:transform"] } def Skeleton "joint1" ( prepend apiSchemas = ["SkelBindingAPI"] customData = { dictionary Maya = { bool generated = 1 } } ) { uniform matrix4d[] bindTransforms = [( (-0.020420315587156734, 0, 0.9997914836161192, 0), (-1.2243914402252638e-16, -1, -2.50076741213904e-18, 0), (0.9997914836161192, -1.2246467991473532e-16, 0.020420315587156734, 0), (0.06181698728549858, 0, -0.02659854433002078, 1) ), ( (-3.434752482434078e-15, -2.5007674121386094e-18, 1, 0), (-1.2243914402252638e-16, -1, -2.50076741213904e-18, 0), (1, -1.224391440225264e-16, 3.434752482434078e-15, 0), (-1.3877787807814457e-17, 8.841297486311764e-34, 3.0000000000000004, 1) ), ( (-3.434752482434078e-15, -2.5007674121386094e-18, 1, 0), (-1.2243914402252638e-16, -1, -2.50076741213904e-18, 0), (1, -1.224391440225264e-16, 3.434752482434078e-15, 0), (0, 1.2722513410043386e-31, 6, 1) ), ( (-3.434752482434078e-15, -2.5007674121386094e-18, 1, 0), (-1.2243914402252638e-16, -1, -2.50076741213904e-18, 0), (1, -1.224391440225264e-16, 3.434752482434078e-15, 0), (9.185754640251975e-34, 1.5649926925511984e-31, 9, 1) ), ( (1, -1.224391440225264e-16, -1.1796119636642288e-16, 0), (1.2243914402252635e-16, 1, -1.1996391250259628e-16, 0), (2.2898349882893854e-16, 1.1996391250259626e-16, 1, 0), (1.2247672853669268e-33, 1.4186220167777685e-31, 10, 1) )] uniform token[] joints = ["joint1", "joint1/joint2", "joint1/joint2/joint3", "joint1/joint2/joint3/joint4", "joint1/joint2/joint3/joint4/joint5"] uniform matrix4d[] restTransforms = [( (-0.020420315587156734, 0, 0.9997914836161192, 0), (-1.2243914402252638e-16, -1, -2.50076741213904e-18, 0), (0.9997914836161192, -1.2246467991473532e-16, 0.020420315587156734, 0), (0.06181698728549858, 0, -0.02659854433002078, 1) ), ( (0.9997914836161194, 0, 0.0204203155871533, 0), (0, 1, 0, 0), (-0.0204203155871533, 0, 0.9997914836161194, 0), (3.0272297713351164, -9.860761315262648e-32, 7.979727989493313e-16, 1) ), ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (3, -7.502302236417219e-18, 1.0318135235110049e-14, 1) ), ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (3, -7.50230223641712e-18, 1.0304257447302234e-14, 1) ), ( (-3.552713678800501e-15, 0, 1, 0), (-1.2246467991473532e-16, -1, -4.437342591868191e-31, 0), (1, -1.2246467991473532e-16, 3.6637359812630166e-15, 0), (1, -2.5007674121390154e-18, 3.434752482434078e-15, 1) )] def SkelAnimation "Animation" { uniform token[] joints = ["joint1", "joint1/joint2", "joint1/joint2/joint3", "joint1/joint2/joint3/joint4", "joint1/joint2/joint3/joint4/joint5"] quatf[] rotations = [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9999479, 1.9756056e-36, -0.010210691, -8.708908e-37), (1, 0, 0, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)] quatf[] rotations.timeSamples = { 1: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9999479, 1.9756056e-36, -0.010210691, -8.708908e-37), (1, 0, 0, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)], 2: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9997641, 6.236958e-33, -0.021720996, 3.2909726e-35), (0.99999624, 0, 0.0027424013, -3.8518746e-34), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 3: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9986183, 5.8084842e-33, -0.05255021, -3.3373637e-34), (0.99994415, 1.2349047e-32, 0.010570527, -1.7324539e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.958437e-17, 0.7071068)], 4: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9952759, 8.419972e-36, -0.09708719, 1.0719098e-34), (0.99973816, 6.126507e-33, 0.022884618, -2.4343037e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 5: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.988742, -1.2090756e-35, -0.14963076, -1.38100015e-33), (0.99923605, 6.168866e-33, 0.039081782, -7.4085352e-34), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -9.607839e-17, 0.7071068)], 6: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9788749, 5.472309e-33, -0.20446007, -6.8019916e-34), (0.9982843, -6.460354e-33, 0.05855423, -2.5918643e-34), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)], 7: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.96668077, -2.5870152e-18, -0.25598502, 9.769391e-18), (0.9967394, -2.8562294e-33, 0.08068847, 1.3613418e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, 3.8818763e-18, 0.7071068)], 8: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.95428663, 5.9712946e-33, -0.29889306, 1.958205e-33), (0.9944864, 0, 0.10486588, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 9: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.94461256, 8.614725e-36, -0.32818753, 7.714734e-35), (0.991453, 6.0044964e-33, 0.13046467, -1.6081013e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, 5.904622e-18, 0.7071068)], 10: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.94077206, 3.717885e-35, -0.33903977, 1.0155367e-34), (0.98762035, 0, 0.15686323, 3.120114e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, 3.8818763e-18, 0.7071068)], 11: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9475057, 2.7740445e-33, -0.3197388, 1.0104582e-33), (0.98303014, 6.32211e-33, 0.18344428, -1.2847009e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 12: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.96377945, 2.030969e-35, -0.26670045, 3.223818e-33), (0.9777874, 0, 0.20959933, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)], 13: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9823428, 2.5188462e-35, -0.18709004, 1.1281289e-34), (0.9720599, -6.564091e-33, 0.23473288, 3.8275936e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -9.041538e-17, 0.7071068)], 14: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.99605024, -5.8366924e-37, -0.088791266, 1.0322589e-34), (0.96607393, 8.521877e-33, 0.25826564, -1.5549254e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -5.2742998e-17, 0.7071068)], 15: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9998168, 6.591292e-39, 0.019142117, 2.892867e-34), (0.9601061, -2.4566083e-33, 0.27963609, 5.7946145e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)], 16: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.99192166, 2.9470727e-34, 0.12685224, 1.6248996e-33), (0.9544722, -3.8604024e-33, 0.2983, -5.2504598e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 17: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9744616, 3.76873e-34, 0.2245543, 1.7342746e-33), (0.9495131, -3.956008e-18, 0.3137275, -1.197307e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -7.4622756e-17, 0.7071068)], 18: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.95286465, 2.7759677e-33, 0.3033958, 5.5855252e-33), (0.9455773, -4.273506e-18, 0.3253975, -1.2418443e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -5.7019346e-17, 0.7071068)], 19: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.93457264, -4.4242698e-33, 0.35577238, -6.938029e-34), (0.9430011, 1.6338732e-33, 0.33278978, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -8.54472e-17, 0.7071068)], 20: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9271051, -3.814175e-35, 0.37480146, 1.1338883e-34), (0.94208485, 2.8210937e-33, 0.33537456, -5.508395e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 21: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.93118745, -5.4463813e-18, 0.36454076, -1.3912303e-17), (0.94208485, -4.556414e-18, 0.33537456, -1.2799207e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -5.4996595e-17, 0.7071068)], 22: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.94169426, -3.3711516e-35, 0.3364699, 1.1016753e-34), (0.94208485, 0, 0.33537456, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.46769e-17, 0.7071068)], 23: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.95563346, -3.2409287e-33, 0.29455864, 1.6095242e-33), (0.94208485, 1.635462e-33, 0.33537456, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 24: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.97005093, -6.9114435e-37, 0.24290179, 9.65094e-35), (0.94208485, -4.556414e-18, 0.33537456, -1.2799207e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 25: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.98256904, -2.9500564e-34, 0.18589815, -1.4612545e-33), (0.94208485, 0, 0.33537456, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.958982e-17, 0.7071068)], 26: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9917404, -1.2776737e-35, 0.12826133, 9.540489e-35), (0.94208485, -1.8695705e-33, 0.33537456, -2.605372e-33), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 27: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9971905, -7.216408e-36, 0.07490789, 9.706919e-35), (0.94208485, 0, 0.33537456, 0), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 28: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.99952555, 1.0151991e-18, 0.03080118, -3.1284174e-20), (0.94208485, 1.6482417e-34, 0.33537456, -3.5473118e-34), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -4.3297806e-17, 0.7071068)], 29: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.99999964, 2.7427435e-20, 0.00083214947, -2.2823734e-23), (0.94208485, -4.556414e-18, 0.33537456, -1.2799207e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -5.677449e-17, 0.7071068)], 30: [(6.123234e-17, 0.69984984, -4.3737645e-17, 0.71428996), (0.9999479, 1.9756056e-36, -0.010210691, -8.708908e-37), (0.94208485, -4.556414e-18, 0.33537456, -1.2799207e-17), (1, 0, 0, 0), (6.123235e-17, 0.7071068, -6.772901e-17, 0.7071068)], } half3[] scales = [(1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1)] float3[] translations = [(0.061816987, 0, -0.026598545), (3.0272298, -9.8607613e-32, 7.910339e-16), (3, -2.929001e-18, 1.0318135e-14), (3, -7.502302e-18, 1.03042574e-14), (1, -2.5007674e-18, 3.4347525e-15)] } } } }
omniverse-code/kit/exts/omni.graph.nodes/omni/graph/nodes/tests/data/SettingsWithoutGraphWithOver_v1_1.usda
#usda 1.0 ( ) def World "World" { def ComputeNode "NoOp" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } over "layeredGraph" { def ComputeGraph "innerGraph" { def ComputeGraphSettings "computegraphSettings" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 1) custom token flatCacheBacking = "StageWithHistory" custom token pipelineStage = "pipelineStagePreRender" } def ComputeNode "NoOpOver" { custom token node:type = "omni.graph.nodes.Noop" custom int node:typeVersion = 1 } } } }