calculate triangle field from dll