IntersectSurface Method (ObjectId, ObjectId, IPoint, Boolean, Double, Double)

Intersects a ray with a surface.

Namespace: Autodesk.Civil.Runtime
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0

Syntax

C#

public IPoint IntersectSurface(
	ObjectId surfaceId,
	ObjectId alignmentId,
	IPoint origin,
	bool lookRight,
	double slope,
	double maxDistance
)

Visual Basic

Public Function IntersectSurface ( _
	surfaceId As ObjectId, _
	alignmentId As ObjectId, _
	origin As IPoint, _
	lookRight As Boolean, _
	slope As Double, _
	maxDistance As Double _
) As IPoint

Visual C++

public:
IPoint^ IntersectSurface(
	ObjectId surfaceId, 
	ObjectId alignmentId, 
	IPoint^ origin, 
	bool lookRight, 
	double slope, 
	double maxDistance
)

Parameters

surfaceId
Type: ObjectId
Intersect the ray with this surface.
alignmentId
Type: ObjectId
Project the ray perpendicular to this alignment.
origin
Type: Autodesk.Civil.DatabaseServices.IPoint
Origin of the intersection ray.
lookRight
Type: System.Boolean
Project the ray to the right if true, to the left if false.
slope
Type: System.Double
Slope of the ray.
maxDistance
Type: System.Double
Maximum distance to project the ray.

Return Value

Returns the point of intersection.

See Also