Overview Schemas Index

GEOMETRY_SCHEMA (jsdai.SGeometry_schema)


FUNCTION default_b_spline_knot_mult
          (degree : INTEGER, up_knots : INTEGER, uniform : knot_type) : LIST [2:?] OF INTEGER;

LOCAL
     knot_mult : LIST [1:up_knots] OF INTEGER;
   END_LOCAL;
        
   IF  uniform = uniform_knots THEN
     knot_mult := [1:up_knots];
   ELSE
     IF  uniform = quasi_uniform_knots THEN
       knot_mult := [1:up_knots];
       knot_mult[1] := degree + 1;
       knot_mult[up_knots] := degree + 1;
     ELSE
       IF uniform = piecewise_bezier_knots THEN
         knot_mult := [degree:up_knots];
         knot_mult[1] := degree + 1;
         knot_mult[up_knots] := degree + 1;
       ELSE
         knot_mult := [0:up_knots];
       END_IF;
     END_IF;
   END_IF;
   RETURN(knot_mult);

END_FUNCTION; -- default_b_spline_knot_mult

public class FDefault_b_spline_knot_mult
          public static Value run(SdaiContext _context, Value degree, Value up_knots, Value uniform)