Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Shading Functions

  • Last UpdatedNov 27, 2023
  • 1 minute read

shd_new(ViewHandle)

The function creates a shaded view given a handle to a view. If a shaded view already exists then an exception is set, as only one shaded view can exist at a time.

Input parameters:

ViewHandle

The handle to the view to show in shaded mode.

Returned value:

[]

None

Exceptions:

kcs_ArgumentError

kcs_DrawingNotCurrent

kcs_HandleInvalid

kcs_Error

kcs_ShadedViewExists

shd_projection_set(TransformationMatrix)

The function sets the projection for a shaded view given a transformation matrix. If no shaded view exists then an exception is set.

Input parameters:

TransformationMatrix

KcsTransformation3D.Transformation3D

The transformation matrix

Returned value:

[]

None

Exceptions:

kcs_ArgumentError

kcs_DrawingNotCurrent

kcs_Error

kcs_NoShadedViewExists

shd_autoscale()

The function auto scales a shaded view. If no shaded view exists then an exception is set.

Input parameters:

Returned value:

[]

None

Exceptions:

kcs_ArgumentError

kcs_DrawingNotCurrent

kcs_Error

kcs_NoShadedViewExists

shd_zoom_box(BoxMinPoint, BoxMaxPoint)

The function zooms a shaded view given the min and max points of a 3D box. If no shaded view exists then an exception is set.

Input parameters:

BoxMinPoint

KcsPoint3D.Point3D

BoxMaxPoint

KcsPoint3D.Point3D

Returned value:

[]

None

Exceptions:

kcs_ArgumentError

kcs_DrawingNotCurrent

kcs_Error

kcs_NoShadedViewExists

Related Links
TitleResults for “How to create a CRG?”Also Available in