SilverScreen Solid Modeler

point_vs_solid

point_vs_solid

Previous topic Next topic  

point_vs_solid

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int point_vs_solid ( char *path, SS_XYZ *p )

 

char   *path;      // path to object

SS_XYZ *p;         // address of 3D point

 

 




Synopsis

#include "silver.h"

 

The point_vs_solid function tests the relationship between the point at p , and the solid object specified by path. The object must be a valid solid.

 

 

Parameters

path is a null-terminated string that contains the full path to a SilverScreen object. p is the address of a 3D point.

 

 

Return Value

point_vs_solid returns one of:

 

Constant

Meaning

NOT_FOUND

The specified object was not found

NOT_SOLID

The specified object is not a valid solid

FAILURE

The specified solid is improperly formed

ON_VERTEX

The point is a vertex of the solid

ON_EDGE

The point lies on an edge of the solid

PT_INSIDE

The point lies inside the solid

PT_OUTSIDE

The point lies outside the solid