Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: Follow the sample code for generating a roof with the code below, write code to generate 2,000 random 3D points on the surface of

Python: Follow the sample code for generating a roof with the code below, write code to generate 2,000 random 3D points on the surface of a dining table which is 1.2 m tall, 1.5 m wide, and 3.6 m long. (code will be used in ArcScene to look at 3D points)

This Python program generates two text files for:

(1) LiDAR points for ground and vegetation over a topographic # slope defined by equation z = 1 - x^2 (slope.txt).

(2) LiDAR points on a gable roof defined by z = 1 + x (left side) # and z = 1 - x (right side) (roof.txt)

image text in transcribed

import random outfilel = open (r"c:\temp\4590\Shapes\slope.txt", "w") outfile2 = open(r"c:\temp\4590\Shapes oof.txt", "W") outfilel.write("ID, X, Y, Z" + " ") outfile2.write("ID, X, Y, Z" + " ") # (1) LiDAR points for ground and vegetation over a topographic slope # i = 0 while i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

e. What are notable achievements of the group?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago