STK Graphics PrimitivesSend comments on this topic.
AutomaticallyComputeBoundingSphere Property (IAgStkGraphicsPrimitive)
See Also
Windows





Windows & Linux

Description

Gets or sets if the primitive's Bounding Sphere is automatically computed.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property AutomaticallyComputeBoundingSphere() As Boolean
[C#]
public bool AutomaticallyComputeBoundingSphere {get; set;}
[Managed C++]
public: __property bool get_AutomaticallyComputeBoundingSphere();
public: __property void set_AutomaticallyComputeBoundingSphere( bool );
[Unmanaged C++]
public: HRESULT get_AutomaticallyComputeBoundingSphere(
    VARIANT_BOOL * pRetVal
);
public: HRESULT put_AutomaticallyComputeBoundingSphere(
    VARIANT_BOOL AutomaticallyComputeBoundingSphere
);
[Java]
public bool getAutomaticallyComputeBoundingSphere();
public void setAutomaticallyComputeBoundingSphere(
    bool
);
[Python - STK API ]
@property
def AutomaticallyComputeBoundingSphere(self) -> bool:

@AutomaticallyComputeBoundingSphere.setter
def AutomaticallyComputeBoundingSphere(self, AutomaticallyComputeBoundingSphere:bool) -> None:

Remarks

A primitive's Bounding Sphere is used for visibility tests to improve rendering performance. When AutomaticallyComputeBoundingSphere is true, the sphere is automatically computed when a primitive's geometry or position is modified due to a Set or SetPartial call. Otherwise, it is the caller's responsibility to set the primitive's Bounding Sphere.

A user may set this property to false in cases when they can determine a Bounding Sphere that encompasses everywhere a dynamic primitive may move to. This can improve performance by eliminating the overhead associated with re-computing the bounding sphere and updating the primitive manager's spatial data structures.

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.