/*----------------------------------------------------------------------------- File: UgFundSolid2Screen.c Description: demo solid coords to screen coords PTC File Date Version Author Vers Comment --------- ------- -------- ----- --------------------------------------------- 04-dec-97 H-02-02 AWY/CHI $$1 setup -----------------------------------------------------------------------------*/ /*---------------------- Pro/Toolkit Includes ------------------------*/ #include #include #include #include /*---------------------- Application Includes ------------------------*/ #include /*---------------------- Function Prototypes -------------------------*/ void UserSolidToScreen(); void UserSolidToScreen( ProSolid solid, ProPoint3d solid_point, ProPoint3d screen_point) { ProMatrix view_matrix; ProError status; status = ProViewMatrixGet(solid,NULL,view_matrix); ERROR_CHECK("UserSolidToScreen", "ProViewMatrixGet()", status); status = ProPntTrfEval(solid_point,view_matrix,screen_point); ERROR_CHECK("UserSolidToScreen", "ProPntTrfEval()", status); }