SceneControl loads the 3DS file as a symbol

Source: Internet
Author: User

SceneControl loads the 3DS file as a symbol

IGraphicsContainer3D pGC3D = (IGraphicsContainer3D) SC1.Scene. BasicGraphicsLayer;

PGC3D. DeleteAllElements ();

 

IPoint pPoint = new PointClass ();

(IZAware) pPoint). ZAware = true;

PPoint. PutCoords (443153.795329851, 4161998.98909512 );

PPoint. z= 100;

 

IMarkerSymbol pSimpleMarkerSymbol = new SimpleMarker3DSymbolClass ();

IMarker3DSymbol pMarker3DSymbol = new Marker3DSymbolClass ();

PMarker3DSymbol. CreateFromFile (@ "D:" Sketchup "yuan.3ds ");

PMarker3DSymbol. UseMaterialDraping = true;

 

// IMarkerPlacement pMarkerPlacement = pMarker3DSymbol as IMarkerPlacement; // cannot be used here (IMarkerPlacement) pMarker3DSymbol;

IMarkerSymbol pMarkerSymbol = (IMarkerSymbol) pMarker3DSymbol;

PMarkerSymbol. Size = 70;

PMarkerSymbol. Angle = 90;

 

(ISimpleMarker3DSymbol) pSimpleMarkerSymbol). Style = esriSimple3DMarkerStyle. esriS3DMSSphere;

(ISimpleMarker3DSymbol) pSimpleMarkerSymbol). ResolutionQuality = 1.0;

PSimpleMarkerSymbol. Size = 700;

IElement pElement = new MarkerElementClass ();

(IMarkerElement) pElement). Symbol = (IMarkerSymbol) pMarker3DSymbol;

PElement. Geometry = pPoint;

 

PGC3D. AddElement (IElement) pElement );

SC1.SceneGraph. RefreshViewers ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.