Navigation: Scripting Reference Manual > Functions & Subroutines > SetDotProdSurfTrim

 

SetDotProdSurfTrim

 

Contact Us: fredsupport@photonengr.com

 

Description

This subroutine sets the advanced dot-product surface trimming specification for a surface node (Faceted Surface excluded).

 

 

Syntax

SetDotProdSurfTrim surfNode, trimType, bSign, dX, dY, dZ

 

 

Parameters

surfNode As Long

Node number of the surface whose dot product trimming specification is being set.

 

trimType As String

This argument specifies the trimming type.  Specifications are:

"No Test"

"Position Test"

"Direction Test"

"X Test"

"Y Test"

"Z Test"

 

bSign As Boolean

This argument specifies the sign of the dot product specification.  True = Positive and False = Negative.

 

dX As Double

This argument specifies the X-component of the reference vector.

 

dY As Double

This argument specifies the Y-component of the reference vector.

 

dZ As Double

This argument specifies the Z-component of the reference vector.

 

 

Example

The following example locates a surface node, initializes the dot product trimming specification arguments and then sets the specification to the surface node.

 

Sub Main

 

    ClearOutputWindow

 

    Dim sNode As Long

    sNode = FindFullName( "Geometry.Plane.Surface" )

 

    Dim trimType As String

    Dim bSign As Boolean

    Dim dX As Double, dY As Double, dZ As Double

    trimType = "Position Test"

    bSign    = False

    dX       = 0.1

    dY       = 0.3

    dZ       = 0.8

    SetDotProdSurfTrim( sNode, trimType, bSign, dX, dY, dZ )

 

    Update

 

End Sub

 

 

See Also

GetDotProdSurfTrim

 

 

 

 

 

Copyright © Photon Engineering, LLC