Selva Compute API Reference - v2.1.0
    Preparing search index...
    Index

    Constructors

    • Parameters

      • density: number

      Returns MeshingParameters

    • Parameters

      • density: number
      • minimumEdgeLength: number

      Returns MeshingParameters

    Properties

    closedObjectPostProcess: boolean

    Gets or sets a value indicating whether or not to post process non-closed meshes that should be closed. If the Brep being meshed is closed, JaggedSeams = false, and ClosedObjectPostProcess = true, and the resulting mesh is not closed, then a post meshing process is applied to find and close gaps in the mesh. Typically the resulting mesh is not closed because the input Brep has a geometric flaw, like loops in trimming curve.

    computeCurvature: boolean

    Gets or sets a value indicating whether or not surface curvature data will be embedded in the mesh.

    gridAmplification: number

    Gets or sets the grid amplification factor. Values lower than 1.0 will decrease the number of initial quads, values higher than 1.0 will increase the number of initial quads.

    gridAngle: number

    Gets or sets the maximum allowed angle difference (in radians) for a single sampling quad. The angle pertains to the surface normals.

    gridAspectRatio: number

    Gets or sets the maximum allowed aspect ratio of sampling quads.

    gridMaxCount: number

    Gets or sets the maximum number of grid quads in the initial sampling grid.

    gridMinCount: number

    Gets or sets the minimum number of grid quads in the initial sampling grid.

    jaggedSeams: boolean

    Gets or sets whether or not the mesh is allowed to have jagged seams. When this flag is set to true, meshes on either side of a Brep Edge will not match up.

    maximumEdgeLength: number

    Gets or sets the maximum allowed mesh edge length.

    minimumEdgeLength: number

    Gets or sets the minimum allowed mesh edge length.

    minimumTolerance: number

    Gets or sets the minimum tolerance.

    refineAngle: number

    Gets or sets the mesh parameter refine angle in radians.

    refineGrid: boolean

    Gets or sets a value indicating whether or not the sampling grid can be refined when certain tolerances are not met.

    relativeTolerance: number

    Gets or sets the relative tolerance.

    simplePlanes: boolean

    Gets or sets a value indicating whether or not planar areas are allowed to be meshed in a simplified manner.

    textureRange: number

    Gets or sets how and if textures will be packed.

    tolerance: number

    Gets or sets the maximum allowed edge deviation. This tolerance is measured between the center of the mesh edge and the surface.

    Methods

    • ...

      Returns object

    • ...

      Returns object

    • Parameters

      • json: object

        A js object in the following format (values are orientative):

        	{	TextureRange: 2,
        JaggedSeams: false,
        RefineGrid: true,
        SimplePlanes: false,
        ComputeCurvature: false,
        ClosedObjectPostProcess: false,
        GridMinCount: 0,
        GridMaxCount: 0,
        GridAngle: 0.3490658503988659,
        GridAspectRatio: 6,
        GridAmplification: 1,
        Tolerance: 0,
        MinimumTolerance: 0,
        RelativeTolerance: 0,
        MinimumEdgeLength: 0.0001,
        MaximumEdgeLength: 0,
        RefineAngle: 0.3490658503988659
        }

      Returns MeshingParameters

      Creates a MeshingParameters object from json data