Hide Table of Contents
GetSurfaceNodesAndNormals Method (ICWMesh)

Gets the nodes and normal vectors at the surface of this solid mesh.

.NET Syntax

Visual Basic (Declaration) 
Function GetSurfaceNodesAndNormals( _
   ByRef VarNodeIDs As System.Object, _
   ByRef VarNumNormals As System.Object, _
   ByRef VarNormalVecs As System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ICWMesh
Dim VarNodeIDs As System.Object
Dim VarNumNormals As System.Object
Dim VarNormalVecs As System.Object
Dim value As System.Integer
 
value = instance.GetSurfaceNodesAndNormals(VarNodeIDs, VarNumNormals, VarNormalVecs)
C# 
System.int GetSurfaceNodesAndNormals( 
   out System.object VarNodeIDs,
   out System.object VarNumNormals,
   out System.object VarNormalVecs
)
C++/CLI 
System.int GetSurfaceNodesAndNormals( 
&   [Out] System.Object^ VarNodeIDs,
&   [Out] System.Object^ VarNumNormals,
&   [Out] System.Object^ VarNormalVecs
) 

Parameters

VarNodeIDs
Array of node IDs (see Remarks)
VarNumNormals
Array of numbers (1, 2 or 3) of normal vectors for the corresponding node ID in VarNodeIDs (see Remarks)
VarNormalVecs
Array of normal vectors (see Remarks)

Return Value

Number of nodes

Example

Remarks

You must set ICWMesh::Quality to swsMeshQuality_e.swsMeshQualityHigh before calling this method.

Each node can have one or more normal vectors. For example, for a meshed cube:

Node location Number of normal vectors
Middle of side 1
Edge 2
Vertex 3

VarNormalVecs contains an array of all of the normal vectors:

[

     xa1, ya1, za1, xb1, yb1, zb1, xc1, yc1, zc1,

     xa2, ya2, za2,

     ...,

     xai, yai, zai

]

where:

  • x, y, and z denote location
  • a, b, and c denote normal vectors
  • xai, yai, zai denote the location of the ath normal vector for the ith node

Use VarNumNormals to calculate which vectors in VarNormalVecs map to the node IDs in VarNodeIDs.

 

See Also

Availability

SOLIDWORKS Simulation API 2016 SP05


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetSurfaceNodesAndNormals Method (ICWMesh)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.