Warping


The Space Warping Component (WARP), uses the ACIS law functionality to warp entities and parts. Warping includes modifications such as warping according to an input law (simply called "warping"), bending, twisting, and nonuniform scaling. Laws also provide support for space warping in conic surfaces and conic trough surfaces.

WARP provides APIs and Scheme extensions to support warping with laws. (See the documentation for the Laws Component for details on the law classes.)

The low-level implementation of laws in Scheme uses APIs and law string parsing to create C++ classes from law function strings enclosed in quotation marks. In Scheme, the strings used to define laws are not case-sensitive, but when returned from a law function, the lower-case letters are converted to upper-case letters.

The law functions are very similar to common mathematical notation. Laws are parsed the same as mathematical equations are. For example, the equation "f(x,y) = x2+cos(x)-sin(y)" becomes the law function X^2+COS(X)-SIN(Y), with a two-dimensional domain and a one-dimensional range.

Topics include:

[Top]