Skip to content

fossil_file_stl_object

FOSSIL, STL file class definition.

Source: src/lib/fossil_file_stl_object.f90

Dependencies

Contents

Derived Types

file_stl_object

FOSSIL STL file class.

Components

NameTypeAttributesDescription
file_namecharacter(len=:)allocatableFile name
file_unitinteger(kind=I4P)File unit.
headercharacter(len=FRLEN)File header.
is_asciilogicalSentinel to check if file is ASCII.
is_openlogicalSentinel to check if file is open.

Type-Bound Procedures

NameAttributesDescription
close_filepass(self)Close file.
destroypass(self)Destroy file.
initializepass(self)Initialize file.
load_from_filepass(self)Load from file.
open_filepass(self)Open file, once initialized.
save_aabb_into_filepass(self)Save AABB into file.
save_into_filepass(self)Save into file.
statisticspass(self)Return STL statistics.
assignment(=)Overload =.
file_stl_assign_file_stlpass(lhs)Operator =.
load_facets_number_from_filepass(self)Load facets number from file.
load_header_from_filepass(self)Load header from file.
save_header_into_filepass(self)Save header into file.
save_trailer_into_filepass(self)Save trailer into file.

Subroutines

close_file

Close file.

fortran
subroutine close_file(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.

Call graph

destroy

Destroy file.

Attributes: elemental

fortran
subroutine destroy(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.

Call graph

initialize

Initialize file.

Attributes: elemental

fortran
subroutine initialize(self, skip_destroy, file_name, is_ascii)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
skip_destroylogicalinoptionalFlag to skip destroy file.
file_namecharacter(len=*)inoptionalFile name.
is_asciilogicalinoptionalSentinel to check if file is ASCII.

Call graph

load_from_file

Load from file.

fortran
subroutine load_from_file(self, facet, file_name, is_ascii, guess_format, clip_min, clip_max)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
facettype(facet_object)outallocatableSurface facets.
file_namecharacter(len=*)inoptionalFile name.
is_asciilogicalinoptionalSentinel to check if file is ASCII.
guess_formatlogicalinoptionalTry to guess format directly from file.
clip_mintype(vector_R8P)inoptionalClip bounding box extents.
clip_maxtype(vector_R8P)inoptionalClip bounding box extents.

Call graph

open_file

Open file, once initialized.

fortran
subroutine open_file(self, file_action, guess_format)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
file_actioncharacter(len=*)inFile action, "read" or "write".
guess_formatlogicalinoptionalSentinel to try to guess format directly from file.

Call graph

save_aabb_into_file

Save AABB into file.

fortran
subroutine save_aabb_into_file(self, surface, base_file_name, is_ascii)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
surfacetype(surface_stl_object)inSurface STL.
base_file_namecharacter(len=*)inoptionalBase file name.
is_asciilogicalinoptionalSentinel to check if file is ASCII.

Call graph

save_into_file

Save into file.

fortran
subroutine save_into_file(self, facet, file_name, is_ascii)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
facettype(facet_object)inSurface facets.
file_namecharacter(len=*)inoptionalFile name.
is_asciilogicalinoptionalSentinel to check if file is ASCII.

Call graph

file_stl_assign_file_stl

Operator =.

Attributes: pure

fortran
subroutine file_stl_assign_file_stl(lhs, rhs)

Arguments

NameTypeIntentAttributesDescription
lhsclass(file_stl_object)inoutLeft hand side.
rhstype(file_stl_object)inRight hand side.

load_facets_number_from_file

Load facets number from file.

@note File is rewinded.

fortran
subroutine load_facets_number_from_file(self, facets_number)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
facets_numberinteger(kind=I4P)outFacets number.

Call graph

load_header_from_file

Load header from file.

fortran
subroutine load_header_from_file(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.

Call graph

save_header_into_file

Save header into file.

fortran
subroutine save_header_into_file(self, facets_number)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.
facets_numberinteger(kind=I4P)inFacets number.

Call graph

save_trailer_into_file

Save trailer into file.

fortran
subroutine save_trailer_into_file(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inoutFile STL.

Call graph

Functions

statistics

Return STL statistics.

Attributes: pure

Returns: character(len=:)

fortran
function statistics(self, prefix) result(stats)

Arguments

NameTypeIntentAttributesDescription
selfclass(file_stl_object)inFile STL.
prefixcharacter(len=*)inoptionalLines prefix.