60000356 Edit/Change the triangle in the GroundSurface

Article 60000356
Type Wish
Product Engine
Version 6010
Date Added 12/17/2007 12:00:00 AM
Fixed (12/19/2007 12:00:00 AM)
Submitted by Vissarion Giorspyros

Summary

I would like to be able to edit/change/add the triangle in the GroundSurface object.

Solution

The problem with the triangles of the vdGroundSurface object was that they were recalculated when the update method was called of the object even if the user had modified these triangles. In order to provide solution to this issue we exported in 6011 version a new property of the vdGroundSurface called "LockTriangles". This property's default value is false. When the user modifies the triangles he can then set this value to true and the triangles will stay as the user provided them and they will not be recalculated. The user can unlock the triangles if he wants our code to recalculate them. This property is serializable in VDML/VDCL format among the triangles that the user has set so if the drawing is saved then it will be opened with the triangles that the user passed.

Send comments on this topic.