@vectorlookup

tinh
tinh Altair Community Member
edited October 2020 in Community Q&A

Dear all,

I am doing some templates for checking as detail below but it is not working

Could somebody show me why or please test it on newest updates of HW ( i run it on HW 12 hot fix 115)

 

*nodes()

*before()

*vectortablereset(0,1.0) #Tolerance is 1.0

*vectortablestore(1,1,0,0,1)

*vectortablestore(2,2,0,0,2)

*vectortablestore(3,3,0,0,3)

*after()

*uservariableset('#Found',[@vectorlookupnotkey(0,0,0,0)])

*field(integer,#Found,0)

*output()

 

it should return 1 because distance between (0,0,0) and (1,0,0) is within tolerence

but it return 0 always even if i increased tolerance

Answers

  • tinh
    tinh Altair Community Member
    edited February 2017

    Dear all,

     

    I am doing some templates for checking as detail below but it is not working

     

     

    Could somebody show me why or please test it on newest updates of HW ( i run it on HW 12 hot fix 115)

     

     

     

     

     

    *nodes()

     

     

    *before()

     

     

    *vectortablereset(0,1.0) #Tolerance is 1.0

     

     

    *vectortablestore(1,1,0,0,1)

     

     

    *vectortablestore(2,2,0,0,2)

     

     

    *vectortablestore(3,3,0,0,3)

     

     

    *after()

     

     

    *uservariableset('#Found',[@vectorlookupnotkey(0,0,0,0)])

     

     

    *field(integer,#Found,0)

     

     

    *output()

     

     

     

     

     

    it should return 1 because distance between (0,0,0) and (1,0,0) is within tolerence

     

     

    but it return 0 always even if i increased tolerance

     

     

     

    Finally found the reason after 2 years thinking: node tolerance is considered regardless the value set by *vectortablereset()